summaryrefslogtreecommitdiff
path: root/recordmydesktop/include/rmdfunc.h
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-02 09:07:24 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-02 09:07:24 +0000
commit86303ab2561c8f53ee41a7a71d673da2086f9833 (patch)
tree6db4801da5b29083e767c63182666f91d4394665 /recordmydesktop/include/rmdfunc.h
parent22ee15e51f6d72560af37fad744662161e284eb9 (diff)
include/rmdfunc.h: removed SetExpired & CancelTimer, added rmdTimer
include/rmdtypes.h: pdata->timer_alive src/Makefile.am: added rmd_timer in sources src/rmd_timer.c: new thread that handles timing src/register_callbacks.c: removed SetExpired & CancelTimer src/rmdthreads.c: new timing setup(signal-sleep-loop thread, instead of setitimer &sigaction) git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@452 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/include/rmdfunc.h')
-rw-r--r--recordmydesktop/include/rmdfunc.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/recordmydesktop/include/rmdfunc.h b/recordmydesktop/include/rmdfunc.h
index dad87dd..f230287 100644
--- a/recordmydesktop/include/rmdfunc.h
+++ b/recordmydesktop/include/rmdfunc.h
@@ -44,6 +44,16 @@
void *PollEvents(ProgData *pdata);
/**
+* Loop ,signal timer cond var,sleep-\
+* ^ |
+* |________________________________/
+*
+*
+* \param pdata ProgData struct containing all program data
+*/
+void *rmdTimer(ProgData *pdata);
+
+/**
* Retrieve frame form xserver, and transform to a yuv buffer,
* either directly(full shots) or by calling UpdateImage.
* \param pdata ProgData struct containing all program data
@@ -113,13 +123,6 @@ int CollideRects(WGeometry *wgeom1,
WGeometry **wgeom_return,
int *ngeoms);
-/**
-* Broadcast time condition variable, increment frame count.
-*
-* \param signum Number of signal received(unused, always SIGALRM)
-*
-*/
-void SetExpired(int signum);
/**
* Set up all callbacks and signal handlers
@@ -445,10 +448,6 @@ void *LoadCache(ProgData *pdata);
*/
void SyncEncodeImageBuffer(ProgData *pdata);
-/**
-* Stop the timer
-*/
-void CancelTimer(void);
/**
* As EncodeSoundBuffer, only with the assumption that
@@ -791,6 +790,9 @@ void rmdDrawFrame(Display *dpy,
Window win,
int width,
int height);
+
+
+
#endif
© All Rights Reserved