diff options
author | marha <marha@users.sourceforge.net> | 2012-04-16 09:17:34 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-04-16 09:17:34 +0200 |
commit | d6d3999ccb2cb72d55820770260172eccbbb68d7 (patch) | |
tree | 568ce82dd1a8e2edbbe8cd4cb5ab5b14157f34f6 /xorg-server/hw/kdrive/fake | |
parent | fffd436e9c2ec6f5aa501ee57d0e4ade7293ee60 (diff) | |
download | vcxsrv-d6d3999ccb2cb72d55820770260172eccbbb68d7.tar.gz vcxsrv-d6d3999ccb2cb72d55820770260172eccbbb68d7.tar.bz2 vcxsrv-d6d3999ccb2cb72d55820770260172eccbbb68d7.zip |
libX11 xserver pixman mesa git update 16 Apr 2012
Diffstat (limited to 'xorg-server/hw/kdrive/fake')
-rw-r--r-- | xorg-server/hw/kdrive/fake/fakeinit.c | 86 | ||||
-rw-r--r-- | xorg-server/hw/kdrive/fake/kbd.c | 12 | ||||
-rw-r--r-- | xorg-server/hw/kdrive/fake/mouse.c | 9 | ||||
-rw-r--r-- | xorg-server/hw/kdrive/fake/os.c | 13 |
4 files changed, 59 insertions, 61 deletions
diff --git a/xorg-server/hw/kdrive/fake/fakeinit.c b/xorg-server/hw/kdrive/fake/fakeinit.c index e25093fbf..0aae1ddc1 100644 --- a/xorg-server/hw/kdrive/fake/fakeinit.c +++ b/xorg-server/hw/kdrive/fake/fakeinit.c @@ -26,94 +26,94 @@ #include "fake.h" void -InitCard (char *name) +InitCard(char *name) { - KdCardInfoAdd (&fakeFuncs, 0); + KdCardInfoAdd(&fakeFuncs, 0); } void -InitOutput (ScreenInfo *pScreenInfo, int argc, char **argv) +InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv) { - KdInitOutput (pScreenInfo, argc, argv); + KdInitOutput(pScreenInfo, argc, argv); } void -InitInput (int argc, char **argv) +InitInput(int argc, char **argv) { KdPointerInfo *pi; KdKeyboardInfo *ki; - pi = KdNewPointer (); + pi = KdNewPointer(); if (!pi) return; pi->driver = &FakePointerDriver; KdAddPointer(pi); - ki = KdNewKeyboard (); + ki = KdNewKeyboard(); if (!ki) return; ki->driver = &FakeKeyboardDriver; KdAddKeyboard(ki); - KdInitInput (); + KdInitInput(); } void -CloseInput (void) +CloseInput(void) { - KdCloseInput (); + KdCloseInput(); } #ifdef DDXBEFORERESET void -ddxBeforeReset (void) +ddxBeforeReset(void) { } #endif void -ddxUseMsg (void) +ddxUseMsg(void) { KdUseMsg(); } int -ddxProcessArgument (int argc, char **argv, int i) +ddxProcessArgument(int argc, char **argv, int i) { - return KdProcessArgument (argc, argv, i); + return KdProcessArgument(argc, argv, i); } void -OsVendorInit (void) +OsVendorInit(void) { - KdOsInit (&FakeOsFuncs); + KdOsInit(&FakeOsFuncs); } -KdCardFuncs fakeFuncs = { - fakeCardInit, /* cardinit */ - fakeScreenInit, /* scrinit */ - fakeInitScreen, /* initScreen */ - fakeFinishInitScreen, /* finishInitScreen */ - fakeCreateResources, /* createRes */ - fakePreserve, /* preserve */ - fakeEnable, /* enable */ - fakeDPMS, /* dpms */ - fakeDisable, /* disable */ - fakeRestore, /* restore */ - fakeScreenFini, /* scrfini */ - fakeCardFini, /* cardfini */ - - 0, /* initCursor */ - 0, /* enableCursor */ - 0, /* disableCursor */ - 0, /* finiCursor */ - 0, /* recolorCursor */ - - 0, /* initAccel */ - 0, /* enableAccel */ - 0, /* disableAccel */ - 0, /* finiAccel */ - - fakeGetColors, /* getColors */ - fakePutColors, /* putColors */ +KdCardFuncs fakeFuncs = { + fakeCardInit, /* cardinit */ + fakeScreenInit, /* scrinit */ + fakeInitScreen, /* initScreen */ + fakeFinishInitScreen, /* finishInitScreen */ + fakeCreateResources, /* createRes */ + fakePreserve, /* preserve */ + fakeEnable, /* enable */ + fakeDPMS, /* dpms */ + fakeDisable, /* disable */ + fakeRestore, /* restore */ + fakeScreenFini, /* scrfini */ + fakeCardFini, /* cardfini */ + + 0, /* initCursor */ + 0, /* enableCursor */ + 0, /* disableCursor */ + 0, /* finiCursor */ + 0, /* recolorCursor */ + + 0, /* initAccel */ + 0, /* enableAccel */ + 0, /* disableAccel */ + 0, /* finiAccel */ + + fakeGetColors, /* getColors */ + fakePutColors, /* putColors */ }; diff --git a/xorg-server/hw/kdrive/fake/kbd.c b/xorg-server/hw/kdrive/fake/kbd.c index 769730d64..83a3c66cf 100644 --- a/xorg-server/hw/kdrive/fake/kbd.c +++ b/xorg-server/hw/kdrive/fake/kbd.c @@ -29,7 +29,7 @@ #define FAKE_WIDTH 2 static Status -FakeKeyboardInit (KdKeyboardInfo *ki) +FakeKeyboardInit(KdKeyboardInfo * ki) { ki->minScanCode = 8; ki->maxScanCode = 255; @@ -37,29 +37,29 @@ FakeKeyboardInit (KdKeyboardInfo *ki) } static Status -FakeKeyboardEnable (KdKeyboardInfo *ki) +FakeKeyboardEnable(KdKeyboardInfo * ki) { return Success; } static void -FakeKeyboardDisable (KdKeyboardInfo *ki) +FakeKeyboardDisable(KdKeyboardInfo * ki) { return; } static void -FakeKeyboardFini (KdKeyboardInfo *ki) +FakeKeyboardFini(KdKeyboardInfo * ki) { } static void -FakeKeyboardLeds (KdKeyboardInfo *ki, int leds) +FakeKeyboardLeds(KdKeyboardInfo * ki, int leds) { } static void -FakeKeyboardBell (KdKeyboardInfo *ki, int volume, int frequency, int duration) +FakeKeyboardBell(KdKeyboardInfo * ki, int volume, int frequency, int duration) { } diff --git a/xorg-server/hw/kdrive/fake/mouse.c b/xorg-server/hw/kdrive/fake/mouse.c index 758f6cd22..bb4c25eeb 100644 --- a/xorg-server/hw/kdrive/fake/mouse.c +++ b/xorg-server/hw/kdrive/fake/mouse.c @@ -33,30 +33,29 @@ #include "kdrive.h" static Status -MouseInit (KdPointerInfo *pi) +MouseInit(KdPointerInfo * pi) { return Success; } static Status -MouseEnable (KdPointerInfo *pi) +MouseEnable(KdPointerInfo * pi) { return Success; } static void -MouseDisable (KdPointerInfo *pi) +MouseDisable(KdPointerInfo * pi) { return; } static void -MouseFini (KdPointerInfo *pi) +MouseFini(KdPointerInfo * pi) { return; } - KdPointerDriver FakePointerDriver = { "fake", MouseInit, diff --git a/xorg-server/hw/kdrive/fake/os.c b/xorg-server/hw/kdrive/fake/os.c index 76cd9e728..01bb37bd5 100644 --- a/xorg-server/hw/kdrive/fake/os.c +++ b/xorg-server/hw/kdrive/fake/os.c @@ -26,33 +26,33 @@ #include "fake.h" static int -FakeInit (void) +FakeInit(void) { return 1; } static void -FakeEnable (void) +FakeEnable(void) { } static Bool -FakeSpecialKey (KeySym sym) +FakeSpecialKey(KeySym sym) { return FALSE; } static void -FakeDisable (void) +FakeDisable(void) { } static void -FakeFini (void) +FakeFini(void) { } -KdOsFuncs FakeOsFuncs = { +KdOsFuncs FakeOsFuncs = { FakeInit, FakeEnable, FakeSpecialKey, @@ -60,4 +60,3 @@ KdOsFuncs FakeOsFuncs = { FakeFini, 0 }; - |