mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
Make GstEvent extend GstData and added some macros.
Original commit message from CVS: Make GstEvent extend GstData and added some macros.
This commit is contained in:
parent
38bbb8c274
commit
e0ad55e8cd
1 changed files with 13 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
#define __GST_EVENT_H__
|
||||
|
||||
#include <gst/gstobject.h>
|
||||
#include <gst/gstdata.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -38,12 +39,24 @@ typedef enum {
|
|||
GST_EVENT_SEEK,
|
||||
} GstEventType;
|
||||
|
||||
#define GST_EVENT(event) ((GstEvent*)(event))
|
||||
#define GST_IS_EVENT(event) (GST_DATA_TYPE(event) == gst_event_get_type())
|
||||
|
||||
#define GST_EVENT_TYPE(event) (GST_EVENT(event)->type)
|
||||
|
||||
typedef struct _GstEvent GstEvent;
|
||||
|
||||
struct _GstEvent {
|
||||
GstData data;
|
||||
|
||||
GstEventType type;
|
||||
};
|
||||
|
||||
GType gst_event_get_type (void);
|
||||
|
||||
GstEvent* gst_event_empty_new (GstEventType type);
|
||||
void gst_event_free (GstEvent* event);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
Loading…
Reference in a new issue