VirtualBox

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

最後變更 在這個檔案從61386是 25078,由 vboxsync 提交於 15 年 前

Additions/x11/x11include: exported and set eol-style on new headers

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.9 KB
 
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
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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