summaryrefslogtreecommitdiffstats
path: root/rfb.h
diff options
context:
space:
mode:
authordscho <dscho>2001-10-10 23:56:04 +0000
committerdscho <dscho>2001-10-10 23:56:04 +0000
commit519a8e0e399bf44893f2d61a3676f3257ab8d201 (patch)
treeee56f840edc32fc080adb4acbe83774ff6bdfebb /rfb.h
parentfad7881732f39780fecd0a0c678392f002b88e26 (diff)
downloadlibtdevnc-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.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/rfb.h b/rfb.h
index 2914a85..ae9660e 100644
--- a/rfb.h
+++ b/rfb.h
@@ -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);