From 45a07481db85d8f37bca0f6f32a4d4fcbb3bac1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 15 Oct 2005 20:33:09 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ docs/gst/gstreamer-sections.txt | 1 + gst/gstevent.h | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 27bf684502..80fe6d2177 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-15 Tim-Philipp Müller + + * docs/gst/gstreamer-sections.txt: + * gst/gstevent.h: + Add GST_EVENT_TYPE_NAME() macro. + 2005-10-15 Thomas Vander Stichele * gst/gstinfo.c: diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index b6ee954b45..fc82ef93d2 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -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 diff --git a/gst/gstevent.h b/gst/gstevent.h index a070366111..4e26adce7d 100644 --- a/gst/gstevent.h +++ b/gst/gstevent.h @@ -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