search for: xmlnodelistgetstring

Displaying 20 results from an estimated 26 matches for "xmlnodelistgetstring".

2016 Jun 06
0
[PATCH] Config: Rename mp3-metadata-interval to icy-metadata-interval
...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("username")) == 0) { username = (char *)xmlNodeListGetString(doc, @@ -1328,6 +1328,15 @@ static void _...
2015 Mar 22
2
exposed-port option for Icecast behind reverse proxy
...se that port number. The below patch is for Icecast version 2.3.2: 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 *)xmlNodeListGetStrin...
2004 Aug 06
0
[PATCH] Add per-listener and per-mount connection time limits.
...configuration->queue_size_limit = CONFIG_DEFAULT_QUEUE_SIZE_LIMIT; configuration->threadpool_size = CONFIG_DEFAULT_THREADPOOL_SIZE; configuration->client_timeout = CONFIG_DEFAULT_CLIENT_TIMEOUT; *************** *** 409,414 **** --- 411,420 ---- tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); configuration->source_limit = atoi(tmp); if (tmp) xmlFree(tmp); + } else if (strcmp(node->name, "client-time-limit") == 0) { + tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); +...
2016 Sep 20
1
[PATCH] libvirt: read disk paths from pools (RHBZ#1366049)
...odesetval->nodeNr == 0) + continue; + assert (xppool->nodesetval->nodeTab[0]); + assert (xppool->nodesetval->nodeTab[0]->type == + XML_ATTRIBUTE_NODE); + attr = (xmlAttrPtr) xppool->nodesetval->nodeTab[0]; + pool = (char *) xmlNodeListGetString (doc, attr->children, 1); + + /* Get the source volume. Required. */ + xpvolume = xmlXPathEvalExpression (BAD_CAST "./source/@volume", + xpathCtx); + if (xpvolume == NULL || + xpvolume->nodesetval == NULL ||...
2016 Sep 22
1
[PATCH v2] libvirt: read disk paths from pools (RHBZ#1366049)
...odesetval->nodeNr == 0) + continue; + assert (xppool->nodesetval->nodeTab[0]); + assert (xppool->nodesetval->nodeTab[0]->type == + XML_ATTRIBUTE_NODE); + attr = (xmlAttrPtr) xppool->nodesetval->nodeTab[0]; + pool = (char *) xmlNodeListGetString (doc, attr->children, 1); + + /* Get the source volume. Required. */ + xpvolume = xmlXPathEvalExpression (BAD_CAST "./source/@volume", + xpathCtx); + if (xpvolume == NULL || + xpvolume->nodesetval == NULL ||...
2016 Nov 16
3
[PATCH 1/2] libvirt: un-duplicate XPath code
...continue; /* no type attribute, skip it */ - } - assert (xptype->nodesetval->nodeTab[0]); - assert (xptype->nodesetval->nodeTab[0]->type == XML_ATTRIBUTE_NODE); - attr = (xmlAttrPtr) xptype->nodesetval->nodeTab[0]; - type = (char *) xmlNodeListGetString (doc, attr->children, 1); + type = xPathObjectGetString (doc, xptype); if (STREQ (type, "file")) { /* type = "file" so look at source/@file */ xpathCtx->node = nodes->nodeTab[i]; xpfilename = xmlXPathEvalExpression (BAD_CAST "./sourc...
2004 Aug 06
0
[RFC] RTP support
...ration->master_server = NULL; @@ -348,6 +351,18 @@ configuration->port = atoi(tmp); configuration->listeners[0].port = atoi(tmp); if (tmp) xmlFree(tmp); + } else if (strcmp(node->name, "rtp-port") == 0) { + tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); + configuration->rtp_port = atoi(tmp); + if (tmp) xmlFree(tmp); + } else if (strcmp(node->name, "rtp-ttl") == 0) { + tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); + co...
2004 Aug 06
0
[PATCH] IceCast2 - socket-based default mount
...configuration->master_update_interval = CONFIG_MASTER_UPDATE_INTERVAL; @@ -333,6 +335,10 @@ if (configuration->listeners[0].bind_address) xmlFree(configuration->listeners[0].bind_address); configuration->listeners[0].bind_address = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); + } else if (strcmp(node->name, "default-mount") == 0) { + if (configuration->listeners[0].default_mount) + xmlFree(configuration->listeners[0].default_mount); + configuration->listeners[0].default...
2004 Aug 06
6
[PATCH] Icecast2 - chroot, setuid/gid...
Hi all again... I did a chroot patch with ability to change uid and gid. I dunno if you all approve with the current implementation but the patch is small and it works here. remember to CC, since i'm not on this ml... //Ian Kumlien PS. To anyone on vorbis-dev, I'm *REALLY* sorry must be tired or something.. =) DS. <p><p><p> -------------- next part -------------- A
2016 Aug 27
3
[PATCH 0/3] lib: Don't assert fail if port is missing in XML (RHBZ#1370424).
Simple fix for this assert-fail found in: https://bugzilla.redhat.com/show_bug.cgi?id=1370424 Rich.
2005 Nov 11
0
[PATCH] icecast video preview 2
...prebuffer size used by clients */ configuration->burst_size = CONFIG_DEFAULT_BURST_SIZE; + configuration->video_preview = CONFIG_DEFAULT_VIDEO_PREVIEW; } static void _parse_root(xmlDocPtr doc, xmlNodePtr node, @@ -422,6 +424,10 @@ configuration->hostname = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); } else if (strcmp(node->name, "listen-socket") == 0) { _parse_listen_socket(doc, node->xmlChildrenNode, configuration); + } else if (strcmp(node->name, "video-preview") == 0) { + tmp = (char *)xmlNodeListG...
2005 Nov 11
2
[PATCH] icecast video preview 2
Updated version of video preview covering frame writing every 3 keyframe and a xsl typo. Best regards :) kysucix -- Make things as simple as possible, but no simpler. - Albert Einstein
2010 Sep 06
2
Adding Configuration Options
...derstanding 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-uri>http://test.com/icecast/notify</playlist-notify-uri> </mount> Basically, I'm having Icecast POST to a cert...
2005 Nov 11
1
[PATCH] icecast video preview
Hi. Here it is my patch to put a video preview of a theora stream in status.xsl. I just added a: <video-preview>1</video-preview> parameters in icecast.xml.in that control the previewing function. It encodes a png in $webroot/$mountname.tmp and then move it to $webroot/$mountname.png As for now it saves a frame every theora keyframe, which is probably too heavy for the server but
2013 May 07
7
[PATCH 0/5] rbd improvements
This series improves ceph rbd support in libguestfs. It uses the servers list, adds support for a custom username, and starts to add support for custom secret.
2014 Jan 23
7
[PATCH 0/7] Various fixes for Ceph drives and parsing libvirt XML.
Miscellaneous fixes to: - Handling of Ceph drives now works end-to-end (RHBZ#1026688). - In particular, you can now use rbd:/// URIs in guestfish (and they work). - Parse Ceph & NBD network drives from libvirt XML correctly, so that existing domains with Ceph/NBD drives can be added (eg. using guestfish -d option). - Add more testing of the above.
2010 Sep 06
0
Adding Configuration Options
...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-uri>http://test.com/icecast/notify</playlist-notify-uri> > </mount> >...
2013 Feb 28
5
[PATCH v2 0/5] Fix SELinux security contexts so we can access shared disks (RHBZ#912499).
Link to version 1: https://www.redhat.com/archives/libguestfs/2013-February/thread.html#00122 Changes since version 1: - I've pushed two (of the three) code refactoring patches. The third one proved rather hard to move. - selinuxnorelabel option is no more. Instead there is a second internal API (internal_set_libvirt_selinux_norelabel_disks). - fixed bogus commit message -
2013 Feb 28
7
[PATCH 0/7] Fix SELinux security contexts so we can access shared disks (RHBZ#912499).
https://bugzilla.redhat.com/show_bug.cgi?id=912499 (especially comments 7 & 10) This patch set is the final fix so that we can access disks in use by other guests when SELinux and sVirt are enabled. Previously such disks were inaccessible because sVirt labels the disks with a random SELinux label to prevent other instances of qemu from being able to read them. So naturally the libguestfs
2004 Aug 06
1
[PATCH] IceCast2 - aliasing (reimplementation of the patch I posted earlier)
..._paths(xmlDocPtr doc, xmlNodePtr node, ice_config_t *configuration) { + char *temp; + aliases *alias, *current, *last; + do { if (node == NULL) break; if (xmlIsBlankNode(node)) continue; @@ -621,7 +638,39 @@ configuration->webroot_dir = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); if(configuration->webroot_dir[strlen(configuration->webroot_dir)-1] == '/') configuration->webroot_dir[strlen(configuration->webroot_dir)-1] = 0; - + } else if (strcmp(node->name, "alias") == 0)...