search for: xmlstr

Displaying 7 results from an estimated 7 matches for "xmlstr".

2016 Jun 06
0
[PATCH] Config: Rename mp3-metadata-interval to icy-metadata-interval
...if (!configuration->admin || strcmp(configuration->admin, CONFIG_DEFAULT_ADMIN) == 0) { ICECAST_LOG_WARN("Warning, <admin> contact not configured, using " @@ -1290,7 +1290,7 @@ static void _parse_mount(xmlDocPtr doc, continue; if (xmlStrcmp(node->name, XMLSTR("mount-name")) == 0) { - mount->mountname = (char *)xmlNodeListGetString(doc, + mount->mountname = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); } else if (xmlStrcmp(node->name, XMLSTR(&qu...
2015 Mar 22
2
exposed-port option for Icecast behind reverse proxy
...diff --git a/src/cfgfile.c b/src/cfgfile.c index 5eac93d..42d917f 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -436,6 +436,10 @@ static void _parse_root(xmlDocPtr doc, xmlNodePtr node, configuration->mimetypes_fn = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); } else if (xmlStrcmp (node->name, XMLSTR("listen-socket")) == 0) { _parse_listen_socket(doc, node->xmlChildrenNode, configuration); + } else if (xmlStrcmp (node->name, XMLSTR("exposed-port")) == 0) { + tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); + configuration-...
2011 Apr 29
4
You don't check for malloc failure
...G/src/cfgfile.c icecast-2.3.2/src/cfgfile.c --- icecast-2.3.2-ORIG/src/cfgfile.c Fri May 2 04:56:58 2008 +++ icecast-2.3.2/src/cfgfile.c Thu Apr 28 19:53:33 2011 @@ -964,6 +964,9 @@ configuration->adminroot_dir[strlen(configuration->adminroot_dir)-1] = 0; } else if (xmlStrcmp (node->name, XMLSTR("alias")) == 0) { alias = malloc(sizeof(aliases)); + if (alias == NULL) { + abort(); + } alias->next = NULL; alias->source = (char *)xmlGetProp(node, XMLSTR("source")); if(...
2010 Oct 01
1
Python XML parsing of domain descriptions?
Does anyone know of a way to parse the libvirt XML into usable python data structures? Ideally, it would be something like foo['domain']['devices']['bridge'][0]['target'] or something of the sort. What I'm looking to accomplish is to figure out which tap interface goes with a specific domain. I'm not keen on parsing XML to get that mapping, is there a
2010 Sep 06
2
Adding Configuration Options
So, I'm in the middle of understanding how the icecast.xml file is parsed, and how the settings for a specific mount point are read. In cfgfile.c - _parse_mount() I've added the following lines: } else if (xmlStrcmp (node->name, XMLSTR("playlist-notify-uri")) == 0) { mount->playlist_notify_uri = (char *)xmlNodeListGetString (doc, node->xmlChildrenNode, 1); } My goal is to include the URI in my logging.c file, and get the value of the field: <mount> <playlist-notify-u...
2006 Apr 24
0
Web Services/Invoke Inconsistencies
...velope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ImportRMSProducts xmlns="http://StoreFront.StoreFront/RMSConfirmWS"><xmlStr>&lt;str&gt;J0H4XX0r&lt;/str&gt;</xmlStr></ImportRMSProducts></soap:Body></soap:Envelope> So, as you can see, it posts to the /rms/api interface. In order to post this file, which we call example_xml, we use the following command on a Linux box: cat exam...
2010 Sep 06
0
Adding Configuration Options
On 06/09/10 16:42, Nicholas Young wrote: > So, I'm in the middle of understanding how the icecast.xml file is parsed, > and how the settings for a specific mount point are read. > > In cfgfile.c - _parse_mount() I've added the following lines: > > } else if (xmlStrcmp (node->name, XMLSTR("playlist-notify-uri")) == 0) { > mount->playlist_notify_uri = (char *)xmlNodeListGetString (doc, > node->xmlChildrenNode, 1); > } > > My goal is to include the URI in my logging.c file, and get the value of the > field: > >...