+2005-02-09 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst-libs/gst/audio/multichannel.h:
+ * gst-libs/gst/gconf/gconf.h:
+ * gst-libs/gst/idct/idct.h:
+ * gst-libs/gst/media-info/media-info-priv.h:
+ * gst-libs/gst/play/play.h:
+ * gst-libs/gst/resample/private.h:
+ * gst-libs/gst/resample/resample.h:
+ * gst-libs/gst/riff/riff-ids.h:
+ * gst-libs/gst/video/video.h:
+ * gst-libs/gst/video/videosink.h:
+ Add G_BEGIN_DECLS and G_END_DECLS around headers where
+ missing, so that they work when included from C++ code.
+
2005-02-09 David Schleef <ds@schleef.org>
* testsuite/gst-lint: Check for non-statically scoped
#include <gst/audio/audio.h>
#include <gst/audio/multichannel-enumtypes.h>
+G_BEGIN_DECLS
+
typedef enum {
GST_AUDIO_CHANNEL_POSITION_INVALID = -1,
GstAudioChannelPosition *
gst_audio_fixate_channel_positions (GstStructure *str);
+G_END_DECLS
+
#endif /* __GST_AUDIO_MULTICHANNEL_H__ */
#include <gst/gst.h>
#include <gconf/gconf-client.h>
+G_BEGIN_DECLS
+
gchar * gst_gconf_get_string (const gchar *key);
void gst_gconf_set_string (const gchar *key,
const gchar *value);
GstElement * gst_gconf_get_default_audio_src (void);
GstElement * gst_gconf_get_default_visualization_element (void);
+G_END_DECLS
+
#endif /* GST_GCONF_H */
#include <glib.h>
+G_BEGIN_DECLS
+
typedef enum {
GST_IDCT_DEFAULT,
GST_IDCT_INT,
#define gst_idct_convert_sparse(idct, blocks) (idct)->convert_sparse((blocks))
void gst_idct_destroy(GstIDCT *idct);
+G_END_DECLS
+
#endif /* __GST_IDCT_H__ */
#include <gst/gst.h>
#include <glib/gprintf.h>
+G_BEGIN_DECLS
+
/* debug */
GST_DEBUG_CATEGORY_EXTERN (gst_media_info_debug);
#define GST_CAT_DEFAULT gst_media_info_debug
gboolean gmip_find_track_format_post (GstMediaInfoPriv *priv);
gboolean gmip_find_track_format (GstMediaInfoPriv *priv);
+G_END_DECLS
+
#endif /* __GST_MEDIA_INFO_PRIV_H__ */
#include <gst/xoverlay/xoverlay.h>
#include <gst/play/play-enumtypes.h>
+G_BEGIN_DECLS
+
/* GError stuff */
#define GST_PLAY_ERROR gst_play_error_quark ()
gdouble gst_play_get_framerate (GstPlay *play);
+G_END_DECLS
+
#endif /* __GST_PLAY_H__ */
#include "resample.h"
+G_BEGIN_DECLS
+
void gst_resample_nearest_s16(gst_resample_t *r);
void gst_resample_bilinear_s16(gst_resample_t *r);
void gst_resample_sinc_s16(gst_resample_t *r);
void conv_double_float_dstr(double *dest, float *src, int n, int dstr);
void conv_float_double_sstr(float *dest, double *src, int n, int sstr);
+G_END_DECLS
+
#endif /* __PRIVATE_H__ */
#ifndef __GST_RESAMPLE_H__
#define __GST_RESAMPLE_H__
+#include <glib.h>
+
+G_BEGIN_DECLS
+
typedef enum {
GST_RESAMPLE_NEAREST = 0,
GST_RESAMPLE_BILINEAR,
void gst_resample_scale(gst_resample_t *r, void *i_buf, unsigned int size);
+G_END_DECLS
+
#endif /* __GST_RESAMPLE_H__ */
#include <gst/gst.h>
+G_BEGIN_DECLS
+
/* RIFF types */
#define GST_RIFF_RIFF_WAVE GST_MAKE_FOURCC ('W','A','V','E')
#define GST_RIFF_RIFF_AVI GST_MAKE_FOURCC ('A','V','I',' ')
guint32 totalframes;
} gst_riff_dmlh;
+G_END_DECLS
+
#endif /* __GST_RIFF_IDS_H__ */
#include <gst/gst.h>
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
#define GST_TYPE_VIDEOSINK (gst_videosink_get_type())
#define GST_VIDEOSINK(obj) \
GType gst_videosink_get_type (void);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
#endif /* __GST_VIDEOSINK_H__ */
#include <gst/gst.h>
+G_BEGIN_DECLS
+
#define GST_VIDEO_BYTE1_MASK_32 "0xFF000000"
#define GST_VIDEO_BYTE2_MASK_32 "0x00FF0000"
#define GST_VIDEO_BYTE3_MASK_32 "0x0000FF00"
gint *width,
gint *height);
+G_END_DECLS
+
#endif /* __GST_VIDEO_H__ */
#include <gst/gst.h>
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
#define GST_TYPE_VIDEOSINK (gst_videosink_get_type())
#define GST_VIDEOSINK(obj) \
GType gst_videosink_get_type (void);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
#endif /* __GST_VIDEOSINK_H__ */