From f5d1654b23c33c7394e7481e5301f359cdfd2803 Mon Sep 17 00:00:00 2001 From: enselic Date: Sat, 13 Sep 2008 08:37:22 +0000 Subject: include/rmdfunc.h: Removed RegisterCallbacks(). src/Makefile.am src/register_callbacks.h: New file declaring RegisterCallbacks(). src/rmd_rescue.c src/rmdthreads.c src/register_callbacks.c: Include register_callbacks.h git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@526 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/Makefile.am | 1 + recordmydesktop/src/register_callbacks.c | 1 + recordmydesktop/src/register_callbacks.h | 41 ++++++++++++++++++++++++++++++++ recordmydesktop/src/rmd_rescue.c | 3 +-- recordmydesktop/src/rmdthreads.c | 3 +-- 5 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 recordmydesktop/src/register_callbacks.h (limited to 'recordmydesktop/src') 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 #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){ -- cgit v1.2.1