gst-libs/gst/tag/gsttagdemux.*: Add GType for GstTagDemuxResult enum.
authorEdward Hervey <bilboed@bilboed.com>
Wed, 31 Dec 2008 13:31:55 +0000 (13:31 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 31 Dec 2008 13:31:55 +0000 (13:31 +0000)
Original commit message from CVS:
* gst-libs/gst/tag/gsttagdemux.c: (gst_tag_demux_result_get_type):
* gst-libs/gst/tag/gsttagdemux.h:
Add GType for GstTagDemuxResult enum.

ChangeLog
gst-libs/gst/tag/gsttagdemux.c
gst-libs/gst/tag/gsttagdemux.h

index cb14332a5a72c902f56ecfd491b88d2e73da9e7e..edd46f7295b59a8f9a1a3e8a4c7aa94b79c310b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-31  Edward Hervey  <edward.hervey@collabora.co.uk>
+
+       * gst-libs/gst/tag/gsttagdemux.c: (gst_tag_demux_result_get_type):
+       * gst-libs/gst/tag/gsttagdemux.h:
+       Add GType for GstTagDemuxResult enum.
+
 2008-12-31  Edward Hervey  <edward.hervey@collabora.co.uk>
 
        * gst-libs/gst/video/Makefile.am:
index b6a9b324857e77e3df10bbef46d583a4ede40ef0..8bc1b3c80a7416199a54d5f7bfa577c5e1c37cdf 100644 (file)
@@ -163,6 +163,23 @@ static void gst_tag_demux_init (GstTagDemux * obj, GstTagDemuxClass * klass);
 
 static gpointer parent_class;   /* NULL */
 
+GType
+gst_tag_demux_result_get_type (void)
+{
+  static GType etype = 0;
+  if (etype == 0) {
+    static const GEnumValue values[] = {
+      {GST_TAG_DEMUX_RESULT_BROKEN_TAG, "GST_TAG_DEMUX_RESULT_BROKEN_TAG",
+            "broken-tag"},
+      {GST_TAG_DEMUX_RESULT_AGAIN, "GST_TAG_DEMUX_RESULT_AGAIN", "again"},
+      {GST_TAG_DEMUX_RESULT_OK, "GST_TAG_DEMUX_RESULT_OK", "ok"},
+      {0, NULL, NULL}
+    };
+    etype = g_enum_register_static ("GstTagDemuxResult", values);
+  }
+  return etype;
+}
+
 /* Cannot use boilerplate macros here because we want the abstract flag */
 GType
 gst_tag_demux_get_type (void)
index 32ca084fcd68049671ff24744e2e52c346ab2094..1fbff90bd9e65ce4c5afeb042487ef819d35dded 100644 (file)
@@ -51,6 +51,9 @@ typedef enum {
   GST_TAG_DEMUX_RESULT_OK
 } GstTagDemuxResult;
 
+GType gst_tag_demux_result_get_type (void);
+#define GST_TYPE_TAG_DEMUX_RESULT (gst_tag_demux_result_get_type())
+
 /**
  * GstTagDemux:
  * @element: parent element