From eeb2061dfb03ea11ba028b33037fa0805d22e6a4 Mon Sep 17 00:00:00 2001 From: dscho Date: Wed, 30 Jul 2003 09:42:36 +0000 Subject: API change: Bool, KeySym, Pixel get prefix "rfb"; constants in rfbconfig.h get prefix "LIBVNCSERVER_" --- examples/mac.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'examples/mac.c') diff --git a/examples/mac.c b/examples/mac.c index 009ae08..1730c3d 100644 --- a/examples/mac.c +++ b/examples/mac.c @@ -12,8 +12,8 @@ * It includes the keyboard functions: * void KbdAddEvent(down, keySym, cl) - Bool down; - KeySym keySym; + rfbBool down; + rfbKeySym keySym; rfbClientPtr cl; void KbdReleaseAllKeys() * @@ -37,7 +37,7 @@ /* zlib doesn't like Byte already defined */ #undef Byte #undef TRUE -#undef Bool +#undef rfbBool #include #include @@ -47,17 +47,17 @@ #include #include -Bool rfbNoDimming = FALSE; -Bool rfbNoSleep = TRUE; +rfbBool rfbNoDimming = FALSE; +rfbBool rfbNoSleep = TRUE; static pthread_mutex_t dimming_mutex; static unsigned long dim_time; static unsigned long sleep_time; static mach_port_t master_dev_port; static io_connect_t power_mgt; -static Bool initialized = FALSE; -static Bool dim_time_saved = FALSE; -static Bool sleep_time_saved = FALSE; +static rfbBool initialized = FALSE; +static rfbBool dim_time_saved = FALSE; +static rfbBool sleep_time_saved = FALSE; static int saveDimSettings(void) @@ -213,7 +213,7 @@ void rfbShutdown(rfbClientPtr cl); /* some variables to enable special behaviour */ int startTime = -1, maxSecsToConnect = 0; -Bool disconnectAfterFirstClient = TRUE; +rfbBool disconnectAfterFirstClient = TRUE; /* Where do I get the "official" list of Mac key codes? Ripped these out of a Mac II emulator called Basilisk II @@ -391,7 +391,7 @@ static int keyTable[] = { }; void -KbdAddEvent(Bool down, KeySym keySym, struct _rfbClientRec* cl) +KbdAddEvent(rfbBool down, rfbKeySym keySym, struct _rfbClientRec* cl) { int i; CGKeyCode keyCode = -1; @@ -446,7 +446,7 @@ PtrAddEvent(buttonMask, x, y, cl) (buttonMask & (1 << 7)) ? TRUE : FALSE); } -Bool viewOnly = FALSE, sharedMode = FALSE; +rfbBool viewOnly = FALSE, sharedMode = FALSE; void ScreenInit(int argc, char**argv) @@ -502,7 +502,7 @@ refreshCallback(CGRectCount count, const CGRect *rectArray, void *ignore) break; } } -#ifdef BACKCHANNEL +#ifdef LIBVNCSERVER_BACKCHANNEL else if(message[0]=='b') rfbSendBackChannel(rfbScreen,message+1,strlen(message+1)); #endif @@ -560,7 +560,7 @@ int main(int argc,char *argv[]) send_message(&single_instance,"l"); exit(0); } else -#ifdef BACKCHANNEL +#ifdef LIBVNCSERVER_BACKCHANNEL if(i1022) argv[i+1][1022]=0; -- cgit v1.2.1