recordmydesktop-svn-commit Mailing List for recordMyDesktop (Page 4)
Status: Alpha
Brought to you by:
enselic
You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(39) |
Oct
(6) |
Nov
(16) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(14) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: svn c. f. r. <rec...@li...> - 2008-09-12 22:58:31
|
Revision: 516 http://recordmydesktop.svn.sourceforge.net/recordmydesktop/?rev=516&view=rev Author: enselic Date: 2008-09-12 22:58:28 +0000 (Fri, 12 Sep 2008) Log Message: ----------- src/test-rectinsert.c: We don't need to include the whole recordmydesktop.h, we can replace it with rmdtypes.h. Modified Paths: -------------- trunk/recordmydesktop/src/test-rectinsert.c Modified: trunk/recordmydesktop/src/test-rectinsert.c =================================================================== --- trunk/recordmydesktop/src/test-rectinsert.c 2008-09-12 22:40:44 UTC (rev 515) +++ trunk/recordmydesktop/src/test-rectinsert.c 2008-09-12 22:58:28 UTC (rev 516) @@ -20,8 +20,8 @@ * * ******************************************************************************/ -#include "recordmydesktop.h" +#include "rmdtypes.h" #include "test-rectinsert-types.h" #include "rectinsert.h" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: svn c. f. r. <rec...@li...> - 2008-09-12 22:40:51
|
Revision: 515 http://recordmydesktop.svn.sourceforge.net/recordmydesktop/?rev=515&view=rev Author: enselic Date: 2008-09-12 22:40:44 +0000 (Fri, 12 Sep 2008) Log Message: ----------- Don't include config.h, recordmydesktop.h, rmdtypes.h, rmdfuncs.h or skeleton.h as system headers. include/rmdfunc.h include/rmdmacro.h include/rmdtypes.h include/recordmydesktop.h src/cleanup.c src/opendev.c src/rmd_jack.c src/wm_check.c src/get_frame.c src/parseargs.c src/rmd_cache.c src/rmd_error.c src/rmd_timer.c src/shortcuts.c src/specsfile.c src/getzpixmap.c src/load_cache.c src/rectinsert.c src/rmd_rescue.c src/rmdthreads.c src/cache_audio.c src/poll_events.c src/setbrwindow.c src/encode_cache.c src/flush_to_ogg.c src/init_encoder.c src/update_image.c src/capture_sound.c src/initialize_data.c src/queryextensions.c src/recordmydesktop.c src/make_dummy_pointer.c src/register_callbacks.c src/encode_image_buffer.c src/encode_sound_buffer.c: Changed. Modified Paths: -------------- trunk/recordmydesktop/include/recordmydesktop.h trunk/recordmydesktop/include/rmdfunc.h trunk/recordmydesktop/include/rmdmacro.h trunk/recordmydesktop/include/rmdtypes.h trunk/recordmydesktop/src/cache_audio.c trunk/recordmydesktop/src/capture_sound.c trunk/recordmydesktop/src/cleanup.c trunk/recordmydesktop/src/encode_cache.c trunk/recordmydesktop/src/encode_image_buffer.c trunk/recordmydesktop/src/encode_sound_buffer.c trunk/recordmydesktop/src/flush_to_ogg.c trunk/recordmydesktop/src/get_frame.c trunk/recordmydesktop/src/getzpixmap.c trunk/recordmydesktop/src/init_encoder.c trunk/recordmydesktop/src/initialize_data.c trunk/recordmydesktop/src/load_cache.c trunk/recordmydesktop/src/make_dummy_pointer.c trunk/recordmydesktop/src/opendev.c trunk/recordmydesktop/src/parseargs.c trunk/recordmydesktop/src/poll_events.c trunk/recordmydesktop/src/queryextensions.c trunk/recordmydesktop/src/recordmydesktop.c trunk/recordmydesktop/src/rectinsert.c trunk/recordmydesktop/src/register_callbacks.c trunk/recordmydesktop/src/rmd_cache.c trunk/recordmydesktop/src/rmd_error.c trunk/recordmydesktop/src/rmd_jack.c trunk/recordmydesktop/src/rmd_rescue.c trunk/recordmydesktop/src/rmd_timer.c trunk/recordmydesktop/src/rmdthreads.c trunk/recordmydesktop/src/setbrwindow.c trunk/recordmydesktop/src/shortcuts.c trunk/recordmydesktop/src/specsfile.c trunk/recordmydesktop/src/update_image.c trunk/recordmydesktop/src/wm_check.c Modified: trunk/recordmydesktop/include/recordmydesktop.h =================================================================== --- trunk/recordmydesktop/include/recordmydesktop.h 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/include/recordmydesktop.h 2008-09-12 22:40:44 UTC (rev 515) @@ -29,7 +29,7 @@ #define RECORDMYDESKTOP_H 1 #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif //header inclusion is completely fucked up Modified: trunk/recordmydesktop/include/rmdfunc.h =================================================================== --- trunk/recordmydesktop/include/rmdfunc.h 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/include/rmdfunc.h 2008-09-12 22:40:44 UTC (rev 515) @@ -24,15 +24,17 @@ * For further information contact me at joh...@gm... * ******************************************************************************/ + #ifndef RMDFUNC_H #define RMDFUNC_H 1 #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif #include "rmdtypes.h" + /**Function prototypes*/ /** Modified: trunk/recordmydesktop/include/rmdmacro.h =================================================================== --- trunk/recordmydesktop/include/rmdmacro.h 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/include/rmdmacro.h 2008-09-12 22:40:44 UTC (rev 515) @@ -24,15 +24,17 @@ * For further information contact me at joh...@gm... * ******************************************************************************/ + #ifndef RMDMACRO_H #define RMDMACRO_H 1 #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif #include "rmdtypes.h" + //define which way we are reading a pixmap #if __BYTE_ORDER == __LITTLE_ENDIAN #define __ABYTE 3 Modified: trunk/recordmydesktop/include/rmdtypes.h =================================================================== --- trunk/recordmydesktop/include/rmdtypes.h 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/include/rmdtypes.h 2008-09-12 22:40:44 UTC (rev 515) @@ -26,7 +26,7 @@ #define RMDTYPES_H 1 #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif Modified: trunk/recordmydesktop/src/cache_audio.c =================================================================== --- trunk/recordmydesktop/src/cache_audio.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/cache_audio.c 2008-09-12 22:40:44 UTC (rev 515) @@ -24,7 +24,10 @@ * For further information contact me at joh...@gm... * ******************************************************************************/ -#include <recordmydesktop.h> + +#include "recordmydesktop.h" + + void *CacheSoundBuffer(ProgData *pdata){ //We are simply going to throw sound on the disk. //It's sound is tiny compared to that of image, so Modified: trunk/recordmydesktop/src/capture_sound.c =================================================================== --- trunk/recordmydesktop/src/capture_sound.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/capture_sound.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + void *CaptureSound(ProgData *pdata){ #ifdef HAVE_LIBASOUND Modified: trunk/recordmydesktop/src/cleanup.c =================================================================== --- trunk/recordmydesktop/src/cleanup.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/cleanup.c 2008-09-12 22:40:44 UTC (rev 515) @@ -24,7 +24,7 @@ * For further information contact me at joh...@gm... * ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" void CleanUp(void){ Modified: trunk/recordmydesktop/src/encode_cache.c =================================================================== --- trunk/recordmydesktop/src/encode_cache.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/encode_cache.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,7 +25,7 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" void EncodeCache(ProgData *pdata){ Modified: trunk/recordmydesktop/src/encode_image_buffer.c =================================================================== --- trunk/recordmydesktop/src/encode_image_buffer.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/encode_image_buffer.c 2008-09-12 22:40:44 UTC (rev 515) @@ -24,7 +24,10 @@ * For further information contact me at joh...@gm... * ******************************************************************************/ -#include <recordmydesktop.h> + +#include "recordmydesktop.h" + + void *EncodeImageBuffer(ProgData *pdata){ pdata->th_encoding_clean=0; while(pdata->running){ Modified: trunk/recordmydesktop/src/encode_sound_buffer.c =================================================================== --- trunk/recordmydesktop/src/encode_sound_buffer.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/encode_sound_buffer.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + void *EncodeSoundBuffer(ProgData *pdata){ int sampread=pdata->periodsize; #ifdef HAVE_JACK_H Modified: trunk/recordmydesktop/src/flush_to_ogg.c =================================================================== --- trunk/recordmydesktop/src/flush_to_ogg.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/flush_to_ogg.c 2008-09-12 22:40:44 UTC (rev 515) @@ -24,7 +24,7 @@ * For further information contact me at joh...@gm... * ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" //we copy the page because the next call to ogg_stream_pageout //will invalidate it. But we must have pages from Modified: trunk/recordmydesktop/src/get_frame.c =================================================================== --- trunk/recordmydesktop/src/get_frame.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/get_frame.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,7 @@ ******************************************************************************/ -#include <recordmydesktop.h> - +#include "recordmydesktop.h" #include "rectinsert.h" Modified: trunk/recordmydesktop/src/getzpixmap.c =================================================================== --- trunk/recordmydesktop/src/getzpixmap.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/getzpixmap.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + int GetZPixmap(Display *dpy, Window root, char *data, Modified: trunk/recordmydesktop/src/init_encoder.c =================================================================== --- trunk/recordmydesktop/src/init_encoder.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/init_encoder.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,10 +25,12 @@ ******************************************************************************/ -#include <recordmydesktop.h> #include <string.h> -#include <skeleton.h> +#include "recordmydesktop.h" +#include "skeleton.h" + + void m_add_fishead_packet(ogg_stream_state *m_ogg_state){ fishead_packet skel_fp; Modified: trunk/recordmydesktop/src/initialize_data.c =================================================================== --- trunk/recordmydesktop/src/initialize_data.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/initialize_data.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + #ifdef HAVE_LIBASOUND void FixBufferSize(snd_pcm_uframes_t *buffsize){ snd_pcm_uframes_t buffsize_t=*buffsize, Modified: trunk/recordmydesktop/src/load_cache.c =================================================================== --- trunk/recordmydesktop/src/load_cache.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/load_cache.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,7 +25,7 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" //The number of bytes for every Modified: trunk/recordmydesktop/src/make_dummy_pointer.c =================================================================== --- trunk/recordmydesktop/src/make_dummy_pointer.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/make_dummy_pointer.c 2008-09-12 22:40:44 UTC (rev 515) @@ -24,8 +24,10 @@ * For further information contact me at joh...@gm... * ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + + unsigned char *MakeDummyPointer(DisplaySpecs *specs, int size, int color, Modified: trunk/recordmydesktop/src/opendev.c =================================================================== --- trunk/recordmydesktop/src/opendev.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/opendev.c 2008-09-12 22:40:44 UTC (rev 515) @@ -27,9 +27,9 @@ -// #include <recordmydesktop.h> +// #include "recordmydesktop.h" #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif #include <stdlib.h> Modified: trunk/recordmydesktop/src/parseargs.c =================================================================== --- trunk/recordmydesktop/src/parseargs.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/parseargs.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + void PrintConfig(void){ fprintf(stderr,"\nrecordMyDesktop was compiled with" " the following options:\n\n"); Modified: trunk/recordmydesktop/src/poll_events.c =================================================================== --- trunk/recordmydesktop/src/poll_events.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/poll_events.c 2008-09-12 22:40:44 UTC (rev 515) @@ -26,7 +26,7 @@ #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif #include <stdio.h> @@ -35,9 +35,10 @@ #include <X11/Xlibint.h> #include <X11/extensions/Xdamage.h> #include <pthread.h> -#include <rmdfunc.h> -#include <rmdtypes.h> -#include <rmdmacro.h> + +#include "rmdfunc.h" +#include "rmdtypes.h" +#include "rmdmacro.h" #include "rectinsert.h" Modified: trunk/recordmydesktop/src/queryextensions.c =================================================================== --- trunk/recordmydesktop/src/queryextensions.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/queryextensions.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,9 +25,11 @@ ******************************************************************************/ -#include <recordmydesktop.h> #include <X11/extensions/shape.h> +#include "recordmydesktop.h" + + void QueryExtensions(Display *dpy, ProgArgs *args, int *damage_event, Modified: trunk/recordmydesktop/src/recordmydesktop.c =================================================================== --- trunk/recordmydesktop/src/recordmydesktop.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/recordmydesktop.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,7 +25,7 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" int main(int argc,char **argv){ Modified: trunk/recordmydesktop/src/rectinsert.c =================================================================== --- trunk/recordmydesktop/src/rectinsert.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/rectinsert.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,7 @@ ******************************************************************************/ -#include <recordmydesktop.h> - +#include "recordmydesktop.h" #include "rectinsert.h" Modified: trunk/recordmydesktop/src/register_callbacks.c =================================================================== --- trunk/recordmydesktop/src/register_callbacks.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/register_callbacks.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + void SetPaused(int signum){ PauseStateChanged=1; Modified: trunk/recordmydesktop/src/rmd_cache.c =================================================================== --- trunk/recordmydesktop/src/rmd_cache.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/rmd_cache.c 2008-09-12 22:40:44 UTC (rev 515) @@ -24,9 +24,10 @@ * For further information contact me at joh...@gm... * ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + /** *Construct an number postfixed name * Modified: trunk/recordmydesktop/src/rmd_error.c =================================================================== --- trunk/recordmydesktop/src/rmd_error.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/rmd_error.c 2008-09-12 22:40:44 UTC (rev 515) @@ -26,15 +26,17 @@ #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <X11/Xlib.h> #include <X11/Xlibint.h> -#include <rmdfunc.h> +#include "rmdfunc.h" + + int rmdErrorHandler( Display *dpy, XErrorEvent *e ) { char error_desc[1024]; Modified: trunk/recordmydesktop/src/rmd_jack.c =================================================================== --- trunk/recordmydesktop/src/rmd_jack.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/rmd_jack.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + #ifdef HAVE_JACK_H Modified: trunk/recordmydesktop/src/rmd_rescue.c =================================================================== --- trunk/recordmydesktop/src/rmd_rescue.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/rmd_rescue.c 2008-09-12 22:40:44 UTC (rev 515) @@ -26,7 +26,7 @@ -#include <recordmydesktop.h> +#include "recordmydesktop.h" int rmdRescue(const char *path){ Modified: trunk/recordmydesktop/src/rmd_timer.c =================================================================== --- trunk/recordmydesktop/src/rmd_timer.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/rmd_timer.c 2008-09-12 22:40:44 UTC (rev 515) @@ -26,14 +26,15 @@ #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif #include <stdio.h> #include <stdlib.h> -#include <recordmydesktop.h> +#include "recordmydesktop.h" + void *rmdTimer(ProgData *pdata){ long unsigned int secs_tw=1/pdata->args.fps; Modified: trunk/recordmydesktop/src/rmdthreads.c =================================================================== --- trunk/recordmydesktop/src/rmdthreads.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/rmdthreads.c 2008-09-12 22:40:44 UTC (rev 515) @@ -26,18 +26,19 @@ #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> -#include <rmdfunc.h> -#include <rmdtypes.h> +#include "rmdfunc.h" +#include "rmdtypes.h" + void rmdThreads(ProgData *pdata){ pthread_t poll_events_t, image_capture_t, Modified: trunk/recordmydesktop/src/setbrwindow.c =================================================================== --- trunk/recordmydesktop/src/setbrwindow.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/setbrwindow.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + /** *Align the recording window to a divisible by 2 pixel start and *and a size divisible by 16. Modified: trunk/recordmydesktop/src/shortcuts.c =================================================================== --- trunk/recordmydesktop/src/shortcuts.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/shortcuts.c 2008-09-12 22:40:44 UTC (rev 515) @@ -26,7 +26,7 @@ #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif #include <stdio.h> @@ -35,8 +35,9 @@ #include <X11/Xlib.h> #include <X11/Xlibint.h> #include <X11/keysym.h> -#include <rmdtypes.h> +#include "rmdtypes.h" + int RegisterShortcut(Display *dpy, Window root, const char *shortcut, Modified: trunk/recordmydesktop/src/specsfile.c =================================================================== --- trunk/recordmydesktop/src/specsfile.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/specsfile.c 2008-09-12 22:40:44 UTC (rev 515) @@ -24,15 +24,15 @@ * For further information contact me at joh...@gm... * ******************************************************************************/ + #ifdef HAVE_CONFIG_H - #include <config.h> + #include "config.h" #endif - #include <stdlib.h> #include <stdio.h> -#include <rmdtypes.h> +#include "rmdtypes.h" int WriteSpecsFile(ProgData *pdata){ Modified: trunk/recordmydesktop/src/update_image.c =================================================================== --- trunk/recordmydesktop/src/update_image.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/update_image.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + void UpdateImage(Display * dpy, yuv_buffer *yuv, DisplaySpecs *specs, Modified: trunk/recordmydesktop/src/wm_check.c =================================================================== --- trunk/recordmydesktop/src/wm_check.c 2008-09-12 22:22:57 UTC (rev 514) +++ trunk/recordmydesktop/src/wm_check.c 2008-09-12 22:40:44 UTC (rev 515) @@ -25,8 +25,9 @@ ******************************************************************************/ -#include <recordmydesktop.h> +#include "recordmydesktop.h" + char *rmdWMCheck(Display *dpy,Window root){ Window *wm_child=NULL; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: svn c. f. r. <rec...@li...> - 2008-09-12 22:22:59
|
Revision: 514 http://recordmydesktop.svn.sourceforge.net/recordmydesktop/?rev=514&view=rev Author: enselic Date: 2008-09-12 22:22:57 +0000 (Fri, 12 Sep 2008) Log Message: ----------- src/test-rectinsert-types.h: Actually, recordmydesktop-types.h was available (but was called rmdtypes.h). Modified Paths: -------------- trunk/recordmydesktop/src/test-rectinsert-types.h Modified: trunk/recordmydesktop/src/test-rectinsert-types.h =================================================================== --- trunk/recordmydesktop/src/test-rectinsert-types.h 2008-09-12 22:16:13 UTC (rev 513) +++ trunk/recordmydesktop/src/test-rectinsert-types.h 2008-09-12 22:22:57 UTC (rev 514) @@ -23,12 +23,14 @@ #ifndef TEST_RECTINSERT_TYPES_H #define TEST_RECTINSERT_TYPES_H -// FIXME: Include recordmydesktop-types.h when available -#include "recordmydesktop.h" +#include "rmdtypes.h" + + #define STATE_WIDTH 20 #define STATE_HEIGHT 20 + typedef struct RectInsertTestdataEntry { const char *description; WGeometry new_geom; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: svn c. f. r. <rec...@li...> - 2008-09-12 22:19:08
|
Revision: 510 http://recordmydesktop.svn.sourceforge.net/recordmydesktop/?rev=510&view=rev Author: enselic Date: 2008-09-12 20:59:43 +0000 (Fri, 12 Sep 2008) Log Message: ----------- src/recordmydesktop.c: Expand the unnecessary QUERY_DISPLAY_SPECS()-macro. Modified Paths: -------------- trunk/recordmydesktop/src/recordmydesktop.c Modified: trunk/recordmydesktop/src/recordmydesktop.c =================================================================== --- trunk/recordmydesktop/src/recordmydesktop.c 2008-09-12 18:27:36 UTC (rev 509) +++ trunk/recordmydesktop/src/recordmydesktop.c 2008-09-12 20:59:43 UTC (rev 510) @@ -28,19 +28,6 @@ #include <recordmydesktop.h> -#define QUERY_DISPLAY_SPECS(display,specstruct){\ - (specstruct)->screen=DefaultScreen(display);\ - (specstruct)->width=DisplayWidth(display,(specstruct)->screen);\ - (specstruct)->height=DisplayHeight(display,(specstruct)->screen);\ - (specstruct)->root=RootWindow(display,(specstruct)->screen);\ - (specstruct)->visual=DefaultVisual(display,(specstruct)->screen);\ - (specstruct)->gc=DefaultGC(display,(specstruct)->screen);\ - (specstruct)->depth=DefaultDepth(display,(specstruct)->screen);\ - (specstruct)->bpixel=XBlackPixel(display,(specstruct)->screen);\ - (specstruct)->wpixel=XWhitePixel(display,(specstruct)->screen);\ -} - - int main(int argc,char **argv){ ProgData pdata; @@ -73,7 +60,18 @@ JackData jdata; pdata.jdata=&jdata; #endif - QUERY_DISPLAY_SPECS(pdata.dpy,&pdata.specs); + + // Query display specs + pdata.specs.screen = DefaultScreen(pdata.dpy); + pdata.specs.width = DisplayWidth(pdata.dpy, pdata.specs.screen); + pdata.specs.height = DisplayHeight(pdata.dpy, pdata.specs.screen); + pdata.specs.root = RootWindow(pdata.dpy, pdata.specs.screen); + pdata.specs.visual = DefaultVisual(pdata.dpy, pdata.specs.screen); + pdata.specs.gc = DefaultGC(pdata.dpy, pdata.specs.screen); + pdata.specs.depth = DefaultDepth(pdata.dpy, pdata.specs.screen); + pdata.specs.bpixel = XBlackPixel(pdata.dpy, pdata.specs.screen); + pdata.specs.wpixel = XWhitePixel(pdata.dpy, pdata.specs.screen); + if((pdata.specs.depth!=32)&& (pdata.specs.depth!=24)&& (pdata.specs.depth!=16)){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: svn c. f. r. <rec...@li...> - 2008-09-12 22:15:40
|
Revision: 511 http://recordmydesktop.svn.sourceforge.net/recordmydesktop/?rev=511&view=rev Author: enselic Date: 2008-09-12 21:04:36 +0000 (Fri, 12 Sep 2008) Log Message: ----------- include/recordmydesktop.h: Make the global exit_status variable src/recordmydesktop.c: local here. Modified Paths: -------------- trunk/recordmydesktop/include/recordmydesktop.h trunk/recordmydesktop/src/recordmydesktop.c Modified: trunk/recordmydesktop/include/recordmydesktop.h =================================================================== --- trunk/recordmydesktop/include/recordmydesktop.h 2008-09-12 20:59:43 UTC (rev 510) +++ trunk/recordmydesktop/include/recordmydesktop.h 2008-09-12 21:04:36 UTC (rev 511) @@ -68,7 +68,5 @@ int capture_busy, encoder_busy; -int exit_status; - #endif Modified: trunk/recordmydesktop/src/recordmydesktop.c =================================================================== --- trunk/recordmydesktop/src/recordmydesktop.c 2008-09-12 20:59:43 UTC (rev 510) +++ trunk/recordmydesktop/src/recordmydesktop.c 2008-09-12 21:04:36 UTC (rev 511) @@ -30,8 +30,7 @@ int main(int argc,char **argv){ ProgData pdata; - - exit_status=0; + int exit_status = 0; DEFAULT_ARGS(&pdata.args); if(ParseArgs(argc,argv,&pdata.args)){ @@ -177,6 +176,7 @@ CleanUp(); } } + return exit_status; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: svn c. f. r. <rec...@li...> - 2008-09-12 21:16:56
|
Revision: 512 http://recordmydesktop.svn.sourceforge.net/recordmydesktop/?rev=512&view=rev Author: enselic Date: 2008-09-12 21:16:52 +0000 (Fri, 12 Sep 2008) Log Message: ----------- Give rectinsert.c a header file and include this header file in RectInsert() clients. src/Makefile.am src/rectinsert.h: Added rectinsert.h. src/get_frame.c src/rectinsert.c src/poll_events.c: Include rectinsert.h include/rmdfunc.h: Removed RectInsert() declaration, it's in rectinsert.h now. Modified Paths: -------------- trunk/recordmydesktop/include/rmdfunc.h trunk/recordmydesktop/src/Makefile.am trunk/recordmydesktop/src/get_frame.c trunk/recordmydesktop/src/poll_events.c trunk/recordmydesktop/src/rectinsert.c Added Paths: ----------- trunk/recordmydesktop/src/rectinsert.h Modified: trunk/recordmydesktop/include/rmdfunc.h =================================================================== --- trunk/recordmydesktop/include/rmdfunc.h 2008-09-12 21:04:36 UTC (rev 511) +++ trunk/recordmydesktop/include/rmdfunc.h 2008-09-12 21:16:52 UTC (rev 512) @@ -89,20 +89,6 @@ void ClearList(RectArea **root); /** -* Insert a new rectangle on the list, making sure it doesn't overlap -* with the existing ones -* \param root Root entry of the list -* -* \param wgeom New area to be inserted -* -* \returns Number of insertions during operation -* -* \note This function is reentrant and recursive. The number -* of insertions takes this into account. -*/ -int RectInsert(RectArea **root,WGeometry *wgeom); - -/** * Set up all callbacks and signal handlers * \param pdata ProgData struct containing all program data */ Modified: trunk/recordmydesktop/src/Makefile.am =================================================================== --- trunk/recordmydesktop/src/Makefile.am 2008-09-12 21:04:36 UTC (rev 511) +++ trunk/recordmydesktop/src/Makefile.am 2008-09-12 21:16:52 UTC (rev 512) @@ -21,6 +21,7 @@ queryextensions.c \ recordmydesktop.c \ rectinsert.c \ + rectinsert.h \ register_callbacks.c \ rmd_cache.c \ rmd_error.c \ Modified: trunk/recordmydesktop/src/get_frame.c =================================================================== --- trunk/recordmydesktop/src/get_frame.c 2008-09-12 21:04:36 UTC (rev 511) +++ trunk/recordmydesktop/src/get_frame.c 2008-09-12 21:16:52 UTC (rev 512) @@ -27,7 +27,9 @@ #include <recordmydesktop.h> +#include "rectinsert.h" + #define CLIP_DUMMY_POINTER_AREA(dummy_p_area,brwin,wgeom){\ (wgeom)->x=((((dummy_p_area).x+\ (dummy_p_area).width>=(brwin)->rgeom.x)&&\ Modified: trunk/recordmydesktop/src/poll_events.c =================================================================== --- trunk/recordmydesktop/src/poll_events.c 2008-09-12 21:04:36 UTC (rev 511) +++ trunk/recordmydesktop/src/poll_events.c 2008-09-12 21:16:52 UTC (rev 512) @@ -38,6 +38,7 @@ #include <rmdfunc.h> #include <rmdtypes.h> #include <rmdmacro.h> +#include "rectinsert.h" #define CLIP_EVENT_AREA(e,brwin,wgeom){\ Modified: trunk/recordmydesktop/src/rectinsert.c =================================================================== --- trunk/recordmydesktop/src/rectinsert.c 2008-09-12 21:04:36 UTC (rev 511) +++ trunk/recordmydesktop/src/rectinsert.c 2008-09-12 21:16:52 UTC (rev 512) @@ -27,6 +27,9 @@ #include <recordmydesktop.h> +#include "rectinsert.h" + + /** * Collide two rectangles and dictate most sane action for insertion, * as well as provide the updated rectangle(s) Added: trunk/recordmydesktop/src/rectinsert.h =================================================================== --- trunk/recordmydesktop/src/rectinsert.h (rev 0) +++ trunk/recordmydesktop/src/rectinsert.h 2008-09-12 21:16:52 UTC (rev 512) @@ -0,0 +1,49 @@ +/****************************************************************************** +* recordMyDesktop * +******************************************************************************* +* * +* Copyright (C) 2006,2007,2008 John Varouhakis * +* * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program; if not, write to the Free Software * +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * +* * +* * +* * +* For further information contact me at joh...@gm... * +******************************************************************************/ + +#ifndef RECTINSERT_H +#define RECTINSERT_H 1 + + +#include "rmdtypes.h" + + +/** +* Insert a new rectangle on the list, making sure it doesn't overlap +* with the existing ones +* \param root Root entry of the list +* +* \param wgeom New area to be inserted +* +* \returns Number of insertions during operation +* +* \note This function is reentrant and recursive. The number +* of insertions takes this into account. +*/ +int RectInsert(RectArea **root, WGeometry *wgeom); + + +#endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |