ul_callback.h File Reference

USRLOC - Module callbacks. More...

#include "ucontact.h"

Include dependency graph for ul_callback.h:

This graph shows which files directly or indirectly include this file:

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_listulcb_list


Detailed Description

USRLOC - Module callbacks.

Definition in file ul_callback.h.


Define Documentation

#define exists_ulcb_type ( _types_   )     ( (ulcb_list->reg_types)|(_types_) )

#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)

#define UL_CONTACT_INSERT   (1<<0)

#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)

Definition at line 42 of file ul_callback.h.

Referenced by register_ulcb().


Typedef Documentation

typedef int(* register_ulcb_t)(int cb_types, ul_cb f, void *param)

register callback function prototype

Definition at line 47 of file ul_callback.h.

typedef void( ul_cb)(ucontact_t *c, int type, void *param)

callback function prototype

Definition at line 45 of file ul_callback.h.


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 
)

static void run_ul_callbacks ( int  type,
ucontact_t c 
) [inline, static]


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