From 6467bbcfeded5a255c02542248739d4ab28833b5 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 18 Jul 2003 20:51:02 +0000 Subject: [PATCH] Add G_BEGIN_DECLS/G_END_DECLS to exported headers Original commit message from CVS: Add G_BEGIN_DECLS/G_END_DECLS to exported headers --- gst/gstcompat.h | 4 ++++ gst/gstcpu.h | 4 ++++ gst/gstfilter.h | 9 +++++++++ gst/gstlog.h | 4 ++++ gst/gstmacros.h | 3 +++ 5 files changed, 24 insertions(+) diff --git a/gst/gstcompat.h b/gst/gstcompat.h index cae8de02fe..5ec3458468 100644 --- a/gst/gstcompat.h +++ b/gst/gstcompat.h @@ -25,6 +25,8 @@ #ifndef __GSTCOMPAT_H__ #define __GSTCOMPAT_H__ +G_BEGIN_DECLS + #ifndef GST_DISABLE_DEPRECATED /* 0.5.2 changes */ @@ -69,4 +71,6 @@ typedef GstPadLinkFunction GstPadConnectFunction; */ #endif /* not GST_DISABLE_DEPRECATED */ +G_END_DECLS + #endif /* __GSTCOMPAT_H__ */ diff --git a/gst/gstcpu.h b/gst/gstcpu.h index 627b91c1b4..85c3384879 100644 --- a/gst/gstcpu.h +++ b/gst/gstcpu.h @@ -24,6 +24,8 @@ #ifndef __GST_CPU_H__ #define __GST_CPU_H__ +G_BEGIN_DECLS + typedef enum { GST_CPU_FLAG_MMX = (1<<0), GST_CPU_FLAG_SSE = (1<<1), @@ -35,4 +37,6 @@ void _gst_cpu_initialize (gboolean useopt); GstCPUFlags gst_cpu_get_flags (void); +G_END_DECLS + #endif /* __GST_CPU_H__ */ diff --git a/gst/gstfilter.h b/gst/gstfilter.h index 3222d1a7b0..6ecb6a113f 100644 --- a/gst/gstfilter.h +++ b/gst/gstfilter.h @@ -17,8 +17,17 @@ * Boston, MA 02111-1307, USA. */ +#ifndef __GST_FILTER_H__ +#define __GST_FILTER_H__ + #include +G_BEGIN_DECLS + typedef gboolean (*GstFilterFunc) (gpointer obj, gpointer user_data); GList* gst_filter_run (const GList *list, GstFilterFunc func, gboolean first, gpointer user_data); + +G_END_DECLS + +#endif /* __GST_FILTER_H_ */ diff --git a/gst/gstlog.h b/gst/gstlog.h index fc5b4747de..10a6dec96d 100644 --- a/gst/gstlog.h +++ b/gst/gstlog.h @@ -23,6 +23,8 @@ #ifndef __GST_LOG_H__ #define __GST_LOG_H__ +G_BEGIN_DECLS + extern const char *g_log_domain_gstreamer; #ifdef G_HAVE_ISO_VARARGS @@ -46,4 +48,6 @@ extern const char *g_log_domain_gstreamer; #endif #endif +G_END_DECLS + #endif /* __GST_LOG_H__ */ diff --git a/gst/gstmacros.h b/gst/gstmacros.h index d8037dd345..537d90ffc4 100644 --- a/gst/gstmacros.h +++ b/gst/gstmacros.h @@ -20,6 +20,8 @@ #ifndef __GST_MACROS_H__ #define __GST_MACROS_H__ +G_BEGIN_DECLS + #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) # define GST_GNUC_CONSTRUCTOR \ __attribute__ ((constructor)) @@ -35,6 +37,7 @@ # undef GST_CAN_INLINE #endif +G_END_DECLS #endif /* __GST_MACROS_H__ */