summaryrefslogtreecommitdiffstats
path: root/krfb/libvncserver/rfb.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-04-08 11:56:31 -0500
committerTimothy Pearson <[email protected]>2013-04-08 11:56:31 -0500
commit339d5c5986e559e69dd880375add24c0f39cdb8c (patch)
tree15c96d5015dea795f5bfaf9a751016189c1dcf67 /krfb/libvncserver/rfb.h
parent05273794a3a86e5c2da0d2082fc660f329ebb69a (diff)
downloadtdenetwork-339d5c5986e559e69dd880375add24c0f39cdb8c.tar.gz
tdenetwork-339d5c5986e559e69dd880375add24c0f39cdb8c.zip
Use TQThread in krfb where threads interact with TQt3 instead of direct pthread access
This resolves Bug 1403
Diffstat (limited to 'krfb/libvncserver/rfb.h')
-rw-r--r--krfb/libvncserver/rfb.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/krfb/libvncserver/rfb.h b/krfb/libvncserver/rfb.h
index e8dbfb65..55736af8 100644
--- a/krfb/libvncserver/rfb.h
+++ b/krfb/libvncserver/rfb.h
@@ -154,7 +154,7 @@ typedef unsigned long KeySym;
#define TIMEDWAIT(cond,mutex,t) {struct timeval tv;\
tv.tv_sec = (t) / 1000;\
tv.tv_usec = ((t) % 1000) * 1000;\
- pthread_cond_timedwait(&(cond),&(mutex),&tv);}
+ pthread_cond_timedwait(&(cond),&(mutex),(const timespec*)(&tv));}
#define COND(cond) pthread_cond_t (cond)
#define INIT_COND(cond) pthread_cond_init(&(cond),NULL)
#define TINI_COND(cond) pthread_cond_destroy(&(cond))
@@ -725,12 +725,12 @@ extern Bool rfbSendRectEncodingTight(rfbClientPtr cl, int x,int y,int w,int h);
/* cursor.c */
typedef struct rfbCursor {
- unsigned char *source; /* points to bits */
- unsigned char *mask; /* points to bits */
- unsigned short width, height, xhot, yhot; /* metrics */
- unsigned short foreRed, foreGreen, foreBlue; /* device-independent colour */
- unsigned short backRed, backGreen, backBlue; /* device-independent colour */
- unsigned char *richSource; /* source bytes for a rich cursor */
+ const char *source; /* points to bits */
+ const char *mask; /* points to bits */
+ unsigned short width, height, xhot, yhot; /* metrics */
+ unsigned short foreRed, foreGreen, foreBlue; /* device-independent colour */
+ unsigned short backRed, backGreen, backBlue; /* device-independent colour */
+ unsigned char *richSource; /* source bytes for a rich cursor */
} rfbCursor, *rfbCursorPtr;
extern Bool rfbSendCursorShape(rfbClientPtr cl/*, rfbScreenInfoPtr pScreen*/);