ul_callback.c File Reference

USRLOC - Callback functions

More...

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

Include dependency graph for ul_callback.c:

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_listulcb_list = 0


Detailed Description

USRLOC - Callback functions

Definition in file ul_callback.c.


Function Documentation

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().


Variable Documentation

Definition at line 43 of file ul_callback.c.


Generated on Thu May 24 22:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6