summaryrefslogtreecommitdiffstats
path: root/example.c
diff options
context:
space:
mode:
authordscho <dscho>2002-02-18 06:43:54 +0000
committerdscho <dscho>2002-02-18 06:43:54 +0000
commit45a4b4a2235adecc925182b27959db62b5954a26 (patch)
treede00aee4fd77b81f768d00416c9eda47d21e22b3 /example.c
parentfbf2c977fe4c70fa2e551ecc0264c4b8184386f2 (diff)
downloadlibtdevnc-45a4b4a2.tar.gz
libtdevnc-45a4b4a2.zip
changes from Tim Jansen: threading issues, new client can be rejected, and more
Diffstat (limited to 'example.c')
-rw-r--r--example.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/example.c b/example.c
index a3cfba9..41165c7 100644
--- a/example.c
+++ b/example.c
@@ -67,10 +67,11 @@ void clientgone(rfbClientPtr cl)
free(cl->clientData);
}
-void newclient(rfbClientPtr cl)
+enum rfbNewClientAction newclient(rfbClientPtr cl)
{
cl->clientData = (void*)calloc(sizeof(ClientData),1);
cl->clientGoneHook = clientgone;
+ return RFB_CLIENT_ACCEPT;
}
/* aux function to draw a line */