From ac27d4654fbc9c363c6007c9af3198502e4d1006 Mon Sep 17 00:00:00 2001 From: enselic Date: Sun, 14 Sep 2008 08:03:16 +0000 Subject: src/rmdtypes.h: Move out a lot of includes to the .c files that needs them. src/cache_audio.c src/cache_frame.c src/capture_sound.c src/encode_cache.c src/encode_sound_buffer.c src/flush_to_ogg.c src/get_frame.c src/getzpixmap.c src/init_encoder.c src/initialize_data.c src/load_cache.c src/queryextensions.c src/rmd_cache.c src/rmd_jack.c src/rmd_rescue.c src/rmd_timer.c src/rmdmacro.h src/rmdthreads.c src/update_image.c src/wm_check.c: Adapted. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@543 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/cache_audio.c | 2 ++ recordmydesktop/src/cache_frame.c | 1 + recordmydesktop/src/capture_sound.c | 2 ++ recordmydesktop/src/encode_cache.c | 2 ++ recordmydesktop/src/encode_sound_buffer.c | 2 ++ recordmydesktop/src/flush_to_ogg.c | 2 ++ recordmydesktop/src/get_frame.c | 7 +++++++ recordmydesktop/src/getzpixmap.c | 5 +++++ recordmydesktop/src/init_encoder.c | 1 + recordmydesktop/src/initialize_data.c | 2 ++ recordmydesktop/src/load_cache.c | 1 + recordmydesktop/src/queryextensions.c | 2 ++ recordmydesktop/src/rmd_cache.c | 2 ++ recordmydesktop/src/rmd_jack.c | 2 ++ recordmydesktop/src/rmd_rescue.c | 2 ++ recordmydesktop/src/rmd_timer.c | 2 +- recordmydesktop/src/rmdmacro.h | 2 ++ recordmydesktop/src/rmdthreads.c | 2 +- recordmydesktop/src/rmdtypes.h | 26 -------------------------- recordmydesktop/src/update_image.c | 4 ++++ recordmydesktop/src/wm_check.c | 2 ++ 21 files changed, 45 insertions(+), 28 deletions(-) (limited to 'recordmydesktop') diff --git a/recordmydesktop/src/cache_audio.c b/recordmydesktop/src/cache_audio.c index 8eb5d65..b74e128 100644 --- a/recordmydesktop/src/cache_audio.c +++ b/recordmydesktop/src/cache_audio.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "cache_audio.h" diff --git a/recordmydesktop/src/cache_frame.c b/recordmydesktop/src/cache_frame.c index 1cb3bfa..4e759ae 100644 --- a/recordmydesktop/src/cache_frame.c +++ b/recordmydesktop/src/cache_frame.c @@ -25,6 +25,7 @@ ******************************************************************************/ #include +#include #include "rmdtypes.h" diff --git a/recordmydesktop/src/capture_sound.c b/recordmydesktop/src/capture_sound.c index 5f04fb9..da7f742 100644 --- a/recordmydesktop/src/capture_sound.c +++ b/recordmydesktop/src/capture_sound.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "capture_sound.h" diff --git a/recordmydesktop/src/encode_cache.c b/recordmydesktop/src/encode_cache.c index e15781c..f949565 100644 --- a/recordmydesktop/src/encode_cache.c +++ b/recordmydesktop/src/encode_cache.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "encode_cache.h" diff --git a/recordmydesktop/src/encode_sound_buffer.c b/recordmydesktop/src/encode_sound_buffer.c index b158d86..019a851 100644 --- a/recordmydesktop/src/encode_sound_buffer.c +++ b/recordmydesktop/src/encode_sound_buffer.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "encode_sound_buffer.h" diff --git a/recordmydesktop/src/flush_to_ogg.c b/recordmydesktop/src/flush_to_ogg.c index f9585ba..4caf8b9 100644 --- a/recordmydesktop/src/flush_to_ogg.c +++ b/recordmydesktop/src/flush_to_ogg.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "encode_image_buffer.h" diff --git a/recordmydesktop/src/get_frame.c b/recordmydesktop/src/get_frame.c index 6648996..a2c3a57 100644 --- a/recordmydesktop/src/get_frame.c +++ b/recordmydesktop/src/get_frame.c @@ -24,6 +24,13 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include +#include +#include + +#include +#include + #include "rmdtypes.h" #include "get_frame.h" diff --git a/recordmydesktop/src/getzpixmap.c b/recordmydesktop/src/getzpixmap.c index a303731..9f3bcc8 100644 --- a/recordmydesktop/src/getzpixmap.c +++ b/recordmydesktop/src/getzpixmap.c @@ -24,6 +24,11 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include +#include +#include +#include + #include "rmdtypes.h" #include "getzpixmap.h" diff --git a/recordmydesktop/src/init_encoder.c b/recordmydesktop/src/init_encoder.c index 18b1a74..ce36896 100644 --- a/recordmydesktop/src/init_encoder.c +++ b/recordmydesktop/src/init_encoder.c @@ -26,6 +26,7 @@ #include +#include #include "rmdtypes.h" diff --git a/recordmydesktop/src/initialize_data.c b/recordmydesktop/src/initialize_data.c index c81bf6c..c67d574 100644 --- a/recordmydesktop/src/initialize_data.c +++ b/recordmydesktop/src/initialize_data.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "block_utils.h" diff --git a/recordmydesktop/src/load_cache.c b/recordmydesktop/src/load_cache.c index 8be5dda..b0fe412 100644 --- a/recordmydesktop/src/load_cache.c +++ b/recordmydesktop/src/load_cache.c @@ -24,6 +24,7 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include #include #include "rmdtypes.h" diff --git a/recordmydesktop/src/queryextensions.c b/recordmydesktop/src/queryextensions.c index 5074d2d..69fa212 100644 --- a/recordmydesktop/src/queryextensions.c +++ b/recordmydesktop/src/queryextensions.c @@ -25,6 +25,8 @@ ******************************************************************************/ #include +#include +#include #include "rmdtypes.h" diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c index 4f85292..aa8453e 100644 --- a/recordmydesktop/src/rmd_cache.c +++ b/recordmydesktop/src/rmd_cache.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "rmd_cache.h" diff --git a/recordmydesktop/src/rmd_jack.c b/recordmydesktop/src/rmd_jack.c index 9717e78..0b07234 100644 --- a/recordmydesktop/src/rmd_jack.c +++ b/recordmydesktop/src/rmd_jack.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "rmd_jack.h" diff --git a/recordmydesktop/src/rmd_rescue.c b/recordmydesktop/src/rmd_rescue.c index 382587a..95f23b3 100644 --- a/recordmydesktop/src/rmd_rescue.c +++ b/recordmydesktop/src/rmd_rescue.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "block_utils.h" diff --git a/recordmydesktop/src/rmd_timer.c b/recordmydesktop/src/rmd_timer.c index 2059f90..12416f0 100644 --- a/recordmydesktop/src/rmd_timer.c +++ b/recordmydesktop/src/rmd_timer.c @@ -24,11 +24,11 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ - #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include #include #include diff --git a/recordmydesktop/src/rmdmacro.h b/recordmydesktop/src/rmdmacro.h index 453fbea..29688e5 100644 --- a/recordmydesktop/src/rmdmacro.h +++ b/recordmydesktop/src/rmdmacro.h @@ -31,6 +31,8 @@ #include "config.h" #endif +#include + #include "rmdtypes.h" diff --git a/recordmydesktop/src/rmdthreads.c b/recordmydesktop/src/rmdthreads.c index d70e3b4..96a37ff 100644 --- a/recordmydesktop/src/rmdthreads.c +++ b/recordmydesktop/src/rmdthreads.c @@ -28,9 +28,9 @@ #include "config.h" #endif +#include #include #include -#include #include #include "cache_audio.h" diff --git a/recordmydesktop/src/rmdtypes.h b/recordmydesktop/src/rmdtypes.h index 5495a6b..8d6f98c 100644 --- a/recordmydesktop/src/rmdtypes.h +++ b/recordmydesktop/src/rmdtypes.h @@ -29,35 +29,9 @@ #include "config.h" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#ifdef HAVE_MACHINE_ENDIAN_H - #include -#else - #include -#endif -#include -#include -#include -#include #include #include #include -#include -#include -#include -#include -#include -#include #include #include #include diff --git a/recordmydesktop/src/update_image.c b/recordmydesktop/src/update_image.c index 2f72fd6..5d52af3 100644 --- a/recordmydesktop/src/update_image.c +++ b/recordmydesktop/src/update_image.c @@ -24,6 +24,10 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include +#include +#include + #include "rmdtypes.h" #include "getzpixmap.h" diff --git a/recordmydesktop/src/wm_check.c b/recordmydesktop/src/wm_check.c index 374680a..558de41 100644 --- a/recordmydesktop/src/wm_check.c +++ b/recordmydesktop/src/wm_check.c @@ -24,6 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ +#include + #include "rmdtypes.h" #include "wm_check.h" -- cgit v1.2.3