#include <stdlib.h>
#include "../../dprint.h"
#include "../../error.h"
#include "../../mem/shm_mem.h"
#include "ul_callback.h"

Go to the source code of this file.
Functions | |
| void | destroy_ulcb_list (void) |
| int | init_ulcb_list (void) |
| int | register_ulcb (int types, ul_cb f, void *param) |
| register a callback function 'f' for 'types' mask of events; | |
Variables | |
| struct ulcb_head_list * | ulcb_list = 0 |
Definition in file ul_callback.c.
| void destroy_ulcb_list | ( | void | ) |
Definition at line 61 of file ul_callback.c.
References ulcb_head_list::first, ul_callback::next, ul_callback::param, and shm_free.
| int init_ulcb_list | ( | void | ) |
Definition at line 47 of file ul_callback.c.
References ulcb_head_list::first, LM_CRIT, ulcb_head_list::reg_types, and shm_malloc().
Referenced by mod_init().
| int register_ulcb | ( | int | types, | |
| ul_cb | f, | |||
| void * | param | |||
| ) |
register a callback function 'f' for 'types' mask of events;
register a callback for several types of events
Definition at line 83 of file ul_callback.c.
References ul_callback::callback, E_BUG, E_OUT_OF_MEM, ulcb_head_list::first, ul_callback::id, LM_CRIT, LM_ERR, ul_callback::next, ul_callback::param, ulcb_head_list::reg_types, shm_malloc(), ul_callback::types, and ULCB_MAX.
Referenced by bind_usrloc().
| struct ulcb_head_list* ulcb_list = 0 |
Definition at line 43 of file ul_callback.c.
1.5.6