VirtualBox

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

Last change on this file since 78293 was 43272, checked in by vboxsync, 12 years ago

Additions/x11: more original X server headers.

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