Add GST_EVENT_TYPE_NAME() macro.

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstevent.h:
Add GST_EVENT_TYPE_NAME() macro.
This commit is contained in:
Tim-Philipp Müller 2005-10-15 20:33:09 +00:00
parent 727717604e
commit 45a07481db
3 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-10-15 Tim-Philipp Müller <tim at centricular dot net>
* docs/gst/gstreamer-sections.txt:
* gst/gstevent.h:
Add GST_EVENT_TYPE_NAME() macro.
2005-10-15 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstinfo.c:

View file

@ -606,6 +606,7 @@ GstEvent
GstEventType
GST_EVENT_TRACE_NAME
GST_EVENT_TYPE
GST_EVENT_TYPE_NAME
GST_EVENT_TIMESTAMP
GST_EVENT_SRC
GST_EVENT_IS_DOWNSTREAM

View file

@ -129,6 +129,14 @@ typedef struct _GstEventClass GstEventClass;
*/
#define GST_EVENT_TYPE(event) (GST_EVENT(event)->type)
/**
* GST_EVENT_TYPE_NAME:
* @event: the event to query
*
* Get a constant string representation of the #GstEventType of the event.
*/
#define GST_EVENT_TYPE_NAME(event) (gst_event_type_get_name(GST_EVENT_TYPE(event))
/**
* GST_EVENT_TIMESTAMP:
* @event: the event to query