introspection: Don't typedef GstTagList to GstStructure for gobject-introspection

This commit is contained in:
Sebastian Dröge 2009-09-12 13:51:29 +02:00
parent 41479df703
commit 1c253a01a4
2 changed files with 6 additions and 0 deletions

View 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 \

View 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 ())