VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/xf86miscproc.h@ 78293

Last change on this file since 78293 was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1/* $XFree86: xc/programs/Xserver/Xext/xf86miscproc.h,v 1.5 2002/11/20 04:04:58 dawes Exp $ */
2
3/* Prototypes for Pointer/Keyboard functions that the DDX must provide */
4
5#ifdef HAVE_DIX_CONFIG_H
6#include <dix-config.h>
7#endif
8
9#ifndef _XF86MISCPROC_H_
10#define _XF86MISCPROC_H_
11
12typedef enum {
13 MISC_MSE_PROTO,
14 MISC_MSE_BAUDRATE,
15 MISC_MSE_SAMPLERATE,
16 MISC_MSE_RESOLUTION,
17 MISC_MSE_BUTTONS,
18 MISC_MSE_EM3BUTTONS,
19 MISC_MSE_EM3TIMEOUT,
20 MISC_MSE_CHORDMIDDLE,
21 MISC_MSE_FLAGS
22} MiscExtMseValType;
23
24typedef enum {
25 MISC_KBD_TYPE,
26 MISC_KBD_RATE,
27 MISC_KBD_DELAY,
28 MISC_KBD_SERVNUMLOCK
29} MiscExtKbdValType;
30
31typedef enum {
32 MISC_RET_SUCCESS,
33 MISC_RET_BADVAL,
34 MISC_RET_BADMSEPROTO,
35 MISC_RET_BADBAUDRATE,
36 MISC_RET_BADFLAGS,
37 MISC_RET_BADCOMBO,
38 MISC_RET_BADKBDTYPE,
39 MISC_RET_NOMODULE
40} MiscExtReturn;
41
42typedef enum {
43 MISC_POINTER,
44 MISC_KEYBOARD
45} MiscExtStructType;
46
47#define MISC_MSEFLAG_CLEARDTR 1
48#define MISC_MSEFLAG_CLEARRTS 2
49#define MISC_MSEFLAG_REOPEN 128
50
51void XFree86MiscExtensionInit(void);
52
53Bool MiscExtGetMouseSettings(pointer *mouse, char **devname);
54int MiscExtGetMouseValue(pointer mouse, MiscExtMseValType valtype);
55Bool MiscExtSetMouseValue(pointer mouse, MiscExtMseValType valtype, int value);
56Bool MiscExtGetKbdSettings(pointer *kbd);
57int MiscExtGetKbdValue(pointer kbd, MiscExtKbdValType valtype);
58Bool MiscExtSetKbdValue(pointer kbd, MiscExtKbdValType valtype, int value);
59int MiscExtSetGrabKeysState(ClientPtr client, int enable);
60pointer MiscExtCreateStruct(MiscExtStructType mse_or_kbd);
61void MiscExtDestroyStruct(pointer structure, MiscExtStructType mse_or_kbd);
62MiscExtReturn MiscExtApply(pointer structure, MiscExtStructType mse_or_kbd);
63Bool MiscExtSetMouseDevice(pointer mouse, char* device);
64Bool MiscExtGetFilePaths(const char **configfile, const char **modulepath,
65 const char **logfile);
66int MiscExtPassMessage(int scrn, const char *msgtype, const char *msgval,
67 char **retstr);
68
69#endif
70
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette