From: Edward Hervey Date: Wed, 31 Dec 2008 13:31:55 +0000 (+0000) Subject: gst-libs/gst/tag/gsttagdemux.*: Add GType for GstTagDemuxResult enum. X-Git-Tag: 1.19.3~511^2~10113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70a35897fbdad972de100d4e38f394f2c8cc2234;p=platform%2Fupstream%2Fgstreamer.git gst-libs/gst/tag/gsttagdemux.*: Add GType for GstTagDemuxResult enum. 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. --- diff --git a/ChangeLog b/ChangeLog index cb14332..edd46f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-12-31 Edward Hervey + * 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 + * gst-libs/gst/video/Makefile.am: * gst-libs/gst/video/video.h: Add glib-mkenum for GstVideoFormat enum GTYPE auto-generation. diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c index b6a9b32..8bc1b3c 100644 --- a/gst-libs/gst/tag/gsttagdemux.c +++ b/gst-libs/gst/tag/gsttagdemux.c @@ -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) diff --git a/gst-libs/gst/tag/gsttagdemux.h b/gst-libs/gst/tag/gsttagdemux.h index 32ca084..1fbff90 100644 --- a/gst-libs/gst/tag/gsttagdemux.h +++ b/gst-libs/gst/tag/gsttagdemux.h @@ -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