diff options
author | dscho <dscho> | 2004-06-07 08:31:57 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-06-07 08:31:57 +0000 |
commit | 2b8c2a5c3a71364e402b4df334a6f5aff5ed77a9 (patch) | |
tree | 66e59b58f919f5848780d5c7d6c954160e289cff /rfb/rfbclient.h | |
parent | 98e4f89569587c143a56e4dcf8162a035efc361e (diff) | |
download | libtdevnc-2b8c2a5c3a71364e402b4df334a6f5aff5ed77a9.tar.gz libtdevnc-2b8c2a5c3a71364e402b4df334a6f5aff5ed77a9.zip |
add client_examples/, add SDLvncviewer, libvncclient API changes, suppress automake CFLAGS nagging
Diffstat (limited to 'rfb/rfbclient.h')
-rw-r--r-- | rfb/rfbclient.h | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h index c738409..e6e43bf 100644 --- a/rfb/rfbclient.h +++ b/rfb/rfbclient.h @@ -1,3 +1,6 @@ +#ifndef RFBCLIENT_H +#define RFBCLIENT_H + /* * Copyright (C) 2000, 2001 Const Kaplinsky. All Rights Reserved. * Copyright (C) 2000 Tridia Corporation. All Rights Reserved. @@ -55,31 +58,15 @@ typedef struct { rfbBool shareDesktop; rfbBool viewOnly; - rfbBool fullScreen; - rfbBool grabKeyboard; - rfbBool raiseOnBeep; const char* encodingsString; rfbBool useBGR233; int nColours; - rfbBool useSharedColours; rfbBool forceOwnCmap; rfbBool forceTrueColour; int requestedDepth; - rfbBool useShm; - - int wmDecorationWidth; - int wmDecorationHeight; - - rfbBool debug; - - int popupButtonCount; - - int bumpScrollTime; - int bumpScrollPixels; - int compressLevel; int qualityLevel; rfbBool enableJPEG; @@ -133,6 +120,9 @@ typedef struct _rfbClient { /* cursor.c */ uint8_t *rcSource, *rcMask; + /* private data pointer */ + void* clientData; + /* hooks */ HandleCursorPosProc HandleCursorPos; SoftCursorLockAreaProc SoftCursorLockArea; @@ -183,8 +173,12 @@ extern rfbBool SetNonBlocking(int sock); extern rfbBool StringToIPAddr(const char *str, unsigned int *addr); extern rfbBool SameMachine(int sock); +extern int WaitForMessage(rfbClient* client,unsigned int usecs); /* vncviewer.c */ -rfbClient* rfbGetClient(int* argc,char** argv,int bitsPerSample,int samplesPerPixel,int bytesPerPixel); -rfbBool rfbInitClient(rfbClient* client,const char* vncServerHost,int vncServerPort); +rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,int bytesPerPixel); +rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv); void rfbClientCleanup(rfbClient* client); + +#endif + |