00001 #include <klone/context.h> 00002 #include <klone/hook.h> 00003 #include <klone/hookprv.h> 00004 00017 int hook_request( hook_request_t func ) 00018 { 00019 hook_t *hook; 00020 00021 dbg_err_if(ctx == NULL); 00022 dbg_err_if(ctx->hook == NULL); 00023 00024 ctx->hook->request = func; /* may be NULL */ 00025 00026 return 0; 00027 err: 00028 return ~0; 00029 } 00030