summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/video
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2005-02-09 22:31:05 +0000
committerTim-Philipp Müller <tim@centricular.net>2005-02-09 22:31:05 +0000
commit4dd33312feee6770621e7195a8ba94a6d7215be7 (patch)
treef54ec68ae69cd8f35da12e02bdb2c112810e1a19 /gst-libs/gst/video
parent5314b289ec3a08658419419447cecb649b50b19d (diff)
downloadgst-plugins-bad-4dd33312feee6770621e7195a8ba94a6d7215be7.tar.gz
gst-plugins-bad-4dd33312feee6770621e7195a8ba94a6d7215be7.tar.bz2
gst-plugins-bad-4dd33312feee6770621e7195a8ba94a6d7215be7.zip
Add G_BEGIN_DECLS and G_END_DECLS around headers where missing, so that they work when included from C++ code
Original commit message from CVS: Add G_BEGIN_DECLS and G_END_DECLS around headers where missing, so that they work when included from C++ code
Diffstat (limited to 'gst-libs/gst/video')
-rw-r--r--gst-libs/gst/video/video.h4
-rw-r--r--gst-libs/gst/video/videosink.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/gst-libs/gst/video/video.h b/gst-libs/gst/video/video.h
index 6875f636..97a2aacd 100644
--- a/gst-libs/gst/video/video.h
+++ b/gst-libs/gst/video/video.h
@@ -23,6 +23,8 @@
#include <gst/gst.h>
+G_BEGIN_DECLS
+
#define GST_VIDEO_BYTE1_MASK_32 "0xFF000000"
#define GST_VIDEO_BYTE2_MASK_32 "0x00FF0000"
#define GST_VIDEO_BYTE3_MASK_32 "0x0000FF00"
@@ -187,4 +189,6 @@ gboolean gst_video_get_size (GstPad *pad,
gint *width,
gint *height);
+G_END_DECLS
+
#endif /* __GST_VIDEO_H__ */
diff --git a/gst-libs/gst/video/videosink.h b/gst-libs/gst/video/videosink.h
index d1e3aa97..bdf52e15 100644
--- a/gst-libs/gst/video/videosink.h
+++ b/gst-libs/gst/video/videosink.h
@@ -24,9 +24,7 @@
#include <gst/gst.h>
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
#define GST_TYPE_VIDEOSINK (gst_videosink_get_type())
#define GST_VIDEOSINK(obj) \
@@ -68,8 +66,6 @@ struct _GstVideoSinkClass {
GType gst_videosink_get_type (void);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
#endif /* __GST_VIDEOSINK_H__ */