summaryrefslogtreecommitdiff
path: root/recordmydesktop
diff options
context:
space:
mode:
authorenselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-09-13 08:37:22 +0000
committerenselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-09-13 08:37:22 +0000
commitf5d1654b23c33c7394e7481e5301f359cdfd2803 (patch)
tree2fa32012cc002b54cecce3b73ee6cb3c46e14d4b /recordmydesktop
parent70310f183361d7f9cc889d70eeadc96ec948f203 (diff)
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
Diffstat (limited to 'recordmydesktop')
-rw-r--r--recordmydesktop/include/rmdfunc.h6
-rw-r--r--recordmydesktop/src/Makefile.am1
-rw-r--r--recordmydesktop/src/register_callbacks.c1
-rw-r--r--recordmydesktop/src/register_callbacks.h41
-rw-r--r--recordmydesktop/src/rmd_rescue.c3
-rw-r--r--recordmydesktop/src/rmdthreads.c3
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){
© All Rights Reserved