summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recordmydesktop/include/rmdfunc.h10
-rw-r--r--recordmydesktop/include/rmdtypes.h9
2 files changed, 12 insertions, 7 deletions
diff --git a/recordmydesktop/include/rmdfunc.h b/recordmydesktop/include/rmdfunc.h
index f7afe3b..4ee82b7 100644
--- a/recordmydesktop/include/rmdfunc.h
+++ b/recordmydesktop/include/rmdfunc.h
@@ -36,12 +36,20 @@
/**Function prototypes*/
/**
+* Start listening to damage and substructure notify events
+* (needed before EventLoop call)
+* \param pdata ProgData struct containing all program data
+*/
+void InitEventsPolling(ProgData *pdata);
+
+
+/**
* Loop calling XNextEvent.Retrieve and place on
* list damage events that arive, create damage for new windows
* and pickup key events for shortcuts.
* \param pdata ProgData struct containing all program data
*/
-void *PollEvents(ProgData *pdata);
+void EventLoop(ProgData *pdata);
/**
* Loop ,signal timer cond var,sleep-\
diff --git a/recordmydesktop/include/rmdtypes.h b/recordmydesktop/include/rmdtypes.h
index ebb2ebe..6189a48 100644
--- a/recordmydesktop/include/rmdtypes.h
+++ b/recordmydesktop/include/rmdtypes.h
@@ -270,7 +270,7 @@ typedef struct _ProgData{
ProgArgs args; //the program arguments
DisplaySpecs specs; //Display specific information
BRWindow brwin; //recording window
- RectArea *rect_root[2]; //the interchanging list roots for storing
+ RectArea *rect_root; //the interchanging list roots for storing
//the changed regions
SndBuffer *sound_buffer;
EncData *enc_data;
@@ -283,9 +283,7 @@ typedef struct _ProgData{
/**X related info*/
Display *dpy; //curtrent display
/** Mutexes*/
- pthread_mutex_t list_mutex[2], //mutexes for concurrency
- //protection of the lists
- sound_buffer_mutex,
+ pthread_mutex_t sound_buffer_mutex,
snd_buff_ready_mutex,
img_buff_ready_mutex,
theora_lib_mutex,
@@ -322,8 +320,7 @@ typedef struct _ProgData{
frametime; //time that a frame lasts (microsecs)
char *window_manager; //name of the window manager at program launch
Window shaped_w; //frame
- int list_selector, //selector for the rect_roots
- damage_event, //damage event base code
+ int damage_event, //damage event base code
damage_error, //damage error base code
shm_opcode, //MIT-Shm opcode
running, //1 while the program is capturing/paused/encoding
© All Rights Reserved