Commit 31efa367 authored by David I. Lehn's avatar David I. Lehn
Browse files

use G_{BEGIN,END}_DECLS

Original commit message from CVS:
use G_{BEGIN,END}_DECLS
parent 0933f2df
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
......@@ -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__ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment