mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 12:02:27 +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" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#define GST_DATA(data) (GstData*)(data)
|
||||||
|
#define GST_DATA_TYPE(data) (((GstData*)(data))->type)
|
||||||
|
|
||||||
typedef struct _GstData GstData;
|
typedef struct _GstData GstData;
|
||||||
|
|
||||||
struct _GstData {
|
struct _GstData {
|
||||||
GstDataType type;
|
GType type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in a new issue