child_nfy.c
00001 #include <klone/context.h>
00002 #include <klone/hook.h>
00003 #include <klone/hookprv.h>
00004
00021 int hook_child_init( hook_child_init_t func )
00022 {
00023 hook_t *hook;
00024
00025 dbg_err_if(ctx == NULL);
00026 dbg_err_if(ctx->hook == NULL);
00027
00028 ctx->hook->child_init = func;
00029
00030 return 0;
00031 err:
00032 return ~0;
00033 }
00034
00047 int hook_child_term( hook_child_term_t func )
00048 {
00049 hook_t *hook;
00050
00051 dbg_err_if(ctx == NULL);
00052 dbg_err_if(ctx->hook == NULL);
00053
00054 ctx->hook->child_term = func;
00055
00056 return 0;
00057 err:
00058 return ~0;
00059 }
00060