[gupnp-dlna/wip/new-api: 10/48] Make GUPnPDLNAValueList a boxed type.



commit b4fbb10f4ec14a7aca34bb2a4d458d13a3874006
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Thu Nov 29 12:45:17 2012 +0100

    Make GUPnPDLNAValueList a boxed type.

 libgupnp-dlna/gupnp-dlna-value-list.c |    5 +++++
 libgupnp-dlna/gupnp-dlna-value-list.h |   13 +++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/libgupnp-dlna/gupnp-dlna-value-list.c b/libgupnp-dlna/gupnp-dlna-value-list.c
index ba5a0fb..d09a229 100644
--- a/libgupnp-dlna/gupnp-dlna-value-list.c
+++ b/libgupnp-dlna/gupnp-dlna-value-list.c
@@ -29,6 +29,11 @@ struct _GUPnPDLNAValueList {
         gboolean                  sorted;
 };
 
+G_DEFINE_BOXED_TYPE (GUPnPDLNAValueList,
+                     gupnp_dlna_value_list,
+                     gupnp_dlna_value_list_copy,
+                     gupnp_dlna_value_list_free)
+
 GUPnPDLNAValueList *
 gupnp_dlna_value_list_new (GUPnPDLNANativeValueType *type)
 {
diff --git a/libgupnp-dlna/gupnp-dlna-value-list.h b/libgupnp-dlna/gupnp-dlna-value-list.h
index a9721d8..b8778e6 100644
--- a/libgupnp-dlna/gupnp-dlna-value-list.h
+++ b/libgupnp-dlna/gupnp-dlna-value-list.h
@@ -29,6 +29,19 @@ G_BEGIN_DECLS
 
 typedef struct _GUPnPDLNAValueList GUPnPDLNAValueList;
 
+#define GUPNP_DLNA_VALUE_LIST(x) \
+        ((GUPnPDLNAValueList *) x)
+
+/**
+ * GUPNP_TYPE_DLNA_VALUE_LIST:
+ *
+ * The #GType for #GUPnPDLNAValueList.
+ */
+#define GUPNP_TYPE_DLNA_VALUE_LIST (gupnp_dlna_value_list_get_type ())
+
+GType
+gupnp_dlna_value_list_get_type (void) G_GNUC_CONST;
+
 GUPnPDLNAValueList *
 gupnp_dlna_value_list_copy (GUPnPDLNAValueList *list);
 



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