[gst-cvs] gstreamer: introspection: Don' t typedef GstTagList to GstStructure for gobject-introspection
Sebastian Dröge
slomo at kemper.freedesktop.org
Sun Sep 13 02:18:17 PDT 2009
Module: gstreamer
Branch: master
Commit: 1c253a01a45e5736c40217c44ba30cf5490e4e53
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=1c253a01a45e5736c40217c44ba30cf5490e4e53
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Sat Sep 12 13:51:29 2009 +0200
introspection: Don't typedef GstTagList to GstStructure for gobject-introspection
---
gst/Makefile.am | 1 +
gst/gsttaglist.h | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gst/Makefile.am b/gst/Makefile.am
index e80cc4c..8bcb9a1 100644
--- a/gst/Makefile.am
+++ b/gst/Makefile.am
@@ -248,6 +248,7 @@ Gst- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstreamer- at GST_MAJORMINOR@
--nsversion=@GST_MAJORMINOR@ \
-I$(top_srcdir) \
-I$(top_builddir) \
+ -DIN_GOBJECT_INTROSPECTION=1 \
--c-include='gst/gst.h' \
--library=gstreamer-0.10 \
--include=GLib-2.0 \
diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h
index 459cf3b..28a2c11 100644
--- a/gst/gsttaglist.h
+++ b/gst/gsttaglist.h
@@ -150,7 +150,12 @@ typedef enum {
*
* Opaque #GstTagList data structure.
*/
+#ifdef IN_GOBJECT_INTROSPECTION
+typedef struct _GstTagList GstTagList;
+#else
typedef GstStructure GstTagList;
+#endif
+
#define GST_TAG_LIST(x) ((GstTagList *) (x))
#define GST_IS_TAG_LIST(x) ((x) != NULL && gst_is_tag_list (GST_TAG_LIST (x)))
#define GST_TYPE_TAG_LIST (gst_tag_list_get_type ())
More information about the Gstreamer-commits
mailing list