libgupnp-dlna: Move profile list to DLNADiscovererClass
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 14 Aug 2010 12:14:51 +0000 (17:44 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 14 Aug 2010 16:10:45 +0000 (21:40 +0530)
commit62f9c8aa05599b9cf5af73bdc42d0d5c51ab4b3c
tree1f30af023e039da90fbf3e77d993512e95aa22e7
parent5d436874e7f9d1a94fd6503ed26e44bf086ec5e1
libgupnp-dlna: Move profile list to DLNADiscovererClass

Instead of keeping the profile list loaded from disk in a static global
variable, we now make this a static member on the GUPnPDLNADiscoverer
class.

Corresponding to this, we move _get_profile() (and future API of a
similar nature) from the library-wide namespace into the class'
namespace.

Based on a patch from:
Parthasarathi Susarla <partha.susarla@collabora.co.uk>
libgupnp-dlna/gupnp-dlna-discoverer.c
libgupnp-dlna/gupnp-dlna-discoverer.h
libgupnp-dlna/gupnp-dlna-information.h
libgupnp-dlna/gupnp-dlna-profile.h
libgupnp-dlna/gupnp-dlna-profiles.c
tests/dlna-encoding.c