[gupnp-av/wip/didl-s] wip: Some fixes



commit fc464adc9faa09eccb354ea9a10dfad828c2d16d
Author: Jens Georg <mail jensge org>
Date:   Wed Oct 31 19:44:37 2012 +0100

    wip: Some fixes

 libgupnp-av/gupnp-av.h               |    2 +-
 libgupnp-av/gupnp-media-collection.c |    6 ++++++
 libgupnp-av/gupnp-media-collection.h |    7 +------
 3 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/libgupnp-av/gupnp-av.h b/libgupnp-av/gupnp-av.h
index 21da810..dbf9df0 100644
--- a/libgupnp-av/gupnp-av.h
+++ b/libgupnp-av/gupnp-av.h
@@ -36,4 +36,4 @@
 #include "gupnp-feature.h"
 #include "gupnp-feature-list-parser.h"
 #include "gupnp-dlna.h"
-
+#include "gupnp-media-collection.h"
diff --git a/libgupnp-av/gupnp-media-collection.c b/libgupnp-av/gupnp-media-collection.c
index efcb0d4..d8036c0 100644
--- a/libgupnp-av/gupnp-media-collection.c
+++ b/libgupnp-av/gupnp-media-collection.c
@@ -218,6 +218,12 @@ gupnp_media_collection_class_init (GUPnPMediaCollectionClass *klass)
                                       G_PARAM_STATIC_STRINGS));
 }
 
+GUPnPMediaCollection *
+gupnp_media_collection_new ()
+{
+        return g_object_new (GUPNP_TYPE_MEDIA_COLLECTION, NULL);
+}
+
 void
 gupnp_media_collection_set_title  (GUPnPMediaCollection *collection,
                                    const char           *title)
diff --git a/libgupnp-av/gupnp-media-collection.h b/libgupnp-av/gupnp-media-collection.h
index 477db6c..fba0e42 100644
--- a/libgupnp-av/gupnp-media-collection.h
+++ b/libgupnp-av/gupnp-media-collection.h
@@ -56,11 +56,6 @@ typedef struct _GUPnPMediaCollectionPrivate GUPnPMediaCollectionPrivate;
 typedef struct _GUPnPMediaCollection GUPnPMediaCollection;
 typedef struct _GUPnPMediaCollectionClass GUPnPMediaCollectionClass;
 
-enum _GUPnPMediaCollectionType {
-        DIDL_S
-};
-typedef enum _GUPnPMediaCollectionType GUPnPMediaCollectionType;
-
 struct _GUPnPMediaCollection {
         GObject parent;
 
@@ -78,7 +73,7 @@ struct _GUPnPMediaCollectionClass {
 };
 
 GUPnPMediaCollection *
-gupnp_media_collection_new (GUPnPMediaCollectionType type);
+gupnp_media_collection_new ();
 
 void
 gupnp_media_collection_set_title  (GUPnPMediaCollection *collection,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]