diff options
author | rohit_99129 <rohit_99129> | 2006-02-24 08:23:55 +0000 |
---|---|---|
committer | rohit_99129 <rohit_99129> | 2006-02-24 08:23:55 +0000 |
commit | eb08d83d62d0440b946b1b13fcbabb12314dbba9 (patch) | |
tree | d915206b3854fbd3e98571db88f6834d62266a8a /libvncserver/main.c | |
parent | d3599be1b822b2afa3d27c2eca50c08edb9e5622 (diff) | |
download | libtdevnc-eb08d83d62d0440b946b1b13fcbabb12314dbba9.tar.gz libtdevnc-eb08d83d62d0440b946b1b13fcbabb12314dbba9.zip |
Added method to get extension specific client data
Diffstat (limited to 'libvncserver/main.c')
-rw-r--r-- | libvncserver/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c index bf14062..6cf21ea 100644 --- a/libvncserver/main.c +++ b/libvncserver/main.c @@ -194,6 +194,22 @@ rfbBool rfbDisableExtension(rfbClientPtr cl, rfbProtocolExtension* extension) return FALSE; } +void* rfbGetExtensionClientData(rfbClientPtr cl, rfbExtensionData* extension) +{ + rfbExtensionData* data = cl->extensions; + + while(data && data->extension != extension) + data = data->next; + + if(data == NULL) { + rfbLog("Extension is not enabled !\n"); + /* rfbCloseClient(cl); */ + return NULL; + } + + return data->data; +} + /* * Logging */ |