Remove all config.h includes from header files, add it to each source file and remove...
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Fri, 7 Nov 2003 12:47:02 +0000 (12:47 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Fri, 7 Nov 2003 12:47:02 +0000 (12:47 +0000)
Original commit message from CVS:
Remove all config.h includes from header files, add it to each source file and remove duplicate config.h includes from several source files

47 files changed:
ext/cdparanoia/gstcdparanoia.h
ext/pango/gsttimeoverlay.c
ext/pango/gsttimeoverlay.h
ext/vorbis/vorbis.c
ext/vorbis/vorbisenc.h
gst-libs/ext/mplex/buffer.cc
gst-libs/ext/mplex/padstrm.cc
gst-libs/ext/mplex/stillsstream.cc
gst-libs/gst/audio/audioclock.c
gst-libs/gst/floatcast/floatcast.h
gst-libs/gst/gconf/gconf.c
gst-libs/gst/idct/dct.h
gst-libs/gst/idct/fastintidct.c
gst-libs/gst/idct/floatidct.c
gst-libs/gst/idct/ieeetest.c
gst-libs/gst/idct/intidct.c
gst-libs/gst/idct/mmx32idct.c
gst-libs/gst/media-info/media-info-priv.c
gst-libs/gst/media-info/media-info.c
gst-libs/gst/play/play.old.c
gst-libs/gst/resample/dtof.c
gst-libs/gst/resample/functable.c
gst-libs/gst/resample/private.h
gst-libs/gst/resample/resample.c
gst-libs/gst/riff/riffencode.c
gst-libs/gst/riff/riffparse.c
gst-libs/gst/riff/riffutil.c
gst-libs/gst/video/gstvideofilter.c
gst-libs/gst/video/gstvideofilter.h
gst/audioscale/gstaudioscale.h
gst/sine/gstsinesrc.h
gst/tcp/gsttcp.c
gst/tcp/gsttcpplugin.c
gst/tcp/gsttcpsink.h
gst/tcp/gsttcpsrc.h
gst/videoscale/gstvideoscale.h
gst/videoscale/videoscale.c
gst/videoscale/videoscale_x86.c
gst/videotestsrc/gstvideotestsrc.h
gst/videotestsrc/videotestsrc.c
gst/volume/gstvolume.h
sys/v4l/gstv4l.c
sys/v4l/gstv4lmjpegsink.c
sys/v4l/gstv4lmjpegsrc.c
sys/v4l/gstv4lsrc.c
tests/old/testsuite/alsa/sinesrc.h
testsuite/alsa/sinesrc.h

index ad3b343..7b05b3b 100644 (file)
@@ -22,7 +22,6 @@
 #define __CDPARANOIA_H__
 
 
-#include <config.h>
 #include <glib.h>
 #include <gst/gst.h>
 
index dba7561..6e1b748 100644 (file)
@@ -27,6 +27,9 @@
  * Copyright (C) 2001 Sun Microsystems
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 /*#define DEBUG_ENABLED */
 #include <gsttimeoverlay.h>
index bc33715..505f8f0 100644 (file)
@@ -22,7 +22,6 @@
 #define __GST_TIMEOVERLAY_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 #include <pango/pango.h>
 
index 238c2a2..493c03e 100644 (file)
@@ -17,6 +17,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <vorbisenc.h>
 
index 7c004c5..c0eb35c 100644 (file)
@@ -22,7 +22,6 @@
 #define __VORBISENC_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 
 #include <vorbis/codec.h>
index 2b29180..24f5fd2 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "buffer.hh"
 #include <stdlib.h>
 
index 95e32db..b60c664 100644 (file)
  */
 \f
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "padstrm.hh"
 
 
index 1b6d10b..6f9806f 100644 (file)
  */
 \f
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <format_codes.h>
 
 #include "stillsstream.hh"
index 342009f..feb06d5 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "audioclock.h"
 
 static void            gst_audio_clock_class_init      (GstAudioClockClass *klass);
index 3a232b7..0d5809f 100644 (file)
@@ -21,8 +21,6 @@
 #ifndef __FLOATCAST_H__
 #define __FLOATCAST_H__
 
-#include <config.h>
-
 #if (HAVE_LRINT && HAVE_LRINTF)
 
        /*      These defines enable functionality introduced with the 1999 ISO C
index 8a1c582..541a086 100644 (file)
  * this library handles interaction with GConf
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gconf.h"
 
 #define GST_GCONF_DIR "/system/gstreamer"
index fcb7de3..efb3ddb 100644 (file)
@@ -1,7 +1,5 @@
 /* define DCT types */
 
-#include "config.h"
-
 /*
  * DCTSIZE      underlying (1d) transform size
  * DCTSIZE2     DCTSIZE squared
index 3c9e9bb..2742667 100644 (file)
 /* compliance                           sE,  2.1.94       */
 /**********************************************************/
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 /* this code assumes >> to be a two's-complement arithmetic */
 /* right shift: (-2)>>1 == -1 , (-3)>>1 == -2               */
 
index 520c391..b215bd7 100644 (file)
 /* Here we use math.h to generate constants.  Compiler results may
    vary a little */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <math.h>
 
 #ifndef PI
index c3c6621..f5b270e 100644 (file)
@@ -9,6 +9,10 @@
  * Released to public domain 11/22/93.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
index 119b7fd..e08e6ad 100644 (file)
  * scaled fixed-point arithmetic, with a minimal number of shifts.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "dct.h"
 
 /* We assume that right shift corresponds to signed division by 2 with
index 0090d8a..3b64097 100644 (file)
 /*\r
 mword typedef qword\r
 qword ptr equ mword ptr */\r
-\r
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <mmx.h>\r
 \r
 #define BITS_INV_ACC   4       /*; 4 or 5 for IEEE\r */
index b923713..7798159 100644 (file)
 
 /* media-info-priv.c - handling of internal stuff */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <gst/gst.h>
 #include <string.h>
 #include "media-info.h"
index b559463..92957e1 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <gst/gst.h>
 #include <string.h>
 #include "media-info.h"
index 486262e..6496366 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "play.h"
 
 enum
index c392e67..7650453 100644 (file)
@@ -17,6 +17,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <string.h>
 #include <math.h>
index 94dbec1..75b81f3 100644 (file)
@@ -17,6 +17,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <string.h>
 #include <math.h>
index fb8ba87..476e611 100644 (file)
@@ -22,7 +22,6 @@
 #define __PRIVATE_H__
 
 #include "resample.h"
-#include "config.h"
 
 void resample_nearest_s16(resample_t *r);
 void resample_bilinear_s16(resample_t *r);
index b298e86..52a80e6 100644 (file)
@@ -17,6 +17,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <string.h>
 #include <math.h>
index a22b184..630725d 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <string.h>
 
 /*#define DEBUG_ENABLED */
index 72a7820..72c9e4b 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <string.h>
 
 /*#define DEBUG_ENABLED */
index 612bdba..d33aefe 100644 (file)
@@ -17,6 +17,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <riff.h>
 
index a744688..3eb92f9 100644 (file)
@@ -18,6 +18,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 /*#define DEBUG_ENABLED */
 #include <gstvideofilter.h>
index 7867835..fa70832 100644 (file)
@@ -22,7 +22,6 @@
 #define __GST_VIDEOFILTER_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 
 
index ed930da..90cfd1d 100644 (file)
@@ -22,7 +22,6 @@
 #define __AUDIOSCALE_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 
 #include <gst/resample/resample.h>
index 8f811fc..c5c970f 100644 (file)
@@ -25,7 +25,6 @@
 #define __GST_SINESRC_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 
 #ifdef __cplusplus
index 60e7d79..b22976a 100644 (file)
@@ -17,6 +17,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gsttcpsrc.h"
 #include "gsttcpsink.h"
index 60e7d79..b22976a 100644 (file)
@@ -17,6 +17,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "gsttcpsrc.h"
 #include "gsttcpsink.h"
index 0dc41fa..01b8bba 100644 (file)
@@ -22,7 +22,6 @@
 #define __GST_TCPSINK_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 
 #ifdef __cplusplus
index c87b771..3506788 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef __GST_TCPSRC_H__
 #define __GST_TCPSRC_H__
 
-#include <config.h>
 #include <gst/gst.h>
 
 #ifdef __cplusplus
index 1bfd5ac..fd59b46 100644 (file)
@@ -22,7 +22,6 @@
 #define __GST_VIDEOSCALE_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 
 
index cfb6218..82103f3 100644 (file)
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+
 #include <gst/gst.h>
 #include <stdlib.h>
 #include <math.h>
 #include <videoscale.h>
 #include <string.h>
 
-#include "config.h"
 #include "gstvideoscale.h"
 #undef HAVE_CPU_I386
 #ifdef HAVE_CPU_I386
index 5385ddf..4305000 100644 (file)
 
 /*#define DEBUG_ENABLED */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gstvideoscale.h"
 
 /* scalers */
index 365932a..1e14b63 100644 (file)
@@ -23,7 +23,6 @@
 #define __GST_VIDEOTESTSRC_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 
 G_BEGIN_DECLS
index 0005f4e..1ead6e7 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 /* non-GST-specific stuff */
 
 /*#define DEBUG_ENABLED */
index 769d8ad..ed0468f 100644 (file)
@@ -23,7 +23,6 @@
 #define __GST_VOLUME_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 /* #include <gst/meta/audioraw.h> */
 
index 014f497..3f8d2bc 100644 (file)
@@ -36,13 +36,14 @@ plugin_init (GstPlugin *plugin)
   if (!gst_library_load ("xwindowlistener"))
     return FALSE;
 
-  if (!gst_element_register (plugin, "v4lelement", GST_RANK_NONE, GST_TYPE_V4LELEMENT))
-    return FALSE;
-  if (!gst_element_register (plugin, "v4lsrc", GST_RANK_NONE, GST_TYPE_V4LSRC))
-    return FALSE;
-  if (!gst_element_register (plugin, "v4lmjpegsrc", GST_RANK_NONE, GST_TYPE_V4LMJPEGSRC))
-    return FALSE;
-  if (!gst_element_register (plugin, "v4lmjpegsink", GST_RANK_NONE, GST_TYPE_V4LMJPEGSINK))
+  if (!gst_element_register (plugin, "v4lelement",
+                            GST_RANK_NONE, GST_TYPE_V4LELEMENT) ||
+      !gst_element_register (plugin, "v4lsrc",
+                            GST_RANK_NONE, GST_TYPE_V4LSRC) ||
+      !gst_element_register (plugin, "v4lmjpegsrc",
+                            GST_RANK_NONE, GST_TYPE_V4LMJPEGSRC) ||
+      !gst_element_register (plugin, "v4lmjpegsink",
+                            GST_RANK_NONE, GST_TYPE_V4LMJPEGSINK))
     return FALSE;
 
   return TRUE;
index 4f237bd..5545f65 100644 (file)
@@ -18,9 +18,6 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
 #include <config.h>
 #endif
 
index 2766bc3..daf73a9 100644 (file)
@@ -18,9 +18,6 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
 #include <config.h>
 #endif
 
index d425f61..d145d87 100644 (file)
@@ -18,9 +18,6 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
 #include <config.h>
 #endif
 
index ab35237..a5220a2 100644 (file)
@@ -22,7 +22,6 @@
 #define __SINESRC_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 
 #ifdef __cplusplus
index ab35237..a5220a2 100644 (file)
@@ -22,7 +22,6 @@
 #define __SINESRC_H__
 
 
-#include <config.h>
 #include <gst/gst.h>
 
 #ifdef __cplusplus