]> code.delx.au - pulseaudio/commitdiff
Fixup #include directives according to Coding Style
authorMaarten Bosmans <mkbosmans@gmail.com>
Wed, 9 Mar 2011 09:00:20 +0000 (10:00 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Fri, 11 Mar 2011 11:49:39 +0000 (11:49 +0000)
Use #include "header.h" if functionality of header.h is implemented
and #include <header.h> if functionality of header.h is used.

21 files changed:
src/pulse/browser.c
src/pulse/context.c
src/pulse/ext-device-manager.c
src/pulse/ext-stream-restore.c
src/pulse/introspect.c
src/pulse/scache.c
src/pulse/stream.c
src/pulse/subscribe.c
src/pulsecore/asyncq.c
src/pulsecore/protocol-esound.c
src/pulsecore/resampler.c
src/pulsecore/sample-util.c
src/pulsecore/sconv-s16le.c
src/pulsecore/sconv.c
src/pulsecore/sconv_sse.c
src/pulsecore/svolume_arm.c
src/pulsecore/svolume_c.c
src/pulsecore/svolume_mmx.c
src/pulsecore/svolume_sse.c
src/tests/cpulimit-test.c
src/utils/pax11publish.c

index 4cf5d0c3c0e3acc2c57e89deae8a2dd1f510c007..d05922847807dc6390fbe7b4cfc571d81b9ad458 100644 (file)
@@ -20,7 +20,7 @@
 ***/
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
 #include <string.h>
index 8f632b5d84ebdbc52c19f9a77c5044b86020adee..1480af533a57cc4eca39bff405973ba4bc8f94c6 100644 (file)
 #include <pulse/i18n.h>
 #include <pulse/mainloop.h>
 #include <pulse/timeval.h>
+#include <pulse/fork-detect.h>
+#include <pulse/client-conf.h>
+#ifdef HAVE_X11
+#include <pulse/client-conf-x11.h>
+#endif
 
 #include <pulsecore/core-error.h>
 #include <pulsecore/native-common.h>
 #include <pulsecore/proplist-util.h>
 
 #include "internal.h"
-
-#include "client-conf.h"
-#include "fork-detect.h"
-
-#ifdef HAVE_X11
-#include "client-conf-x11.h"
-#endif
-
 #include "context.h"
 
 void pa_command_extension(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata);
index 57cb57c879848934e9eca6222b8341229e1c1c5e..7b78c24efa8d78484fecd84f26f36b753025a076 100644 (file)
 #include <pulse/context.h>
 #include <pulse/gccmacro.h>
 #include <pulse/xmalloc.h>
+#include <pulse/fork-detect.h>
+#include <pulse/operation.h>
 
 #include <pulsecore/macro.h>
 #include <pulsecore/pstream-util.h>
 
 #include "internal.h"
-#include "operation.h"
-#include "fork-detect.h"
-
 #include "ext-device-manager.h"
 
 enum {
index 10e9fd5dd5915310ea691da6c5e2f05c2ac86d07..7bc1a612926d3a7a19f0d27bc2748cde7d79c20e 100644 (file)
 
 #include <pulse/context.h>
 #include <pulse/gccmacro.h>
+#include <pulse/fork-detect.h>
+#include <pulse/operation.h>
 
 #include <pulsecore/macro.h>
 #include <pulsecore/pstream-util.h>
 
 #include "internal.h"
-#include "operation.h"
-#include "fork-detect.h"
-
 #include "ext-stream-restore.h"
 
 enum {
index 35e091a8a6b0048313251bd8edeae8672705a762..ec27b928ec276d9879211a2a100a7322e07026c6 100644 (file)
 #include <pulse/context.h>
 #include <pulse/gccmacro.h>
 #include <pulse/xmalloc.h>
+#include <pulse/fork-detect.h>
 
 #include <pulsecore/macro.h>
 #include <pulsecore/core-util.h>
 #include <pulsecore/pstream-util.h>
 
 #include "internal.h"
-#include "fork-detect.h"
-
 #include "introspect.h"
 
 /*** Statistics ***/
index cb8d7c59483b71701973e566dd72696bd6a6527e..6ed80a68da6d96ea6345c993fe5014331262ab1a 100644 (file)
 #include <string.h>
 
 #include <pulse/utf8.h>
-#include <pulse/scache.h>
+#include <pulse/fork-detect.h>
 
 #include <pulsecore/pstream-util.h>
 #include <pulsecore/macro.h>
 #include <pulsecore/proplist-util.h>
 
-#include "fork-detect.h"
 #include "internal.h"
+#include "scache.h"
 
 int pa_stream_connect_upload(pa_stream *s, size_t length) {
     pa_tagstruct *t;
index ea468a5c5c03425409a27572c765a2dd18a3b094..ef27fe59018e255f44f288e15f4d8f58ec7c28f3 100644 (file)
 #include <string.h>
 
 #include <pulse/def.h>
-#include <pulse/stream.h>
 #include <pulse/timeval.h>
 #include <pulse/rtclock.h>
 #include <pulse/xmalloc.h>
+#include <pulse/fork-detect.h>
 
 #include <pulsecore/pstream-util.h>
 #include <pulsecore/log.h>
@@ -41,8 +41,8 @@
 #include <pulsecore/core-rtclock.h>
 #include <pulsecore/core-util.h>
 
-#include "fork-detect.h"
 #include "internal.h"
+#include "stream.h"
 
 #define AUTO_TIMING_INTERVAL_START_USEC (10*PA_USEC_PER_MSEC)
 #define AUTO_TIMING_INTERVAL_END_USEC (1500*PA_USEC_PER_MSEC)
index 203bc928e5f7d288a067cefd9fd082a59948b1c7..52d0af35ecb03c4f1122f3d379c5fa72c0bf5ac0 100644 (file)
@@ -31,7 +31,6 @@
 #include <pulsecore/pstream-util.h>
 
 #include "internal.h"
-
 #include "subscribe.h"
 
 void pa_command_subscribe_event(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata) {
index e62d0c162e8028c820c9b8ffcebcc660b1494682..8c2d58a03e77d20089e52388416a3a9dd200562a 100644 (file)
@@ -26,6 +26,8 @@
 #include <unistd.h>
 #include <errno.h>
 
+#include <pulse/xmalloc.h>
+
 #include <pulsecore/atomic.h>
 #include <pulsecore/log.h>
 #include <pulsecore/thread.h>
 #include <pulsecore/core-util.h>
 #include <pulsecore/llist.h>
 #include <pulsecore/flist.h>
-#include <pulse/xmalloc.h>
+#include <pulsecore/fdsem.h>
 
 #include "asyncq.h"
-#include "fdsem.h"
 
 #define ASYNCQ_SIZE 256
 
index 045c5c951e2840149f9be32896f19aaab59f5467..66fd73c87c8185632eedb4247354c80bea7087f6 100644 (file)
@@ -55,8 +55,7 @@
 #include <pulsecore/macro.h>
 #include <pulsecore/thread-mq.h>
 #include <pulsecore/shared.h>
-
-#include "endianmacros.h"
+#include <pulsecore/endianmacros.h>
 
 #include "protocol-esound.h"
 
index e5202212f4738538d248d8d80c9da39c146c68d0..312e75e54f13ca5bebbc394b0ecfe709788a6d1a 100644 (file)
 #include <pulsecore/log.h>
 #include <pulsecore/macro.h>
 #include <pulsecore/strbuf.h>
+#include <pulsecore/remap.h>
 
 #include "ffmpeg/avcodec.h"
 
 #include "resampler.h"
-#include "remap.h"
 
 /* Number of samples of extra space we allow the resamplers to return */
 #define EXTRA_FRAMES 128
index ee1da60aec3301db4fa3bda9eb072c0070ea152f..62b7c46898d85c44a4ef8a79fbb06997c7a0a57c 100644 (file)
@@ -37,9 +37,9 @@
 #include <pulsecore/macro.h>
 #include <pulsecore/g711.h>
 #include <pulsecore/core-util.h>
+#include <pulsecore/endianmacros.h>
 
 #include "sample-util.h"
-#include "endianmacros.h"
 
 #define PA_SILENCE_MAX (PA_PAGE_SIZE*16)
 
index 0fefdf1c265dd23501b198b53da2b75a9891224c..43587f3e4b8b5b67c8abb957a8d7644bd471e907 100644 (file)
@@ -31,8 +31,7 @@
 #include <pulsecore/sconv.h>
 #include <pulsecore/macro.h>
 #include <pulsecore/log.h>
-
-#include "endianmacros.h"
+#include <pulsecore/endianmacros.h>
 
 #include "sconv-s16le.h"
 
index 301f08b4a17e576c47a0e25f05e387ec325abe4f..988d4b333d593a1ad97e5145b54f0c5a701b5072 100644 (file)
 
 #include <pulsecore/g711.h>
 #include <pulsecore/macro.h>
+#include <pulsecore/endianmacros.h>
 
-#include "endianmacros.h"
-#include "sconv-s16le.h"
-#include "sconv-s16be.h"
+#include <pulsecore/sconv-s16le.h>
+#include <pulsecore/sconv-s16be.h>
 
 #include "sconv.h"
 
index ac57f01e5a9612a85b26a626cd13abc022b5e0a5..26daa223546a0ea69d086b18337fd143fa603fa6 100644 (file)
@@ -29,8 +29,7 @@
 
 #include <pulsecore/g711.h>
 #include <pulsecore/macro.h>
-
-#include "endianmacros.h"
+#include <pulsecore/endianmacros.h>
 
 #include "cpu-x86.h"
 #include "sconv.h"
index 7111306050801e5f8f77417bfc57f40bbae639fd..42e8cbf93849b653e2bbcf043f8f0e808787281d 100644 (file)
 #include <pulsecore/macro.h>
 #include <pulsecore/g711.h>
 #include <pulsecore/core-util.h>
+#include <pulsecore/endianmacros.h>
 
 #include "cpu-arm.h"
 
 #include "sample-util.h"
-#include "endianmacros.h"
 
 #if defined (__arm__) && defined (HAVE_ARMV6)
 
index dfe7ccb06ee60658025a11cce106809f242f3817..e55d0d7b201ff49cb844fa3ac8f5cda76a96f4fc 100644 (file)
@@ -28,9 +28,9 @@
 #include <pulsecore/macro.h>
 #include <pulsecore/g711.h>
 #include <pulsecore/core-util.h>
+#include <pulsecore/endianmacros.h>
 
 #include "sample-util.h"
-#include "endianmacros.h"
 
 static void pa_volume_u8_c(uint8_t *samples, int32_t *volumes, unsigned channels, unsigned length) {
     unsigned channel;
index 263790d9e50ae8383df1a90d99f77b6da1d838e9..4f10954364fa00e03d14356b43d2215f60976da0 100644 (file)
 #include <pulsecore/macro.h>
 #include <pulsecore/g711.h>
 #include <pulsecore/core-util.h>
+#include <pulsecore/endianmacros.h>
 
 #include "cpu-x86.h"
 
 #include "sample-util.h"
-#include "endianmacros.h"
 
 #if defined (__i386__) || defined (__amd64__)
 /* in s: 2 int16_t samples
index 8682807212184470ca30cd306cc40cf9bd0a9533..ef07a2436c65a025969f6c998df8c26f55d91109 100644 (file)
 #include <pulsecore/macro.h>
 #include <pulsecore/g711.h>
 #include <pulsecore/core-util.h>
+#include <pulsecore/endianmacros.h>
 
 #include "cpu-x86.h"
 
 #include "sample-util.h"
-#include "endianmacros.h"
 
 #if defined (__i386__) || defined (__amd64__)
 
index 282902a9647e115597b923727f34fdeeb60f5e4b..5b11bc44af07698ef1256cbff299575d4d80976c 100644 (file)
@@ -34,7 +34,7 @@
 #include <pulse/mainloop-signal.h>
 #endif
 
-#include "../daemon/cpulimit.h"
+#include <daemon/cpulimit.h>
 
 /* A simple example for testing the cpulimit subsystem */
 
index a6f058a1e530113875fd8a26d344c305bc0848a8..6600363b1613c27f7b0dc523e74e7dc2903b563a 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <pulse/util.h>
 #include <pulse/i18n.h>
+#include <pulse/client-conf.h>
 
 #include <pulsecore/core-util.h>
 #include <pulsecore/log.h>
@@ -40,7 +41,6 @@
 #include <pulsecore/native-common.h>
 #include <pulsecore/x11prop.h>
 
-#include "../pulse/client-conf.h"
 
 int main(int argc, char *argv[]) {
     const char *dname = NULL, *sink = NULL, *source = NULL, *server = NULL, *cookie_file = PA_NATIVE_COOKIE_FILE;