mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
New API: add GST_MESSAGE_TYPE_NAME and GST_QUERY_TYPE_NAME macros (#330906). Also, document the already existing
Original commit message from CVS: * docs/gst/gstreamer-sections.txt: * gst/gstmessage.h: * gst/gstquery.h: New API: add GST_MESSAGE_TYPE_NAME and GST_QUERY_TYPE_NAME macros (#330906). Also, document the already existing GST_QUERY_TYPE macro.
This commit is contained in:
parent
8521262f84
commit
2ca3c26ed3
4 changed files with 38 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
|||
2006-02-13 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* docs/gst/gstreamer-sections.txt:
|
||||
* gst/gstmessage.h:
|
||||
* gst/gstquery.h:
|
||||
New API: add GST_MESSAGE_TYPE_NAME and GST_QUERY_TYPE_NAME
|
||||
macros (#330906). Also, document the already existing
|
||||
GST_QUERY_TYPE macro.
|
||||
|
||||
2006-02-13 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* tests/check/gst/gstutils.c: (data_probe), (buffer_probe),
|
||||
|
|
|
@ -940,6 +940,7 @@ GstMessageType
|
|||
GST_MESSAGE_SRC
|
||||
GST_MESSAGE_TIMESTAMP
|
||||
GST_MESSAGE_TYPE
|
||||
GST_MESSAGE_TYPE_NAME
|
||||
GST_MESSAGE_TRACE_NAME
|
||||
gst_message_type_to_quark
|
||||
gst_message_type_get_name
|
||||
|
@ -1507,6 +1508,8 @@ gst_rank_get_type
|
|||
<TITLE>GstQuery</TITLE>
|
||||
GstQuery
|
||||
GstQueryType
|
||||
GST_QUERY_TYPE
|
||||
GST_QUERY_TYPE_NAME
|
||||
GST_QUERY_TYPE_RATE_DEN
|
||||
GstQueryTypeDefinition
|
||||
|
||||
|
|
|
@ -123,6 +123,15 @@ typedef enum
|
|||
* Get the #GstMessageType of @message.
|
||||
*/
|
||||
#define GST_MESSAGE_TYPE(message) (GST_MESSAGE(message)->type)
|
||||
/**
|
||||
* GST_MESSAGE_TYPE_NAME:
|
||||
* @message: a #GstMessage
|
||||
*
|
||||
* Get a constant string representation of the #GstMessageType of @message.
|
||||
*
|
||||
* Since: 0.10.4
|
||||
*/
|
||||
#define GST_MESSAGE_TYPE_NAME(message) gst_message_type_get_name(GST_MESSAGE_TYPE(message))
|
||||
/**
|
||||
* GST_MESSAGE_TIMESTAMP:
|
||||
* @message: a #GstMessage
|
||||
|
|
|
@ -99,8 +99,25 @@ struct _GstQueryTypeDefinition
|
|||
#define GST_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_QUERY, GstQuery))
|
||||
#define GST_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_QUERY, GstQueryClass))
|
||||
|
||||
/**
|
||||
* GST_QUERY_TYPE:
|
||||
* @query: the query to query
|
||||
*
|
||||
* Get the #GstQueryType of the query.
|
||||
*/
|
||||
#define GST_QUERY_TYPE(query) (((GstQuery*)(query))->type)
|
||||
|
||||
/**
|
||||
* GST_QUERY_TYPE_NAME:
|
||||
* @query: the query to query
|
||||
*
|
||||
* Get a constant string representation of the #GstQueryType of the query.
|
||||
*
|
||||
* Since: 0.10.4
|
||||
*/
|
||||
#define GST_QUERY_TYPE_NAME(query) (gst_query_type_get_name(GST_QUERY_TYPE(query)))
|
||||
|
||||
|
||||
/**
|
||||
* GstQuery:
|
||||
* @mini_object: The parent #GstMiniObject type
|
||||
|
|
Loading…
Reference in a new issue