mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
API: add GST_QUERY_CAST
because we can, and for consistency.
This commit is contained in:
parent
d430552ec3
commit
0492ca71f5
2 changed files with 3 additions and 0 deletions
|
@ -1818,6 +1818,7 @@ gst_query_set_uri
|
|||
<SUBSECTION Standard>
|
||||
GstQueryClass
|
||||
GST_QUERY
|
||||
GST_QUERY_CAST
|
||||
GST_IS_QUERY
|
||||
GST_QUERY_CLASS
|
||||
GST_IS_QUERY_CLASS
|
||||
|
|
|
@ -114,8 +114,10 @@ struct _GstQueryTypeDefinition
|
|||
#define GST_IS_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_QUERY))
|
||||
#define GST_QUERY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_QUERY, GstQueryClass))
|
||||
#define GST_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_QUERY, GstQuery))
|
||||
#define GST_QUERY_CAST(obj) ((GstQuery*)(obj)) /* only since 0.10.23 */
|
||||
#define GST_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_QUERY, GstQueryClass))
|
||||
|
||||
|
||||
/**
|
||||
* GST_QUERY_TYPE:
|
||||
* @query: the query to query
|
||||
|
|
Loading…
Reference in a new issue