summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/kdrive/vxworks/vxworks.c
blob: b7c9fd431e27d949f9e37abf2428d2327a9ef877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * Id: vxworks.c,v 1.1 1999/11/24 08:35:24 keithp Exp $
 *
 * Copyright © 1999 Network Computing Devices, Inc.  All rights reserved.
 *
 * Author: Keith Packard
 */

#include "kdrive.h"
#include <X11/keysym.h>

int
VxWorksInit (void)
{
    return 1;
}

void
VxWorksEnable (void)
{
}

Bool
VxWorksSpecialKey (KeySym sym)
{
    switch (sym) {
    case XK_Sys_Req:
	download(1, "setup", 0);
	return TRUE;
    case XK_Break:
	download(1, "launcher", 0);
	return TRUE;
    case XK_Delete:
	dispatchException |= DE_REBOOT;
	return TRUE;
    case XK_BackSpace:
	dispatchException |= DE_RESET;
	return TRUE;
    }
    return FALSE;
}

void
VxWorksDisable (void)
{
}

void
VxWorksFini (void)
{
}

KdOsFuncs   VxWorksFuncs = {
    VxWorksInit,
    VxWorksEnable,
    VxWorksSpecialKey,
    VxWorksDisable,
    VxWorksFini,
};

void
OsVendorInit (void)
{
    KdOsInit (&VxWorksFuncs);
}