Re: [gupnp] [PATCH] Free the array allocated by xmlGetNsList()
- From: Sven Neumann <s neumann raumfeld com>
- To: gupnp o-hand com
- Subject: Re: [gupnp] [PATCH] Free the array allocated by xmlGetNsList()
- Date: Thu, 20 May 2010 17:40:48 +0200
On Thu, 2010-05-20 at 15:28 +0300, Zeeshan Ali (Khattak) wrote:
> > Turns out to be difficult to implement this without changing public API.
> > We would have to add more parameters to
> > gupnp_didl_lite_object_new_from_xml().
>
> That is not public API so it's not an issue. The only public _new
> methods are that of DIDLLiteWriter and DIDLLiteParser, all other
> objects are created by use of methods in these objects which in turn
> call the (internal) _new methods of object being created.
Ah, I didn't realize that. I tend to mark internal functions that are
not static with a leading underscore and somehow assumed that this
convention would be used here as well. Will try to come up with a patch
tomorrow then.
You might want to mark gupnp_didl_lite_object_new_from_xml() with
G_GNUC_INTERNAL so that it isn't exposed as a public method in the
library. Also gupnp_didl_lite_container_new_from_xml() should probably
be removed. It doesn't seem to be called from anywhere and isn't even
prototpyed.
Sven
--
To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]