diff options
author | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-13 11:39:35 +0000 |
---|---|---|
committer | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-13 11:39:35 +0000 |
commit | 3f5d20573bd0aac953bd2db2d72997ff44365caf (patch) | |
tree | bc66789419ca93091b30ab16adefafe02661dc52 /recordmydesktop/include/recordmydesktop.h | |
parent | e2e84c980f5e6f3cdec3fe2c09fc33b8f4c03f39 (diff) |
The global int pointer 'Running' is just a hack for global access of
ProgData::running. We can get rid of this global.
include/rmdtypes.h: Put ProgData in JackData so that the libjack stuff
can access progam state.
src/recordmydesktop.c: Initialize ProgData member of JackData.
src/rmd_jack.c: Use ProgData instead of the global.
src/register_callbacks.[ch]: Pass ProgData to the registering of
signal handlers and put a local version of the Running-global hack in
this file.
src/rmd_rescue.c: Get rid of Running-logic and pass ProgData to
RegisterCallbacks()
src/rmdthreads.c: Pass ProgData to RegisterCallbacks()
src/initialize_data.c: Get rid of Running-logic.
include/recordmydesktop.h: Remove the Running-global.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@528 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/include/recordmydesktop.h')
-rw-r--r-- | recordmydesktop/include/recordmydesktop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recordmydesktop/include/recordmydesktop.h b/recordmydesktop/include/recordmydesktop.h index adbc233..1a5c3fa 100644 --- a/recordmydesktop/include/recordmydesktop.h +++ b/recordmydesktop/include/recordmydesktop.h @@ -50,7 +50,7 @@ u_int32_t *yblocks, /**Globals*/ //I've read somewhere that I'll go to hell for using globals... -int Paused,*Running,Aborted,PauseStateChanged; +int Paused, Aborted, PauseStateChanged; pthread_cond_t *time_cond,*pause_cond; pthread_mutex_t pause_mutex,time_mutex; unsigned char Yr[256],Yg[256],Yb[256], |