diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-12 13:51:29 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-12 14:35:08 +0200 |
commit | 1c253a01a45e5736c40217c44ba30cf5490e4e53 (patch) | |
tree | bbc919548106a62c0493bd3cbf4da0aa04bf65b2 | |
parent | 41479df7039bb4aae4b727ddbe4beda16da7759e (diff) |
introspection: Don't typedef GstTagList to GstStructure for gobject-introspection
-rw-r--r-- | gst/Makefile.am | 1 | ||||
-rw-r--r-- | gst/gsttaglist.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gst/Makefile.am b/gst/Makefile.am index e80cc4caa8..8bcb9a109f 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -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 \ diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index 459cf3b802..28a2c1119a 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 ()) |