add removable xml hook bindings

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8905 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-07-07 17:10:17 +00:00
parent 3d494aed64
commit 502e9b2d4d
3 changed files with 38 additions and 2 deletions

View File

@@ -58,6 +58,8 @@
#include <switch.h>
struct switch_xml_binding;
///\defgroup xml1 XML Library Functions
///\ingroup core1
///\{
@@ -349,6 +351,18 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_open_cfg(const char *file_path, switch_x
///\note gateway functions will be executed in the order they were binded until a success is found else the root registry will be used
SWITCH_DECLARE(switch_status_t) switch_xml_bind_search_function(switch_xml_search_function_t function, switch_xml_section_t sections, void *user_data);
///\brief bind a search function to an external gateway
///\param function the search function to bind
///\param sections a bitmask of sections you wil service
///\param user_data a pointer to private data to be used during the callback
///\param binding a handle to use to later unbind.
///\return SWITCH_STATUS_SUCCESS if successful
///\note gateway functions will be executed in the order they were binded until a success is found else the root registry will be used
SWITCH_DECLARE(switch_status_t) switch_xml_bind_search_function_removable(switch_xml_search_function_t function,
switch_xml_section_t sections, void *user_data, switch_xml_binding_t **binding);
SWITCH_DECLARE(switch_status_t) switch_xml_unbind_search_function(switch_xml_binding_t **binding);
///\brief parse a string for a list of sections
///\param str a | delimited list of section names
///\return the section mask