diff options
-rw-r--r-- | recordmydesktop/include/rmdfunc.h | 6 | ||||
-rw-r--r-- | recordmydesktop/src/Makefile.am | 1 | ||||
-rw-r--r-- | recordmydesktop/src/register_callbacks.c | 1 | ||||
-rw-r--r-- | recordmydesktop/src/register_callbacks.h | 41 | ||||
-rw-r--r-- | recordmydesktop/src/rmd_rescue.c | 3 | ||||
-rw-r--r-- | recordmydesktop/src/rmdthreads.c | 3 |
6 files changed, 45 insertions, 10 deletions
diff --git a/recordmydesktop/include/rmdfunc.h b/recordmydesktop/include/rmdfunc.h index 69db0b8..1df1e61 100644 --- a/recordmydesktop/include/rmdfunc.h +++ b/recordmydesktop/include/rmdfunc.h @@ -91,12 +91,6 @@ void *FlushToOgg(ProgData *pdata); void ClearList(RectArea **root); /** -* Set up all callbacks and signal handlers -* \param pdata ProgData struct containing all program data -*/ -void RegisterCallbacks(ProgArgs *args); - -/** * Retrieve and apply all changes, if xdamage is used. * * \param dpy Connection to the server diff --git a/recordmydesktop/src/Makefile.am b/recordmydesktop/src/Makefile.am index 9efb9e8..e1633ca 100644 --- a/recordmydesktop/src/Makefile.am +++ b/recordmydesktop/src/Makefile.am @@ -24,6 +24,7 @@ recordmydesktop_SOURCES = \ rectinsert.c \ rectinsert.h \ register_callbacks.c \ + register_callbacks.h \ rmd_cache.c \ rmd_error.c \ rmd_frame.c \ diff --git a/recordmydesktop/src/register_callbacks.c b/recordmydesktop/src/register_callbacks.c index 8b96d4b..c98f55d 100644 --- a/recordmydesktop/src/register_callbacks.c +++ b/recordmydesktop/src/register_callbacks.c @@ -27,6 +27,7 @@ #include <signal.h> #include "recordmydesktop.h" +#include "register_callbacks.h" static void SetPaused(int signum) { diff --git a/recordmydesktop/src/register_callbacks.h b/recordmydesktop/src/register_callbacks.h new file mode 100644 index 0000000..a0a4522 --- /dev/null +++ b/recordmydesktop/src/register_callbacks.h @@ -0,0 +1,41 @@ +/****************************************************************************** +* 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 johnvarouhakis@gmail.com * +******************************************************************************/ + +#ifndef REGISTER_CALLBACKS_H +#define REGISTER_CALLBACKS_H 1 + + +#include "rmdtypes.h" + + +/** +* Set up all callbacks and signal handlers +* \param pdata ProgData struct containing all program data +*/ +void RegisterCallbacks(ProgArgs *args); + + +#endif diff --git a/recordmydesktop/src/rmd_rescue.c b/recordmydesktop/src/rmd_rescue.c index e480468..827a004 100644 --- a/recordmydesktop/src/rmd_rescue.c +++ b/recordmydesktop/src/rmd_rescue.c @@ -24,9 +24,8 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ - - #include "recordmydesktop.h" +#include "register_callbacks.h" int rmdRescue(const char *path){ diff --git a/recordmydesktop/src/rmdthreads.c b/recordmydesktop/src/rmdthreads.c index faf21eb..bbdb166 100644 --- a/recordmydesktop/src/rmdthreads.c +++ b/recordmydesktop/src/rmdthreads.c @@ -24,7 +24,6 @@ * For further information contact me at johnvarouhakis@gmail.com * ******************************************************************************/ - #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -36,7 +35,7 @@ #include "rmdfunc.h" #include "rmdtypes.h" - +#include "register_callbacks.h" void rmdThreads(ProgData *pdata){ |