diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-04-16 12:12:44 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-04-16 12:14:43 +0200 |
commit | f83f57b6486dca3582c9754b1d31dbc1dfb3d4b1 (patch) | |
tree | 6b9658c6ed23fb4a0a029cc4420286c98ab5b9cc | |
parent | 03d6509f7fb00b6e518150b30a9970efe0c8c232 (diff) |
app: add trivial cast macros
Add trivial cast macros for appsrc and appsink. Mark them as being since 0.10.23
and add the macros to the standard macros in the docs.
Fixes #579130
-rw-r--r-- | docs/libs/gst-plugins-base-libs-sections.txt | 2 | ||||
-rw-r--r-- | gst-libs/gst/app/gstappsink.h | 3 | ||||
-rw-r--r-- | gst-libs/gst/app/gstappsrc.h | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/docs/libs/gst-plugins-base-libs-sections.txt b/docs/libs/gst-plugins-base-libs-sections.txt index f63937840..2d4a76652 100644 --- a/docs/libs/gst-plugins-base-libs-sections.txt +++ b/docs/libs/gst-plugins-base-libs-sections.txt @@ -24,6 +24,7 @@ gst_app_src_end_of_stream <SUBSECTION Standard> GstAppSrcClass GST_APP_SRC +GST_APP_SRC_CAST GST_IS_APP_SRC GST_TYPE_APP_SRC gst_app_src_get_type @@ -65,6 +66,7 @@ gst_app_sink_set_callbacks GstAppSinkPrivate GstAppSinkClass GST_APP_SINK +GST_APP_SINK_CAST GST_IS_APP_SINK GST_TYPE_APP_SINK gst_app_sink_get_type diff --git a/gst-libs/gst/app/gstappsink.h b/gst-libs/gst/app/gstappsink.h index a2395ac9f..d16a8601e 100644 --- a/gst-libs/gst/app/gstappsink.h +++ b/gst-libs/gst/app/gstappsink.h @@ -35,6 +35,9 @@ G_BEGIN_DECLS (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_APP_SINK)) #define GST_IS_APP_SINK_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_APP_SINK)) +/* Since 0.10.23 */ +#define GST_APP_SINK_CAST(obj) \ + ((GstAppSink*)(obj)) typedef struct _GstAppSink GstAppSink; typedef struct _GstAppSinkClass GstAppSinkClass; diff --git a/gst-libs/gst/app/gstappsrc.h b/gst-libs/gst/app/gstappsrc.h index a399fc2ef..a1e09f7a5 100644 --- a/gst-libs/gst/app/gstappsrc.h +++ b/gst-libs/gst/app/gstappsrc.h @@ -35,6 +35,9 @@ G_BEGIN_DECLS (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_APP_SRC)) #define GST_IS_APP_SRC_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_APP_SRC)) +/* Since 0.10.23 */ +#define GST_APP_SRC_CAST(obj) \ + ((GstAppSrc*)(obj)) typedef struct _GstAppSrc GstAppSrc; typedef struct _GstAppSrcClass GstAppSrcClass; |