diff options
author | jsorg71 <jsorg71> | 2006-08-20 05:13:30 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-08-20 05:13:30 +0000 |
commit | 823547cfd4156b64f6494610c17faac8b5f2eeec (patch) | |
tree | dbec9fc638f5813b0c2a477119e8bff58e5d927e /Xserver/hw | |
parent | 10d8a61520fc41c09428afde390e89957c63a67d (diff) | |
download | xrdp-proprietary-823547cfd4156b64f6494610c17faac8b5f2eeec.tar.gz xrdp-proprietary-823547cfd4156b64f6494610c17faac8b5f2eeec.zip |
compile with xfree86 4.5
Diffstat (limited to 'Xserver/hw')
-rw-r--r-- | Xserver/hw/rdp/rdpmain.c | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/Xserver/hw/rdp/rdpmain.c b/Xserver/hw/rdp/rdpmain.c index b3a0491f..4e770f64 100644 --- a/Xserver/hw/rdp/rdpmain.c +++ b/Xserver/hw/rdp/rdpmain.c @@ -116,20 +116,31 @@ rdpWakeupHandler(int i, pointer blockData, unsigned long err, /*ErrorF("rdpWakeupHandler %d\n", err);*/ e = (int)err; - if (e < 0) + if (!(e < 0)) { - g_pScreen->WakeupHandler = g_rdpScreen.WakeupHandler; - g_pScreen->WakeupHandler(i, blockData, err, pReadmask); - g_pScreen->WakeupHandler = rdpWakeupHandler; - return; + /*rdpup_check();*/ } - rdpup_check(); g_pScreen->WakeupHandler = g_rdpScreen.WakeupHandler; g_pScreen->WakeupHandler(i, blockData, err, pReadmask); g_pScreen->WakeupHandler = rdpWakeupHandler; } /******************************************************************************/ +static void +rdpBlockHandler1(pointer blockData, OSTimePtr pTimeout, pointer pReadmask) +{ + /*ErrorF("hi rdpBlockHandler1\n");*/ +} + +/******************************************************************************/ +static void +rdpWakeupHandler1(pointer blockData, int result, pointer pReadmask) +{ + /*ErrorF("hi rdpWakeupHandler1\n");*/ + rdpup_check(); +} + +/******************************************************************************/ /* returns boolean, true if everything is ok */ static Bool rdpScreenInit(int index, ScreenPtr pScreen, int argc, char** argv) @@ -310,6 +321,10 @@ rdpScreenInit(int index, ScreenPtr pScreen, int argc, char** argv) { ret = rdpup_init(); } + if (ret) + { + RegisterBlockAndWakeupHandlers(rdpBlockHandler1, rdpWakeupHandler1, NULL); + } return ret; } @@ -370,6 +385,7 @@ OsVendorInit(void) /*ErrorF("hi OsVendorInit\n");*/ } +#if 0 /******************************************************************************/ CARD32 GetTimeInMillis(void) @@ -380,6 +396,7 @@ GetTimeInMillis(void) X_GETTIMEOFDAY(&tp); return (tp.tv_sec * 1000) + (tp.tv_usec / 1000); } +#endif /* Common pixmap formats */ static PixmapFormatRec formats[MAXFORMATS] = @@ -526,3 +543,9 @@ ddxUseMsg(void) ErrorF("\n"); exit(1); } + +/******************************************************************************/ +void +OsVendorPreInit(void) +{ +} |