MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / map_create

Function map_create

map.c:80–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 Returns |NULL| if memory allocation failed. */
79
80map_t map_create(enum map_flags flags)
81{
82 map_t tree;
83
84 avl_malloc(tree, sizeof *tree, flags);
85
86 if (tree == NULL)
87 return NULL;
88
89 tree->avl_root = NULL;
90 tree->flags = flags;
91 tree->avl_count = 0;
92
93
94 return tree;
95}
96
97/* Search |tree| for an item matching |item|, and return it if found.
98 Otherwise return |NULL|. */

Callers 15

init_global_avpsFunction · 0.85
init_extra_avpsFunction · 0.85
mod_initFunction · 0.85
sql_api_selectFunction · 0.85
sql_api_updateFunction · 0.85
sql_api_insertFunction · 0.85
sql_api_deleteFunction · 0.85
sql_api_replaceFunction · 0.85
init_hash_mapFunction · 0.85
new_ucontactFunction · 0.85
store_deserializeFunction · 0.85
init_slotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected