tree.c File Reference

MI :: Tree. More...

#include <string.h>
#include <stdio.h>
#include <errno.h>
#include "../mem/mem.h"
#include "../mem/shm_mem.h"
#include "../dprint.h"
#include "tree.h"
#include "fmt.h"

Include dependency graph for tree.c:

Go to the source code of this file.

Functions

struct mi_nodeadd_mi_node_child (struct mi_node *parent, int flags, char *name, int name_len, char *value, int value_len)
struct mi_nodeadd_mi_node_sibling (struct mi_node *brother, int flags, char *name, int name_len, char *value, int value_len)
static struct mi_nodeadd_next (struct mi_node *brother, char *name, int name_len, char *value, int value_len, int flags)
struct mi_nodeaddf_mi_node_child (struct mi_node *parent, int flags, char *name, int name_len, char *fmt_val,...)
struct mi_nodeaddf_mi_node_sibling (struct mi_node *brother, int flags, char *name, int name_len, char *fmt_val,...)
static int clone_mi_node (struct mi_node *org, struct mi_node *parent)
struct mi_rootclone_mi_tree (struct mi_root *org, int shm)
static struct mi_nodecreate_mi_node (char *name, int name_len, char *value, int value_len, int flags)
static void free_mi_node (struct mi_node *parent)
void free_mi_tree (struct mi_root *parent)
void free_shm_mi_tree (struct mi_root *parent)
struct mi_rootinit_mi_tree (unsigned int code, char *reason, int reason_len)

Variables

static int use_shm = 0


Detailed Description

MI :: Tree.

Definition in file tree.c.


Function Documentation

struct mi_node* add_mi_node_child ( struct mi_node parent,
int  flags,
char *  name,
int  name_len,
char *  value,
int  value_len 
) [read]

struct mi_node* add_mi_node_sibling ( struct mi_node brother,
int  flags,
char *  name,
int  name_len,
char *  value,
int  value_len 
) [read]

Definition at line 189 of file tree.c.

References add_next().

Referenced by addf_mi_node_sibling().

static struct mi_node* add_next ( struct mi_node brother,
char *  name,
int  name_len,
char *  value,
int  value_len,
int  flags 
) [static, read]

Definition at line 170 of file tree.c.

References create_mi_node(), mi_node::last, mi_node::next, and NULL.

Referenced by add_mi_node_child(), and add_mi_node_sibling().

struct mi_node* addf_mi_node_child ( struct mi_node parent,
int  flags,
char *  name,
int  name_len,
char *  fmt_val,
  ... 
) [read]

struct mi_node* addf_mi_node_sibling ( struct mi_node brother,
int  flags,
char *  name,
int  name_len,
char *  fmt_val,
  ... 
) [read]

Definition at line 196 of file tree.c.

References add_mi_node_sibling(), len, MI_DUP_VALUE, mi_print_fmt(), and NULL.

static int clone_mi_node ( struct mi_node org,
struct mi_node parent 
) [static]

struct mi_root* clone_mi_tree ( struct mi_root org,
int  shm 
) [read]

static struct mi_node* create_mi_node ( char *  name,
int  name_len,
char *  value,
int  value_len,
int  flags 
) [static, read]

Definition at line 107 of file tree.c.

References LM_ERR, MI_DUP_NAME, MI_DUP_VALUE, NULL, pkg_malloc, shm_malloc(), and use_shm.

Referenced by add_mi_node_child(), and add_next().

static void free_mi_node ( struct mi_node parent  )  [static]

Definition at line 72 of file tree.c.

References del_mi_attr_list(), mi_node::kids, mi_node::next, pkg_free, shm_free, and use_shm.

Referenced by free_mi_tree().

void free_mi_tree ( struct mi_root parent  ) 

void free_shm_mi_tree ( struct mi_root parent  ) 

Definition at line 281 of file tree.c.

References free_mi_tree(), and use_shm.

Referenced by default_method(), and xmlrpc_close_async().

struct mi_root* init_mi_tree ( unsigned int  code,
char *  reason,
int  reason_len 
) [read]

Definition at line 46 of file tree.c.

References mi_root::code, mi_node::last, _str::len, LM_ERR, mi_node::next, mi_root::node, NULL, pkg_malloc, mi_root::reason, root, _str::s, shm_malloc(), and use_shm.

Referenced by activate_host(), add_host(), clone_mi_tree(), deactivate_host(), delete_host(), ds_mi_list(), ds_mi_reload(), ds_mi_set(), dump_fifo(), forward_fifo_filter(), forward_fifo_list(), forward_fifo_proxy(), forward_fifo_switch(), imc_mi_list_members(), imc_mi_list_rooms(), mi_address_dump(), mi_address_reload(), mi_allow_uri(), mi_arg(), mi_bdb_reload(), mi_bm_enable_global(), mi_bm_enable_timer(), mi_bm_granularity(), mi_bm_loglevel(), mi_check_hash(), mi_check_msg(), mi_cleanup(), mi_cpl_get(), mi_cpl_load(), mi_cpl_remove(), mi_datagram_parse_tree(), mi_debug(), mi_dlg_bridge(), mi_domain_dump(), mi_domain_reload(), mi_enable_natping(), mi_enable_rtp_proxy(), mi_flat_rotate_cmd(), mi_get_gflags(), mi_get_hash(), mi_get_pid(), mi_get_pipes(), mi_get_prob(), mi_get_profile(), mi_get_queues(), mi_is_gflag(), mi_lcr_gw_dump(), mi_lcr_lcr_dump(), mi_lcr_reload(), mi_parse_tree(), mi_pcres_reload(), mi_pike_list(), mi_print_blacklists(), mi_print_dlgs(), mi_print_dlgs_ctx(), mi_profile_list(), mi_ps(), mi_pua_publish(), mi_pua_subscribe(), mi_publ_rpl_cback(), mi_push_load(), mi_pwd(), mi_refreshWatchers(), mi_reload_blacklist(), mi_reload_rules(), mi_reset_gflag(), mi_reset_prob(), mi_set_dbg(), mi_set_gflag(), mi_set_pid(), mi_set_pipe(), mi_set_prob(), mi_set_queue(), mi_show_rtpproxies(), mi_stats(), mi_subnet_dump(), mi_terminate_dlg(), mi_tm_cancel(), mi_tm_hash(), mi_tm_reply(), mi_tm_uac_dlg(), mi_translate(), mi_trusted_dump(), mi_trusted_reload(), mi_uac_dlg_hdl(), mi_uptime(), mi_usrloc_add(), mi_usrloc_dump(), mi_usrloc_flush(), mi_usrloc_rm_aor(), mi_usrloc_rm_contact(), mi_usrloc_show_contact(), mi_version(), mi_which(), pdt_mi_add(), pdt_mi_delete(), pdt_mi_list(), pdt_mi_reload(), perl_mi_reload(), print_fifo_err(), print_replace_help(), process_mi_params(), refreshXcapDoc(), reload_fifo(), replace_host(), sip_trace_mi(), and xr_parse_tree().


Variable Documentation

int use_shm = 0 [static]


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