[libdmapsharing] Make DAAPRecord's "mediakind" property an enum Signed-off-by: W. Michael Petullo <mike flyn org>



commit 35287678b69906d6bc478924f45c86465c1b00d2
Author: W. Michael Petullo <mike flyn org>
Date:   Sat Apr 30 17:01:51 2011 -0500

    Make DAAPRecord's "mediakind" property an enum
    Signed-off-by: W. Michael Petullo <mike flyn org>

 distro/libdmapsharing.spec   |    2 +-
 libdmapsharing/daap-record.c |    8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/distro/libdmapsharing.spec b/distro/libdmapsharing.spec
index 4bcdfff..6c864ad 100644
--- a/distro/libdmapsharing.spec
+++ b/distro/libdmapsharing.spec
@@ -1,5 +1,5 @@
 Name: libdmapsharing
-Version: 2.9.0
+Version: 2.9.8
 Release: 1%{?dist}
 License: LGPLv2+
 Source: http://www.flyn.org/projects/libdmapsharing/libdmapsharing-%{version}.tar.gz
diff --git a/libdmapsharing/daap-record.c b/libdmapsharing/daap-record.c
index 18047b0..1e45115 100644
--- a/libdmapsharing/daap-record.c
+++ b/libdmapsharing/daap-record.c
@@ -19,6 +19,7 @@
  */
 
 #include <libdmapsharing/daap-record.h>
+#include <libdmapsharing/dmap-enums.h>
 
 static gint daap_record_init_count = 0;
 
@@ -46,11 +47,12 @@ daap_record_init (DAAPRecordIface * iface)
 
 		/* FIXME: This is actually an enum */
 		g_object_interface_install_property (iface,
-						     g_param_spec_int
+						     g_param_spec_enum
 						     ("mediakind",
 						      "Media kind",
-						      "Media kind", 0,
-						      G_MAXINT, 1,
+						      "Media kind",
+						      DMAP_TYPE_DMAP_MEDIA_KIND,
+						      DMAP_MEDIA_KIND_MUSIC,
 						      G_PARAM_READWRITE));
 
 		/* NOTE: the name must match the part after the last dot of the



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