mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
Update: Changed xml2json_render_doc_simple's signature
This commit is contained in:
parent
c7be3122db
commit
2130a80f70
@ -596,7 +596,7 @@ void client_send_reportxml(client_t *client, reportxml_t *report, document_domai
|
||||
xmlDocDumpMemory(doc, &buff, &len);
|
||||
content_type = "text/xml";
|
||||
} else {
|
||||
char *json = xml2json_render_doc_simple(doc);
|
||||
char *json = xml2json_render_doc_simple(doc, NULL);
|
||||
buff = xmlStrdup(XMLSTR(json));
|
||||
len = strlen(json);
|
||||
free(json);
|
||||
|
@ -124,7 +124,7 @@ static void render_node(json_renderer_t *renderer, xmlDocPtr doc, xmlNodePtr nod
|
||||
render(renderer, doc, node, parent, cache);
|
||||
}
|
||||
|
||||
char * xml2json_render_doc_simple(xmlDocPtr doc)
|
||||
char * xml2json_render_doc_simple(xmlDocPtr doc, const char *default_namespace)
|
||||
{
|
||||
struct xml2json_cache cache;
|
||||
json_renderer_t *renderer;
|
||||
|
@ -13,6 +13,6 @@
|
||||
|
||||
#include <libxml/tree.h>
|
||||
|
||||
char * xml2json_render_doc_simple(xmlDocPtr doc);
|
||||
char * xml2json_render_doc_simple(xmlDocPtr doc, const char *default_namespace);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user