[gst-cvs] gst-plugins-good: debugutils: Use G_BEGIN_DECLS/G_END_DECLS.
Peter Kjellerstedt
pkj at kemper.freedesktop.org
Wed Apr 15 06:57:43 PDT 2009
Module: gst-plugins-good
Branch: master
Commit: af7f3a50ddef157e32493597ee28a2f5ee4c5fa6
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=af7f3a50ddef157e32493597ee28a2f5ee4c5fa6
Author: Peter Kjellerstedt <pkj at axis.com>
Date: Wed Apr 15 15:51:24 2009 +0200
debugutils: Use G_BEGIN_DECLS/G_END_DECLS.
Use G_BEGIN_DECLS/G_END_DECLS to avoid gst-indent messing up the
indentation due to extern "C" { }.
---
gst/debugutils/efence.h | 42 +++++++++++++++++-------------------------
1 files changed, 17 insertions(+), 25 deletions(-)
diff --git a/gst/debugutils/efence.h b/gst/debugutils/efence.h
index 7c4acb5..c2c95a4 100644
--- a/gst/debugutils/efence.h
+++ b/gst/debugutils/efence.h
@@ -1,4 +1,4 @@
-/*
+/*
* efence.h
*/
@@ -7,11 +7,7 @@
#include <gst/gst.h>
-#ifdef __cplusplus
-extern "C"
-{
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
/* #define's don't like whitespacey bits */
#define GST_TYPE_EFENCE \
(gst_gst_efence_get_type())
@@ -23,28 +19,24 @@ extern "C"
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_EFENCE))
#define GST_IS_EFENCE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_EFENCE))
+typedef struct _GstEFence GstEFence;
+typedef struct _GstEFenceClass GstEFenceClass;
- typedef struct _GstEFence GstEFence;
- typedef struct _GstEFenceClass GstEFenceClass;
-
- struct _GstEFence
- {
- GstElement element;
-
- GstPad *sinkpad, *srcpad;
+struct _GstEFence
+{
+ GstElement element;
- gboolean fence_top;
- };
+ GstPad *sinkpad, *srcpad;
- struct _GstEFenceClass
- {
- GstElementClass parent_class;
- };
+ gboolean fence_top;
+};
- GType gst_gst_efence_get_type (void);
+struct _GstEFenceClass
+{
+ GstElementClass parent_class;
+};
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+GType gst_gst_efence_get_type (void);
-#endif /* __GST_EFENCE_H__ */
+G_END_DECLS
+#endif /* __GST_EFENCE_H__ */
More information about the Gstreamer-commits
mailing list