mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
event: move some more defines on top
This commit is contained in:
parent
44b4312d96
commit
b5976339e2
1 changed files with 26 additions and 28 deletions
|
@ -27,33 +27,6 @@
|
|||
|
||||
typedef struct _GstEvent GstEvent;
|
||||
|
||||
#include <gst/gstminiobject.h>
|
||||
#include <gst/gstformat.h>
|
||||
#include <gst/gstobject.h>
|
||||
#include <gst/gstclock.h>
|
||||
#include <gst/gststructure.h>
|
||||
#include <gst/gsttaglist.h>
|
||||
#include <gst/gstsegment.h>
|
||||
#include <gst/gstsegment.h>
|
||||
#include <gst/gstmessage.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
extern GType _gst_event_type;
|
||||
|
||||
|
||||
#define GST_TYPE_EVENT (_gst_event_type)
|
||||
#define GST_IS_EVENT(obj) (GST_IS_MINI_OBJECT_TYPE (obj, GST_TYPE_EVENT))
|
||||
#define GST_EVENT_CAST(obj) ((GstEvent *)(obj))
|
||||
#define GST_EVENT(obj) (GST_EVENT_CAST(obj))
|
||||
|
||||
/**
|
||||
* GST_EVENT_TRACE_NAME:
|
||||
*
|
||||
* The name used for memory allocation tracing
|
||||
*/
|
||||
#define GST_EVENT_TRACE_NAME "GstEvent"
|
||||
|
||||
/**
|
||||
* GstEventTypeFlags:
|
||||
* @GST_EVENT_TYPE_UPSTREAM: Set if the event can travel upstream.
|
||||
|
@ -99,7 +72,6 @@ typedef enum {
|
|||
|
||||
#define FLAG(name) GST_EVENT_TYPE_##name
|
||||
|
||||
|
||||
#define GST_EVENT_STICKY_IDX_TYPE(type) (((type) >> GST_EVENT_STICKY_SHIFT) & 0xf)
|
||||
#define GST_EVENT_STICKY_IDX(ev) GST_EVENT_STICKY_IDX_TYPE(GST_EVENT_TYPE(ev))
|
||||
|
||||
|
@ -184,6 +156,32 @@ typedef enum {
|
|||
} GstEventType;
|
||||
#undef FLAG
|
||||
|
||||
#include <gst/gstminiobject.h>
|
||||
#include <gst/gstformat.h>
|
||||
#include <gst/gstobject.h>
|
||||
#include <gst/gstclock.h>
|
||||
#include <gst/gststructure.h>
|
||||
#include <gst/gsttaglist.h>
|
||||
#include <gst/gstsegment.h>
|
||||
#include <gst/gstsegment.h>
|
||||
#include <gst/gstmessage.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
extern GType _gst_event_type;
|
||||
|
||||
#define GST_TYPE_EVENT (_gst_event_type)
|
||||
#define GST_IS_EVENT(obj) (GST_IS_MINI_OBJECT_TYPE (obj, GST_TYPE_EVENT))
|
||||
#define GST_EVENT_CAST(obj) ((GstEvent *)(obj))
|
||||
#define GST_EVENT(obj) (GST_EVENT_CAST(obj))
|
||||
|
||||
/**
|
||||
* GST_EVENT_TRACE_NAME:
|
||||
*
|
||||
* The name used for memory allocation tracing
|
||||
*/
|
||||
#define GST_EVENT_TRACE_NAME "GstEvent"
|
||||
|
||||
/**
|
||||
* GST_EVENT_TYPE:
|
||||
* @event: the event to query
|
||||
|
|
Loading…
Reference in a new issue