#include "ucontact.h"


Go to the source code of this file.
Data Structures | |
| struct | ul_callback |
| struct | ulcb_head_list |
Defines | |
| #define | exists_ulcb_type(_types_) ( (ulcb_list->reg_types)|(_types_) ) |
| #define | UL_CONTACT_DELETE (1<<2) |
| #define | UL_CONTACT_EXPIRE (1<<3) |
| #define | UL_CONTACT_INSERT (1<<0) |
| #define | UL_CONTACT_UPDATE (1<<1) |
| #define | ULCB_MAX ((1<<4)-1) |
Typedefs | |
| typedef int(* | register_ulcb_t )(int cb_types, ul_cb f, void *param) |
| register callback function prototype | |
| typedef void( | ul_cb )(ucontact_t *c, int type, void *param) |
| callback function prototype | |
Functions | |
| void | destroy_ulcb_list (void) |
| int | init_ulcb_list (void) |
| int | register_ulcb (int types, ul_cb f, void *param) |
| register a callback for several types of events | |
| static void | run_ul_callbacks (int type, ucontact_t *c) |
| run all transaction callbacks for an event type | |
Variables | |
| struct ulcb_head_list * | ulcb_list |
Definition in file ul_callback.h.
| #define exists_ulcb_type | ( | _types_ | ) | ( (ulcb_list->reg_types)|(_types_) ) |
Definition at line 67 of file ul_callback.h.
Referenced by delete_ucontact(), insert_ucontact(), nodb_timer(), update_ucontact(), wb_timer(), and wt_timer().
| #define UL_CONTACT_DELETE (1<<2) |
Definition at line 40 of file ul_callback.h.
Referenced by bla_cb(), delete_ucontact(), mod_init(), and ul_publish().
| #define UL_CONTACT_EXPIRE (1<<3) |
Definition at line 41 of file ul_callback.h.
Referenced by bla_cb(), executeInterprocessBufferCmd(), mod_init(), nodb_timer(), registerForUSRLOCCallbacks(), ul_publish(), wb_timer(), and wt_timer().
| #define UL_CONTACT_INSERT (1<<0) |
Definition at line 38 of file ul_callback.h.
Referenced by bla_cb(), executeInterprocessBufferCmd(), insert_ucontact(), mod_init(), registerForUSRLOCCallbacks(), and ul_publish().
| #define UL_CONTACT_UPDATE (1<<1) |
Definition at line 39 of file ul_callback.h.
Referenced by bla_cb(), mod_init(), ul_publish(), and update_ucontact().
| #define ULCB_MAX ((1<<4)-1) |
| typedef int(* register_ulcb_t)(int cb_types, ul_cb f, void *param) |
| typedef void( ul_cb)(ucontact_t *c, int type, void *param) |
| 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 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().
| static void run_ul_callbacks | ( | int | type, | |
| ucontact_t * | c | |||
| ) | [inline, static] |
run all transaction callbacks for an event type
Definition at line 80 of file ul_callback.h.
References ul_callback::callback, ulcb_head_list::first, ul_callback::id, LM_DBG, ul_callback::next, ul_callback::param, and ul_callback::types.
Referenced by delete_ucontact(), insert_ucontact(), nodb_timer(), update_ucontact(), wb_timer(), and wt_timer().
| struct ulcb_head_list* ulcb_list |
Definition at line 43 of file ul_callback.c.
1.5.6