dlg_cb.c File Reference

#include "../../mem/shm_mem.h"
#include "../../dprint.h"
#include "dlg_hash.h"
#include "dlg_cb.h"

Include dependency graph for dlg_cb.c:

Go to the source code of this file.

Defines

#define POINTER_CLOSED_MARKER   ((void *)(-1))

Functions

void destroy_dlg_callbacks (unsigned int types)
void destroy_dlg_callbacks_list (struct dlg_callback *cb)
static struct dlg_head_cblinit_dlg_callback (void)
int register_dlgcb (struct dlg_cell *dlg, int types, dialog_cb f, void *param, param_free_cb ff)
void run_create_callbacks (struct dlg_cell *dlg, struct sip_msg *msg)
void run_dlg_callbacks (int type, struct dlg_cell *dlg, struct sip_msg *msg, unsigned int dir, void *dlg_data)
static void run_load_callback (struct dlg_callback *cb)
void run_load_callbacks (void)

Variables

static struct dlg_head_cblcreate_cbs = 0
static struct dlg_head_cblload_cbs = 0
static struct dlg_cb_params params = {NULL, DLG_DIR_NONE, NULL, NULL}


Define Documentation

#define POINTER_CLOSED_MARKER   ((void *)(-1))

Definition at line 46 of file dlg_cb.c.

Referenced by destroy_dlg_callbacks(), register_dlgcb(), and run_load_callbacks().


Function Documentation

void destroy_dlg_callbacks ( unsigned int  types  ) 

void destroy_dlg_callbacks_list ( struct dlg_callback cb  ) 

static struct dlg_head_cbl* init_dlg_callback ( void   )  [static, read]

Definition at line 53 of file dlg_cb.c.

References dlg_head_cbl::first, LM_ERR, shm_malloc(), and dlg_head_cbl::types.

Referenced by register_dlgcb().

int register_dlgcb ( struct dlg_cell dlg,
int  types,
dialog_cb  f,
void *  param,
param_free_cb  ff 
)

void run_create_callbacks ( struct dlg_cell dlg,
struct sip_msg msg 
)

void run_dlg_callbacks ( int  type,
struct dlg_cell dlg,
struct sip_msg msg,
unsigned int  dir,
void *  dlg_data 
)

static void run_load_callback ( struct dlg_callback cb  )  [static]

void run_load_callbacks ( void   ) 

Definition at line 200 of file dlg_cb.c.

References cb, dlg_head_cbl::first, dlg_callback::next, POINTER_CLOSED_MARKER, and run_load_callback().

Referenced by mod_init().


Variable Documentation

struct dlg_head_cbl* create_cbs = 0 [static]

Definition at line 39 of file dlg_cb.c.

struct dlg_head_cbl* load_cbs = 0 [static]

Definition at line 41 of file dlg_cb.c.

struct dlg_cb_params params = {NULL, DLG_DIR_NONE, NULL, NULL} [static]

Definition at line 43 of file dlg_cb.c.


Generated on Tue May 22 16:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6