~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to hw/kdrive/vxworks/vxworks.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
Import upstream version 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Id: vxworks.c,v 1.1 1999/11/24 08:35:24 keithp Exp $
 
3
 *
 
4
 * Copyright � 1999 Network Computing Devices, Inc.  All rights reserved.
 
5
 *
 
6
 * Author: Keith Packard
 
7
 */
 
8
 
 
9
#ifdef HAVE_CONFIG_H
 
10
#include <kdrive-config.h>
 
11
#endif
 
12
#include "kdrive.h"
 
13
#include <X11/keysym.h>
 
14
 
 
15
int
 
16
VxWorksInit (void)
 
17
{
 
18
    return 1;
 
19
}
 
20
 
 
21
void
 
22
VxWorksEnable (void)
 
23
{
 
24
}
 
25
 
 
26
Bool
 
27
VxWorksSpecialKey (KeySym sym)
 
28
{
 
29
    switch (sym) {
 
30
    case XK_Sys_Req:
 
31
        download(1, "setup", 0);
 
32
        return TRUE;
 
33
    case XK_Break:
 
34
        download(1, "launcher", 0);
 
35
        return TRUE;
 
36
    case XK_Delete:
 
37
        dispatchException |= DE_REBOOT;
 
38
        return TRUE;
 
39
    case XK_BackSpace:
 
40
        dispatchException |= DE_RESET;
 
41
        return TRUE;
 
42
    }
 
43
    return FALSE;
 
44
}
 
45
 
 
46
void
 
47
VxWorksDisable (void)
 
48
{
 
49
}
 
50
 
 
51
void
 
52
VxWorksFini (void)
 
53
{
 
54
}
 
55
 
 
56
KdOsFuncs   VxWorksFuncs = {
 
57
    VxWorksInit,
 
58
    VxWorksEnable,
 
59
    VxWorksSpecialKey,
 
60
    VxWorksDisable,
 
61
    VxWorksFini,
 
62
    0
 
63
};
 
64
 
 
65
void
 
66
OsVendorInit (void)
 
67
{
 
68
    KdOsInit (&VxWorksFuncs);
 
69
}