From 38bbb8c2745fc683a902298e7b5e5fa073cbfdc9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 10 Sep 2001 21:56:38 +0000 Subject: [PATCH] Added the GType and some macros to access/cast to the structure. Original commit message from CVS: Added the GType and some macros to access/cast to the structure. --- gst/gstdata.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/gstdata.h b/gst/gstdata.h index a5394e4db9..198ae7e822 100644 --- a/gst/gstdata.h +++ b/gst/gstdata.h @@ -30,10 +30,13 @@ extern "C" { #endif /* __cplusplus */ +#define GST_DATA(data) (GstData*)(data) +#define GST_DATA_TYPE(data) (((GstData*)(data))->type) + typedef struct _GstData GstData; struct _GstData { - GstDataType type; + GType type; }; #ifdef __cplusplus