summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-12 23:48:26 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-12 23:48:26 -0600
commit1d8b3c0548782dcd7286fed6b31c17351c15bb50 (patch)
treecf4d504b2ea8c7441ee6cd86d21b26f6a5efd132 /rfb
parent0ca63a7ab62867cafdede1179aa4809f26ccdb64 (diff)
downloadlibtdevnc-1d8b3c0548782dcd7286fed6b31c17351c15bb50.tar.gz
libtdevnc-1d8b3c0548782dcd7286fed6b31c17351c15bb50.zip
Add hooks to client library to ontain network and authentication status
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfbclient.h4
-rw-r--r--rfb/rfbproto.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h
index aedb4f4..f3700ae 100644
--- a/rfb/rfbclient.h
+++ b/rfb/rfbclient.h
@@ -169,6 +169,8 @@ typedef void (*SoftCursorUnlockScreenProc)(struct _rfbClient* client);
typedef void (*GotFrameBufferUpdateProc)(struct _rfbClient* client, int x, int y, int w, int h);
typedef void (*FinishedFrameBufferUpdateProc)(struct _rfbClient* client);
typedef char* (*GetPasswordProc)(struct _rfbClient* client);
+typedef void (*AuthenticationResultsProc)(struct _rfbClient* client, uint32_t authResult);
+typedef void (*NetworkStatusProc)(struct _rfbClient* client, uint32_t errorCode);
typedef rfbCredential* (*GetCredentialProc)(struct _rfbClient* client, int credentialType);
typedef rfbBool (*MallocFrameBufferProc)(struct _rfbClient* client);
typedef void (*GotXCutTextProc)(struct _rfbClient* client, const char *text, int textlen);
@@ -292,6 +294,8 @@ typedef struct _rfbClient {
GotFrameBufferUpdateProc GotFrameBufferUpdate;
/** the pointer returned by GetPassword will be freed after use! */
GetPasswordProc GetPassword;
+ AuthenticationResultsProc AuthenticationResults;
+ NetworkStatusProc NetworkStatus;
MallocFrameBufferProc MallocFrameBuffer;
GotXCutTextProc GotXCutText;
BellProc Bell;
diff --git a/rfb/rfbproto.h b/rfb/rfbproto.h
index 4baae6d..4d6a1e6 100644
--- a/rfb/rfbproto.h
+++ b/rfb/rfbproto.h
@@ -126,6 +126,14 @@ typedef uint32_t in_addr_t;
#define MAX_ENCODINGS 21
+#define rfbNetworkConnectionSuccess 0
+#define rfbNetworkRFBConnectionSuccess 1
+#define rfbNetworkConnectionClosed 2
+#define rfbNetworkConnectionFailed 3
+#define rfbNetworkNameResolutionFailed 4
+#define rfbNetworkRFBServerNotValid 5
+#define rfbNetworkRFBProtocolFailure 6
+
/*****************************************************************************
*
* Structures used in several messages