search for: xmlfree

Displaying 20 results from an estimated 22 matches for "xmlfree".

Did you mean: lfree
2016 Jun 06
0
[PATCH] Config: Rename mp3-metadata-interval to icy-metadata-interval
...d..dfe2891 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -397,7 +397,7 @@ static void __append_old_style_url_event(event_registration_t **list, static void config_clear_http_header(ice_config_http_header_t *header) { ice_config_http_header_t *old; - + while (header) { xmlFree(header->name); xmlFree(header->value); @@ -997,7 +997,7 @@ static void _parse_root(xmlDocPtr doc, "interface (stylesheets, images)."); __check_hostname(configuration); - + if (!configuration->location || strcmp(configuration-&g...
2016 Jul 28
3
[PATCH] utils: add new CLEANUP_XMLFREE cleanup, to call xmlFree()
...+++++++++ src/guestfs-internal-frontend.h | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/src/cleanup.c b/src/cleanup.c index 1aa3051..6c4558c 100644 --- a/src/cleanup.c +++ b/src/cleanup.c @@ -106,6 +106,15 @@ guestfs_int_cleanup_unlink_free (char **ptr) } void +guestfs_int_cleanup_xmlFree (void *ptr) +{ + xmlChar *buf = * (xmlChar **) ptr; + + if (buf) + xmlFree (buf); +} + +void guestfs_int_cleanup_xmlBufferFree (void *ptr) { xmlBufferPtr xb = * (xmlBufferPtr *) ptr; diff --git a/src/guestfs-internal-frontend.h b/src/guestfs-internal-frontend.h index d1de76d..8689009 1006...
2004 Aug 06
0
[RFC] RTP support
...configuration->listeners[0].port = 0; configuration->listeners[0].bind_address = NULL; configuration->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, &quo...
2004 Aug 06
0
[PATCH] IceCast2 - socket-based default mount
...vl: libiceavl_la-avl.lo Only in IceCast/src/avl: libiceavl_la-avl.o Only in IceCast/src: client.o diff -ur icecast/src/config.c IceCast/src/config.c --- icecast/src/config.c 2003-03-14 21:10:17.000000000 -0500 +++ IceCast/src/config.c 2003-04-18 10:15:44.000000000 -0400 @@ -127,6 +127,7 @@ xmlFree(c->error_log); for(i=0; i < MAX_LISTEN_SOCKETS; i++) { if (c->listeners[i].bind_address) xmlFree(c->listeners[i].bind_address); + if (c->listeners[i].default_mount) xmlFree(c->listeners[i].default_mount); } if (c->master_server) xmlFree(c->mast...
2004 Aug 06
0
[PATCH] Add per-listener and per-mount connection time limits.
...ADPOOL_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); + configuration->client_time_limit = atoi(tmp); + if (tmp) xmlFree(tmp); } else if (strcmp...
2004 Aug 06
2
FreeBSD v5.2.1-RELEASE and Ices 2.0.0...
Hi all, I'm trying to compile ices under FreeBSD v5.2.1; I've installed : libogg-1.0_1,3 libvorbis-1.0_1,3 libxml-1.8.17_1 and libshout2. When compiling Ices it stops on ices.o: In function 'main': /usr/src/ices-2.0.0/src/ices.c:117: undefined reference to 'xmlFree' *** Error code 1 I installed most of the above from the FreeBSD ports, but can anyone point me in the right direction if I've got something that's incompatible? Many thanks, Jon --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast...
2015 Mar 22
2
exposed-port option for Icecast behind reverse proxy
...ocket")) == 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->exposed_port = atoi(tmp); + if (tmp) xmlFree(tmp); } else if (xmlStrcmp (node->name, XMLSTR("port")) == 0) { tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); configuration->port = atoi(tmp); @@ -801,6 +805,12 @@ static void _parse_listen_socket(xmlDocPtr doc, xmlNodePtr node, listener->port = atoi(tmp);...
2004 Aug 06
1
[PATCH] IceCast2 - aliasing (reimplementation of the patch I posted earlier)
...relay; mount_proxy *mount, *nextmount; + aliases *alias, *nextalias; int i; if (c->config_filename) @@ -160,6 +161,16 @@ } thread_mutex_unlock(&(_locks.mounts_lock)); + alias = c->aliases; + while(alias) { + nextalias = alias->next; + xmlFree(alias->source); + xmlFree(alias->destination); + xmlFree(alias->bind_address); + free(alias); + alias = nextalias; + } + dirnode = c->dir_list; while(dirnode) { nextdirnode = dirnode->next; @@ -423,6 +434,7 @@ configuration-&...
2004 Aug 06
1
Ices 2.0 - make error
I don't know if this thread belongs here, but I'll try it anyway. I want to install ices2 on my OpenBSD 3.4 server. If I want to "make" Ices2 there appears this error: /usr/ices-2.0.0/src/ices.c:117: undefined reference to 'xmlFree' collect2: ld returned 1 exit status **** Error code 1 Stop in /usr/ices-2.0.0/src (line 242 of Makefile). **** Error code 1 Stop in /usr/ices-2.0.0/src (line 325 of Makefile). **** Error code 1 Stop in /usr/ices-2.0.0/ (line 213 of Makefile). **** Error code 1 Stop in /usr...
2004 Aug 06
2
FreeBSD v5.2.1-RELEASE and Ices 2.0.0...
...gt; > > libogg-1.0_1,3 > > libvorbis-1.0_1,3 > > libxml-1.8.17_1 > > > > and > > > > libshout2. > > > > When compiling Ices it stops on ices.o: In function 'main': > > /usr/src/ices-2.0.0/src/ices.c:117: undefined reference to 'xmlFree' > > *** Error code 1 > > > > I installed most of the above from the FreeBSD ports, but can anyone > > point me in the right direction if I've got something that's > > incompatible? > > try installing libxml2, looks like the latest is 2.6.9 > >...
2004 Aug 06
1
AW: Ices 2.0 - make error
...treff: Re: [icecast] Ices 2.0 - make error On Mon, 26 Apr 2004, Clemens Steinkogler wrote: > I want to install ices2 on my OpenBSD 3.4 server. > > If I want to "make" Ices2 there appears this error: > > > > /usr/ices-2.0.0/src/ices.c:117: undefined reference to 'xmlFree' Do you have libxml installed? If so, what version? Geoff. --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubsc...
2004 Aug 06
0
FreeBSD v5.2.1-RELEASE and Ices 2.0.0...
...ibvorbis-1.0_1,3 > > > libxml-1.8.17_1 > > > > > > and > > > > > > libshout2. > > > > > > When compiling Ices it stops on ices.o: In function 'main': > > > /usr/src/ices-2.0.0/src/ices.c:117: undefined reference to 'xmlFree' > > > *** Error code 1 > > > > > > I installed most of the above from the FreeBSD ports, but can anyone > > > point me in the right direction if I've got something that's > > > incompatible? > > > > try installing libxml2, looks...
2005 Nov 11
0
[PATCH] icecast video preview 2
..._parse_listen_socket(doc, node->xmlChildrenNode, configuration); + } else if (strcmp(node->name, "video-preview") == 0) { + tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); + configuration->video_preview = atoi(tmp); + if (tmp) xmlFree(tmp); } else if (strcmp(node->name, "port") == 0) { tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); configuration->port = atoi(tmp); Index: src/cfgfile.h =================================================================== ---...
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
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
2017 Jun 15
0
[PATCH v6 05/41] utils: Split out cleanups into common/cleanups.
...ribute__((cleanup(guestfs_int_cleanup_unlink_free))) +#define CLEANUP_FCLOSE \ + __attribute__((cleanup(guestfs_int_cleanup_fclose))) +#define CLEANUP_PCLOSE \ + __attribute__((cleanup(guestfs_int_cleanup_pclose))) +#define CLEANUP_XMLFREE \ + __attribute__((cleanup(guestfs_int_cleanup_xmlFree))) +#define CLEANUP_XMLBUFFERFREE \ + __attribute__((cleanup(guestfs_int_cleanup_xmlBufferFree))) +#define CLEANUP_XMLFREEDOC \ + __attrib...
2019 Jul 09
7
[PATCH 0/5] Split virt-p2v in own repository
Hi, as it was already discussed on this list, here it is my attempt in splitting virt-p2v in an own repository. Sadly there are things that must be copied from libguestfs, as it cannot be avoided. The approach taken was to run a script (will send separately) to just get the "p2v" subdirectory with its history as own repository, and then add in few followup commits all the bits needed
2017 Jun 19
16
[PATCH v7 00/13] Refactor utilities
This is just the utilities part of the patch series from: https://www.redhat.com/archives/libguestfs/2017-June/msg00103.html I believe this addresses everything raised in comments on that patch series. Rich.
2017 Jun 09
12
[PATCH 00/12] Refactor utility functions.
This turned out to be rather more involved than I thought. We have lots of utility functions, spread all over the repository, with not a lot of structure. This moves many of them under common/ and structures them so there are clear dependencies. This doesn't complete the job by any means. Other items I had on my to-do list for this change were: - Split up mllib/common_utils into: -
2017 Jun 12
32
[PATCH v5 00/32] Refactor utilities, implement some APIs in OCaml.
This is a combination of: https://www.redhat.com/archives/libguestfs/2017-June/msg00046.html [PATCH 00/12] Refactor utility functions. plus: https://www.redhat.com/archives/libguestfs/2017-June/msg00023.html [PATCH v3 00/19] Allow APIs to be implemented in OCaml. with the second patches rebased on top of the utility refactoring, and some other adjustments and extensions. This passes