git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10394 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-11-14 02:46:28 +00:00
parent 01a9438332
commit 446d728553
2 changed files with 10 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_unbind_search_function_ptr(switch_xml
return status;
}
SWITCH_DECLARE(switch_status_t) switch_xml_bind_search_function(switch_xml_search_function_t function, switch_xml_section_t sections, void *user_data)
SWITCH_DECLARE(switch_status_t) switch_xml_bind_search_function_ret(switch_xml_search_function_t function, switch_xml_section_t sections, void *user_data, switch_xml_binding_t **ret)
{
switch_xml_binding_t *binding = NULL, *ptr = NULL;
assert(function != NULL);
@@ -249,6 +249,11 @@ SWITCH_DECLARE(switch_status_t) switch_xml_bind_search_function(switch_xml_searc
} else {
BINDINGS = binding;
}
if (ret) {
*ret = binding;
}
switch_thread_rwlock_unlock(B_RWLOCK);
return SWITCH_STATUS_SUCCESS;