mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 22:28:22 +00:00
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:
parent
b7be7d61e5
commit
38bbb8c274
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue