From 2cd3c824c6422ae9cfc9dd8fcdbd5601c3edd9c0 Mon Sep 17 00:00:00 2001 From: dscho Date: Fri, 14 Jan 2005 14:35:52 +0000 Subject: return value of rfbProcessEvents tells if an update was pending --- rfb/rfb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rfb') diff --git a/rfb/rfb.h b/rfb/rfb.h index dd61660..9364e8a 100644 --- a/rfb/rfb.h +++ b/rfb/rfb.h @@ -789,10 +789,11 @@ extern void rfbRefuseOnHoldClient(rfbClientPtr cl); /* call one of these two functions to service the vnc clients. usec are the microseconds the select on the fds waits. if you are using the event loop, set this to some value > 0, so the - server doesn't get a high load just by listening. */ + server doesn't get a high load just by listening. + rfbProcessEvents() returns TRUE if an update was pending. */ extern void rfbRunEventLoop(rfbScreenInfoPtr screenInfo, long usec, rfbBool runInBackground); -extern void rfbProcessEvents(rfbScreenInfoPtr screenInfo,long usec); +extern rfbBool rfbProcessEvents(rfbScreenInfoPtr screenInfo,long usec); #endif -- cgit v1.2.3