introspection: Don't typedef GstTagList to GstStructure for gobject-introspection
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 12 Sep 2009 11:51:29 +0000 (13:51 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 12 Sep 2009 12:35:08 +0000 (14:35 +0200)
gst/Makefile.am
gst/gsttaglist.h

index e80cc4caa814bdb5f2ed554e46c2ad2f978c639f..8bcb9a109fff3d00a399348c5538308f6d9a78e0 100644 (file)
@@ -248,6 +248,7 @@ Gst-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@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 \
index 459cf3b8020bb36568180b5b0bc0ce06b66b3a01..28a2c1119ac710ba7c0bcdf068f44abdc7401294 100644 (file)
@@ -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 ())