use G_{BEGIN,END}_DECLS

Original commit message from CVS:
use G_{BEGIN,END}_DECLS
This commit is contained in:
David I. Lehn 2002-10-30 09:17:34 +00:00
parent 0933f2df88
commit 31efa36756
43 changed files with 87 additions and 350 deletions

View file

@ -23,10 +23,7 @@
#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__ */

View 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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View 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__ */

View 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__ */

View file

@ -26,10 +26,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,10 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View 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__ */

View 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__ */

View file

@ -29,10 +29,7 @@
#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__ */

View file

@ -27,11 +27,7 @@
#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__ */

View file

@ -26,10 +26,7 @@
#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__ */

View 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__ */

View file

@ -22,20 +22,16 @@
#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__ */

View 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__ */

View 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__ */

View file

@ -22,15 +22,11 @@
#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__ */

View 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__ */

View file

@ -26,10 +26,7 @@
#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__ */

View 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__ */

View file

@ -26,10 +26,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,10 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View file

@ -28,11 +28,7 @@
#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__ */

View 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__ */

View 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__ */

View file

@ -29,10 +29,7 @@
#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__ */

View file

@ -27,11 +27,7 @@
#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__ */

View file

@ -26,10 +26,7 @@
#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__ */

View file

@ -45,10 +45,7 @@
#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__ */

View file

@ -23,10 +23,7 @@
#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__ */