From 25a6bc31f431f59147739876f1d9a96340b65fb2 Mon Sep 17 00:00:00 2001 From: iovar Date: Tue, 13 Mar 2007 19:58:05 +0000 Subject: fixed xdamage with xshm and removed anything related to conditional shared memory usage. Added GetZPixmapShm.Cleaned up pdata stuct from unneeded members. Removed argumednts related to conditional shared (--no-cond-shared, --shared threshold).Changed default for Shm and --with-shared is now --no-shared. Also, dummy cursor has been shaped up a bit. Version changed to 0.3.4-cvs. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@293 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/include/rmdfunc.h | 42 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) (limited to 'recordmydesktop/include/rmdfunc.h') diff --git a/recordmydesktop/include/rmdfunc.h b/recordmydesktop/include/rmdfunc.h index b4d3ef6..4c8e964 100644 --- a/recordmydesktop/include/rmdfunc.h +++ b/recordmydesktop/include/rmdfunc.h @@ -161,6 +161,8 @@ void UpdateImage(Display * dpy, EncData *enc, char *datatemp, int noshmem, + XShmSegmentInfo *shminfo, + int shm_opcode, int no_quick_subsample); /** @@ -182,8 +184,6 @@ void UpdateImage(Display * dpy, * * \param height height position of the screenshot * -* \param x x position of the screenshot -* * \returns 0 on Success 1 on Failure */ int GetZPixmap(Display *dpy, @@ -194,6 +194,41 @@ int GetZPixmap(Display *dpy, int width, int height); +/** +* Rerieve pixmap data from xserver through the MIT-Shm extension +* +* \param dpy Connection to the server +* +* \param root root window of the display +* +* \param shminfo Info for the shared memory segment +* +* \param shm_opcode Opcode of Shm extension +* +* \param data (preallocated)buffer to place the data +* +* \param x x position of the screenshot +* +* \param y y position of the screenshot +* +* \param x x position of the screenshot +* +* \param width width of the screenshot +* +* \param height height position of the screenshot +* +* \returns 0 on Success 1 on Failure +*/ +int GetZPixmapSHM(Display *dpy, + Window root, + XShmSegmentInfo *shminfo, + int shm_opcode, + char *data, + int x, + int y, + int width, + int height); + /** * Fill ProgArgs struct with arguments entered at execution * @@ -223,7 +258,8 @@ int ParseArgs(int argc,char **argv,ProgArgs *arg_return); void QueryExtensions(Display *dpy, ProgArgs *args, int *damage_event, - int *damage_error); + int *damage_error, + int *shm_opcode); /** * Check and align window size -- cgit v1.2.3