use G_{BEGIN,END}_DECLS
authorDavid I. Lehn <dlehn@users.sourceforge.net>
Wed, 30 Oct 2002 09:17:34 +0000 (09:17 +0000)
committerDavid I. Lehn <dlehn@users.sourceforge.net>
Wed, 30 Oct 2002 09:17:34 +0000 (09:17 +0000)
Original commit message from CVS:
use G_{BEGIN,END}_DECLS

43 files changed:
examples/plugins/example.h
gst/autoplug/gstspider.h
gst/autoplug/gstspideridentity.h
gst/autoplug/gststaticautoplug.h
gst/autoplug/gststaticautoplugrender.h
gst/elements/gstaggregator.h
gst/elements/gstfakesink.h
gst/elements/gstfakesrc.h
gst/elements/gstfdsink.h
gst/elements/gstfdsrc.h
gst/elements/gstfilesink.h
gst/elements/gstfilesrc.h
gst/elements/gstidentity.h
gst/elements/gstmd5sink.h
gst/elements/gstmultidisksrc.h
gst/elements/gstmultifilesrc.h
gst/elements/gstpipefilter.h
gst/elements/gststatistics.h
gst/elements/gsttee.h
gst/registries/gstxmlregistry.h
libs/gst/control/control.h
libs/gst/control/dparam.h
libs/gst/control/dparam_smooth.h
libs/gst/control/dparamcommon.h
libs/gst/control/dparammanager.h
libs/gst/control/dplinearinterp.h
libs/gst/control/unitconvert.h
plugins/elements/gstaggregator.h
plugins/elements/gstfakesink.h
plugins/elements/gstfakesrc.h
plugins/elements/gstfdsink.h
plugins/elements/gstfdsrc.h
plugins/elements/gstfilesink.h
plugins/elements/gstfilesrc.h
plugins/elements/gstidentity.h
plugins/elements/gstmd5sink.h
plugins/elements/gstmultidisksrc.h
plugins/elements/gstmultifilesrc.h
plugins/elements/gstpipefilter.h
plugins/elements/gststatistics.h
plugins/elements/gsttee.h
tests/bufspeed/gstbuffer.h
tests/old/examples/plugins/example.h

index b397e1e..cbb7b28 100644 (file)
 
 #include <gst/gst.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 /* This is the definition of the element's object structure. */
 typedef struct _GstExample GstExample;
@@ -85,10 +82,6 @@ struct _GstExampleClass {
  */
 GType gst_example_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_EXAMPLE_H__ */
index b214a10..c255a66 100644 (file)
@@ -26,9 +26,7 @@
 #include <gst/gst.h>
 #include "gstspideridentity.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
        
 extern GstElementDetails gst_spider_details;
 
@@ -90,9 +88,6 @@ GType                 gst_spider_get_type             (void);
 void           gst_spider_identity_plug        (GstSpiderIdentity *ident);
 void           gst_spider_identity_unplug      (GstSpiderIdentity *ident);
 
-       
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_SPIDER_H__ */
index 3c5139b..ebe7a7b 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_spider_identity_details;
 
@@ -81,10 +77,6 @@ GstSpiderIdentity*           gst_spider_identity_new_sink                    (gchar *name);
 GstSpiderIdentity*             gst_spider_identity_new_src                     (gchar *name);
 GstPad*                                gst_spider_identity_request_new_pad             (GstElement *element, GstPadTemplate *templ, const gchar *name);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_SPIDER_IDENTITY_H__ */
index 11511d4..92fc3a1 100644 (file)
@@ -26,9 +26,7 @@
 
 #include <gst/gstautoplug.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 #define GST_TYPE_STATIC_AUTOPLUG \
   (gst_static_autoplug_get_type())
@@ -55,10 +53,7 @@ struct _GstStaticAutoplugClass {
 
 GType                  gst_static_autoplug_get_type            (void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_STATIC_AUTOPLUG_H__ */
 
index 6af32d4..bf44b13 100644 (file)
@@ -26,9 +26,7 @@
 
 #include <gst/gstautoplug.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 #define GST_TYPE_STATIC_AUTOPLUG_RENDER \
   (gst_static_autoplug_render_get_type())
@@ -55,10 +53,7 @@ struct _GstStaticAutoplugRenderClass {
 
 GType                  gst_static_autoplug_render_get_type             (void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_STATIC_AUTOPLUG_H__ */
 
index b460eab..4dff593 100644 (file)
 
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 extern GstElementDetails gst_aggregator_details;
 
@@ -75,9 +72,6 @@ GType         gst_aggregator_get_type (void);
 
 gboolean       gst_aggregator_factory_init     (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_AGGREGATOR_H__ */
index 6c38ae3..94a9b2a 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_fakesink_details;
 
@@ -73,9 +69,6 @@ GType gst_fakesink_get_type(void);
 
 gboolean gst_fakesink_factory_init (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FAKESINK_H__ */
index d802676..61c6484 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_fakesrc_details;
 
@@ -125,9 +121,6 @@ GType gst_fakesrc_get_type(void);
 
 gboolean gst_fakesrc_factory_init (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FAKESRC_H__ */
index 8cf98c2..2b4f385 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_fdsink_details;
 
@@ -65,10 +61,6 @@ struct _GstFdSinkClass {
 
 GType gst_fdsink_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FDSINK_H__ */
index 0fa2155..b4abdfd 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_fdsrc_details;
 
@@ -72,9 +68,6 @@ struct _GstFdSrcClass {
 
 GType gst_fdsrc_get_type(void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FDSRC_H__ */
index 716da61..76ffb81 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_filesink_details;
 
@@ -78,10 +74,6 @@ struct _GstFileSinkClass {
 
 GType gst_filesink_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FILESINK_H__ */
index 8a9420e..f40a1e0 100644 (file)
 #include <gst/gst.h>
 #include <sys/types.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 #define GST_TYPE_FILESRC \
   (gst_filesrc_get_type())
@@ -83,9 +80,6 @@ struct _GstFileSrcClass {
 
 GType gst_filesrc_get_type(void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FILESRC_H__ */
index a1cd84b..6987404 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_identity_details;
 
@@ -76,10 +72,6 @@ struct _GstIdentityClass {
 
 GType gst_identity_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_IDENTITY_H__ */
index 7d3377c..a78976d 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_md5sink_details;
 
@@ -78,9 +74,6 @@ GType                         gst_md5sink_get_type            (void);
 
 gboolean                       gst_md5sink_factory_init        (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_MD5SINK_H__ */
index ba235e8..3b1a9f4 100644 (file)
@@ -26,9 +26,7 @@
 
 #include <gst/gst.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 GstElementDetails gst_multidisksrc_details;
 
@@ -77,8 +75,6 @@ struct _GstMultiDiskSrcClass {
 
 GType gst_multidisksrc_get_type(void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_MULTIDISKSRC_H__ */
index ba235e8..3b1a9f4 100644 (file)
@@ -26,9 +26,7 @@
 
 #include <gst/gst.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 GstElementDetails gst_multidisksrc_details;
 
@@ -77,8 +75,6 @@ struct _GstMultiDiskSrcClass {
 
 GType gst_multidisksrc_get_type(void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_MULTIDISKSRC_H__ */
index 221a914..6d5ea4c 100644 (file)
 
 #include "config.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_pipefilter_details;
 
@@ -82,10 +79,6 @@ struct _GstPipefilterClass {
 
 GType gst_pipefilter_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_PIPEFILTER_H__ */
index 8a4d9fd..ae0242f 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_statistics_details;
 
@@ -86,10 +82,6 @@ struct _GstStatisticsClass {
 
 GType gst_statistics_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_STATISTICS_H__ */
index 4326f15..68b541d 100644 (file)
 
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 extern GstElementDetails gst_tee_details;
 
@@ -64,9 +61,6 @@ GType         gst_tee_get_type        (void);
 
 gboolean       gst_tee_factory_init    (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_TEE_H__ */
index 9d28dcc..714d931 100644 (file)
@@ -24,9 +24,7 @@
 #ifndef __GST_XML_REGISTRY_H__
 #define __GST_XML_REGISTRY_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 #include <gst/gstregistry.h>
 
@@ -126,10 +124,7 @@ GType              gst_xml_registry_get_type               (void);
 
 GstRegistry*   gst_xml_registry_new                    (const gchar *name, const gchar *location);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_XML_REGISTRY_H__ */
 
index 5d82056..0489182 100644 (file)
 #ifndef __GST_CONTROL_H__
 #define __GST_CONTROL_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
 #include <gst/control/dparammanager.h>
 #include <gst/control/dparam.h>
 #include <gst/control/dparam_smooth.h>
 #include <gst/control/dplinearinterp.h>
 #include <gst/control/unitconvert.h>
 
+G_BEGIN_DECLS
+
 void gst_control_init (int *argc, char **argv[]);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_CONTROL_H__ */
index 7ea2f91..680c30f 100644 (file)
@@ -26,9 +26,7 @@
 #include <gst/gstprops.h>
 #include "dparamcommon.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 #define GST_TYPE_DPARAM                        (gst_dparam_get_type ())
 #define GST_DPARAM(obj)                        (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_DPARAM,GstDParam))
@@ -102,8 +100,6 @@ void gst_dparam_attach (GstDParam *dparam, GstDParamManager *manager, GParamSpec
 void gst_dparam_detach (GstDParam *dparam);
 void gst_dparam_do_update_default (GstDParam *dparam, gint64 timestamp, GValue *value, GstDParamUpdateInfo update_info);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_DPARAM_H__ */
index bcfdbb7..967e956 100644 (file)
@@ -24,9 +24,7 @@
 
 #include "dparam.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 #define GST_TYPE_DPSMOOTH                      (gst_dpsmooth_get_type ())
 #define GST_DPSMOOTH(obj)                      (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_DPSMOOTH,GstDParamSmooth))
@@ -63,8 +61,6 @@ struct _GstDParamSmoothClass {
 
 GstDParam* gst_dpsmooth_new (GType type);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_DPSMOOTH_H__ */
index d51c4a7..05e1e9f 100644 (file)
 #ifndef __GST_DPCOMMON_H__
 #define __GST_DPCOMMON_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 typedef struct _GstDParam GstDParam;
 typedef struct _GstDParamManager GstDParamManager;
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_DPCOMMON_H__ */
index 41f0349..ec11631 100644 (file)
@@ -28,9 +28,7 @@
 #include <gst/control/dparam.h>
 #include <gst/control/unitconvert.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 #define GST_TYPE_DPMAN                 (gst_dpman_get_type ())
 #define GST_DPMAN(obj)                 (G_TYPE_CHECK_INSTANCE_CAST     ((obj), GST_TYPE_DPMAN,GstDParamManager))
@@ -180,8 +178,6 @@ void gst_dpman_register_mode (GstDParamManagerClass *klass,
                            GstDPMModeSetupFunction setupfunc,
                            GstDPMModeTeardownFunction teardownfunc);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_DPMAN_H__ */
index ae6d2f9..3228912 100644 (file)
 #include <gst/gstobject.h>
 #include "dparam.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 #define GST_TYPE_DP_LININT                     (gst_dp_linint_get_type ())
 #define GST_DP_LININT(obj)                     (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_DP_LININT,GstDParamLinInterp))
@@ -54,8 +51,6 @@ struct _GstDParamLinInterpClass {
 GType gst_dp_linint_get_type (void);
 GstDParam* gst_dp_linint_new (GType type);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_DP_LININT_H__ */
index f116eff..c083619 100644 (file)
@@ -24,9 +24,7 @@
 
 #include <gst/gstobject.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 #define GST_TYPE_UNIT_CONVERT                  (gst_unitconv_get_type ())
 #define GST_UNIT_CONVERT(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_UNIT_CONVERT,GstUnitConvert))
@@ -74,8 +72,6 @@ gboolean gst_unitconv_register_unit(const gchar *domain_name,
 gboolean gst_unitconv_register_convert_func(gchar *from_unit_named, gchar *to_unit_named, GstUnitConvertFunc convert_func);
 gboolean gst_unitconv_register_convert_property(gchar *unit_name, GParamSpec *convert_prop_spec);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_UNITCONVERT_H__ */
index b460eab..4dff593 100644 (file)
 
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 extern GstElementDetails gst_aggregator_details;
 
@@ -75,9 +72,6 @@ GType         gst_aggregator_get_type (void);
 
 gboolean       gst_aggregator_factory_init     (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_AGGREGATOR_H__ */
index 6c38ae3..94a9b2a 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_fakesink_details;
 
@@ -73,9 +69,6 @@ GType gst_fakesink_get_type(void);
 
 gboolean gst_fakesink_factory_init (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FAKESINK_H__ */
index d802676..61c6484 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_fakesrc_details;
 
@@ -125,9 +121,6 @@ GType gst_fakesrc_get_type(void);
 
 gboolean gst_fakesrc_factory_init (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FAKESRC_H__ */
index 8cf98c2..2b4f385 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_fdsink_details;
 
@@ -65,10 +61,6 @@ struct _GstFdSinkClass {
 
 GType gst_fdsink_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FDSINK_H__ */
index 0fa2155..b4abdfd 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_fdsrc_details;
 
@@ -72,9 +68,6 @@ struct _GstFdSrcClass {
 
 GType gst_fdsrc_get_type(void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FDSRC_H__ */
index 716da61..76ffb81 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_filesink_details;
 
@@ -78,10 +74,6 @@ struct _GstFileSinkClass {
 
 GType gst_filesink_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FILESINK_H__ */
index 8a9420e..f40a1e0 100644 (file)
 #include <gst/gst.h>
 #include <sys/types.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 #define GST_TYPE_FILESRC \
   (gst_filesrc_get_type())
@@ -83,9 +80,6 @@ struct _GstFileSrcClass {
 
 GType gst_filesrc_get_type(void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_FILESRC_H__ */
index a1cd84b..6987404 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_identity_details;
 
@@ -76,10 +72,6 @@ struct _GstIdentityClass {
 
 GType gst_identity_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_IDENTITY_H__ */
index 7d3377c..a78976d 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_md5sink_details;
 
@@ -78,9 +74,6 @@ GType                         gst_md5sink_get_type            (void);
 
 gboolean                       gst_md5sink_factory_init        (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_MD5SINK_H__ */
index ba235e8..3b1a9f4 100644 (file)
@@ -26,9 +26,7 @@
 
 #include <gst/gst.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 GstElementDetails gst_multidisksrc_details;
 
@@ -77,8 +75,6 @@ struct _GstMultiDiskSrcClass {
 
 GType gst_multidisksrc_get_type(void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_MULTIDISKSRC_H__ */
index ba235e8..3b1a9f4 100644 (file)
@@ -26,9 +26,7 @@
 
 #include <gst/gst.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 GstElementDetails gst_multidisksrc_details;
 
@@ -77,8 +75,6 @@ struct _GstMultiDiskSrcClass {
 
 GType gst_multidisksrc_get_type(void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* __GST_MULTIDISKSRC_H__ */
index 221a914..6d5ea4c 100644 (file)
 
 #include "config.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_pipefilter_details;
 
@@ -82,10 +79,6 @@ struct _GstPipefilterClass {
 
 GType gst_pipefilter_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_PIPEFILTER_H__ */
index 8a4d9fd..ae0242f 100644 (file)
 #include <config.h>
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 GstElementDetails gst_statistics_details;
 
@@ -86,10 +82,6 @@ struct _GstStatisticsClass {
 
 GType gst_statistics_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_STATISTICS_H__ */
index 4326f15..68b541d 100644 (file)
 
 #include <gst/gst.h>
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 extern GstElementDetails gst_tee_details;
 
@@ -64,9 +61,6 @@ GType         gst_tee_get_type        (void);
 
 gboolean       gst_tee_factory_init    (GstElementFactory *factory);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_TEE_H__ */
index cb1791f..5a76695 100644 (file)
 #include <asm/atomic.h>
 #endif
 
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 extern GType _gst_buffer_type;
 
@@ -162,9 +159,6 @@ GstBuffer*  gst_buffer_append               (GstBuffer *buf, GstBuffer *buf2);
 
 gboolean       gst_buffer_is_span_fast         (GstBuffer *buf1, GstBuffer *buf2);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_BUFFER_H__ */
index b397e1e..cbb7b28 100644 (file)
 
 #include <gst/gst.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
 
 /* This is the definition of the element's object structure. */
 typedef struct _GstExample GstExample;
@@ -85,10 +82,6 @@ struct _GstExampleClass {
  */
 GType gst_example_get_type(void);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GST_EXAMPLE_H__ */