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

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_cbl * | init_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_cbl * | create_cbs = 0 |
| static struct dlg_head_cbl * | load_cbs = 0 |
| static struct dlg_cb_params | params = {NULL, DLG_DIR_NONE, NULL, NULL} |
| #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().
| void destroy_dlg_callbacks | ( | unsigned int | types | ) |
Definition at line 85 of file dlg_cb.c.
References destroy_dlg_callbacks_list(), DLGCB_CREATED, DLGCB_LOADED, dlg_head_cbl::first, POINTER_CLOSED_MARKER, and shm_free.
Referenced by mod_destroy(), and mod_init().
| void destroy_dlg_callbacks_list | ( | struct dlg_callback * | cb | ) |
Definition at line 69 of file dlg_cb.c.
References dlg_callback::callback_param_free, dlg_callback::next, NULL, dlg_callback::param, and shm_free.
Referenced by destroy_dlg(), destroy_dlg_callbacks(), and register_dlgcb().
| 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 | |||
| ) |
Definition at line 104 of file dlg_cb.c.
References dlg_callback::callback, dlg_callback::callback_param_free, cb, dlg_cell::cbs, destroy_dlg_callbacks_list(), DLGCB_CREATED, DLGCB_LOADED, dlg_head_cbl::first, init_dlg_callback(), LM_CRIT, LM_ERR, dlg_callback::next, NULL, dlg_callback::param, POINTER_CLOSED_MARKER, run_load_callback(), shm_free, shm_malloc(), dlg_head_cbl::types, and dlg_callback::types.
Referenced by load_dlg().
Definition at line 213 of file dlg_cb.c.
References dlg_callback::callback, cb, dlg_cb_params::direction, dlg_cb_params::dlg_data, DLG_DIR_DOWNSTREAM, DLGCB_CREATED, dlg_head_cbl::first, LM_DBG, dlg_cb_params::msg, dlg_callback::next, NULL, dlg_callback::param, and dlg_cb_params::param.
Referenced by dlg_new_dialog().
| void run_dlg_callbacks | ( | int | type, | |
| struct dlg_cell * | dlg, | |||
| struct sip_msg * | msg, | |||
| unsigned int | dir, | |||
| void * | dlg_data | |||
| ) |
Definition at line 236 of file dlg_cb.c.
References dlg_callback::callback, cb, dlg_cell::cbs, dlg_cb_params::direction, dlg_cb_params::dlg_data, dlg_head_cbl::first, LM_DBG, dlg_cb_params::msg, dlg_callback::next, dlg_callback::param, dlg_cb_params::param, dlg_callback::types, and dlg_head_cbl::types.
Referenced by bye_reply_cb(), destroy_dlg(), dlg_onreply(), dlg_onroute(), dlg_ontimeout(), dlg_seq_down_onreply(), dlg_seq_up_onreply(), and internal_mi_print_dlg().
| static void run_load_callback | ( | struct dlg_callback * | cb | ) | [static] |
Definition at line 182 of file dlg_cb.c.
References dlg_callback::callback, d_table, dlg_cb_params::direction, DLG_DIR_NONE, DLGCB_LOADED, dlg_table::entries, dlg_entry::first, dlg_cb_params::msg, dlg_cell::next, NULL, dlg_callback::param, dlg_cb_params::param, and dlg_table::size.
Referenced by register_dlgcb(), and run_load_callbacks().
| 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().
struct dlg_head_cbl* create_cbs = 0 [static] |
struct dlg_head_cbl* load_cbs = 0 [static] |
struct dlg_cb_params params = {NULL, DLG_DIR_NONE, NULL, NULL} [static] |
1.5.6