Changeset 116
- Timestamp:
- Jan 8, 2006 11:57:07 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c
r109 r116 126 126 127 127 128 /* Compare module name, used for searching module based on name. */ 129 static int cmp_mod_name(void *name, const pjsip_module *mod) 130 { 131 return pj_stricmp(name, &mod->name); 132 } 133 128 134 /* 129 135 * Register new module to the endpoint. … … 144 150 PJ_ASSERT_ON_FAIL( pj_list_find_node(&endpt->module_list, mod) == NULL, 145 151 {status = PJ_EEXISTS; goto on_return;}); 152 153 /* Make sure that no module with the same name has been registered. */ 154 PJ_ASSERT_ON_FAIL( pj_list_search(&endpt->module_list, &mod->name, 155 &cmp_mod_name)==NULL, 156 {status = PJ_EEXISTS; goto on_return; }); 146 157 147 158 /* Find unused ID for this module. */
Note: See TracChangeset
for help on using the changeset viewer.