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.
This commit is contained in:
Wim Taymans 2001-09-10 21:56:38 +00:00
parent b7be7d61e5
commit 38bbb8c274

View file

@ -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