mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-10 11:50:53 +00:00
XMLification (wave 4)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1412 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
7c0fce5a01
commit
f09491a69b
26 files changed
+275
-156
No files matched your search
+5
-4
@@ -745,7 +745,8 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate(char *section,
|
||||
char *key_name,
|
||||
char *key_value,
|
||||
switch_xml_t *root,
|
||||
switch_xml_t *node)
|
||||
switch_xml_t *node,
|
||||
char *params)
|
||||
{
|
||||
switch_xml_t conf = NULL;
|
||||
switch_xml_t tag = NULL;
|
||||
@@ -756,7 +757,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate(char *section,
|
||||
switch_mutex_lock(XML_LOCK);
|
||||
|
||||
for(binding = BINDINGS; binding; binding = binding->next) {
|
||||
if ((xml = binding->function(section, tag_name, key_name, key_value))) {
|
||||
if ((xml = binding->function(section, tag_name, key_name, key_value, params))) {
|
||||
const char *err = NULL;
|
||||
|
||||
err = switch_xml_error(xml);
|
||||
@@ -883,7 +884,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_destroy(void)
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_xml_t) switch_xml_open_cfg(char *file_path, switch_xml_t *node)
|
||||
SWITCH_DECLARE(switch_xml_t) switch_xml_open_cfg(char *file_path, switch_xml_t *node, char *params)
|
||||
{
|
||||
switch_xml_t xml = NULL, cfg = NULL;
|
||||
|
||||
@@ -891,7 +892,7 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_open_cfg(char *file_path, switch_xml_t *
|
||||
|
||||
assert(MAIN_XML_ROOT != NULL);
|
||||
|
||||
if (switch_xml_locate("configuration", "configuration", "name", file_path, &xml, &cfg) == SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_xml_locate("configuration", "configuration", "name", file_path, &xml, &cfg, params) == SWITCH_STATUS_SUCCESS) {
|
||||
*node = cfg;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user