diff options
author | dscho <dscho> | 2001-10-10 23:56:04 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-10-10 23:56:04 +0000 |
commit | 519a8e0e399bf44893f2d61a3676f3257ab8d201 (patch) | |
tree | ee56f840edc32fc080adb4acbe83774ff6bdfebb /rfb.h | |
parent | fad7881732f39780fecd0a0c678392f002b88e26 (diff) | |
download | libtdevnc-519a8e0e399bf44893f2d61a3676f3257ab8d201.tar.gz libtdevnc-519a8e0e399bf44893f2d61a3676f3257ab8d201.zip |
copyrect corrections, fd_set in rfbNewClient, dox in rfb.h for pthreads
problem
Diffstat (limited to 'rfb.h')
-rw-r--r-- | rfb.h | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -738,15 +738,20 @@ void rfbMarkRectAsModified(rfbScreenInfoPtr rfbScreen,int x1,int y1,int x2,int y void rfbMarkRegionAsModified(rfbScreenInfoPtr rfbScreen,sraRegionPtr modRegion); void doNothingWithClient(rfbClientPtr cl); -/* functions to make a vnc server */ -extern rfbScreenInfoPtr rfbGetScreen(int argc,char** argv, - int width,int height,int bitsPerSample,int samplesPerPixel, - int bytesPerPixel); +/* if you use pthreads, but don't define HAVE_PTHREADS, the structs + get all mixed up. So this gives a linker error reminding you to compile + the library and your application (at least the parts including rfb.h) + with the same support for pthreads. */ #ifdef HAVE_PTHREADS #define rfbInitServer rfbInitServerWithPthreads #else #define rfbInitServer rfbInitServerWithoutPthreads #endif + +/* functions to make a vnc server */ +extern rfbScreenInfoPtr rfbGetScreen(int argc,char** argv, + int width,int height,int bitsPerSample,int samplesPerPixel, + int bytesPerPixel); extern void rfbInitServer(rfbScreenInfoPtr rfbScreen); extern void rfbScreenCleanup(rfbScreenInfoPtr screenInfo); |