提交 d6eb7562 authored 作者: Stefan Knoblich's avatar Stefan Knoblich

[mod_commands,mod_event_socket,mod_event_test] fix up other users of…

[mod_commands,mod_event_socket,mod_event_test] fix up other users of switch_event_xmlize() to use SWITCH_EVENT_NONE
上级 dbe62c25
...@@ -4003,7 +4003,7 @@ SWITCH_STANDARD_API(uuid_dump_function) ...@@ -4003,7 +4003,7 @@ SWITCH_STANDARD_API(uuid_dump_function)
switch_xml_t xml; switch_xml_t xml;
switch_channel_event_set_data(channel, event); switch_channel_event_set_data(channel, event);
if (!strcasecmp(format, "xml")) { if (!strcasecmp(format, "xml")) {
if ((xml = switch_event_xmlize(event, "%s", ""))) { if ((xml = switch_event_xmlize(event, SWITCH_VA_NONE))) {
buf = switch_xml_toxml(xml, SWITCH_FALSE); buf = switch_xml_toxml(xml, SWITCH_FALSE);
switch_xml_free(xml); switch_xml_free(xml);
} else { } else {
......
...@@ -966,7 +966,7 @@ SWITCH_STANDARD_API(event_sink_function) ...@@ -966,7 +966,7 @@ SWITCH_STANDARD_API(event_sink_function)
switch_xml_t xml; switch_xml_t xml;
etype = "xml"; etype = "xml";
if ((xml = switch_event_xmlize(pevent, "%s", ""))) { if ((xml = switch_event_xmlize(pevent, SWITCH_VA_NONE))) {
listener->ebuf = switch_xml_toxml(xml, SWITCH_FALSE); listener->ebuf = switch_xml_toxml(xml, SWITCH_FALSE);
switch_xml_free(xml); switch_xml_free(xml);
} else { } else {
...@@ -1257,7 +1257,7 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event, ...@@ -1257,7 +1257,7 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
switch_xml_t xml; switch_xml_t xml;
etype = "xml"; etype = "xml";
if ((xml = switch_event_xmlize(pevent, "%s", ""))) { if ((xml = switch_event_xmlize(pevent, SWITCH_VA_NONE))) {
listener->ebuf = switch_xml_toxml(xml, SWITCH_FALSE); listener->ebuf = switch_xml_toxml(xml, SWITCH_FALSE);
switch_xml_free(xml); switch_xml_free(xml);
} else { } else {
......
...@@ -49,7 +49,7 @@ static void event_handler(switch_event_t *event) ...@@ -49,7 +49,7 @@ static void event_handler(switch_event_t *event)
return; return;
default: default:
switch_event_serialize(event, &buf, SWITCH_TRUE); switch_event_serialize(event, &buf, SWITCH_TRUE);
if ((xml = switch_event_xmlize(event, NULL))) { if ((xml = switch_event_xmlize(event, SWITCH_VA_NONE))) {
xmlstr = switch_xml_toxml(xml, SWITCH_FALSE); xmlstr = switch_xml_toxml(xml, SWITCH_FALSE);
dofree++; dofree++;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论