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

« back to all changes in this revision

Viewing changes to hw/xfree86/dixmods/extmod/xf86miscproc.h

  • 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
/* $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
 
 
12
typedef 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
 
 
24
typedef enum {
 
25
    MISC_KBD_TYPE,
 
26
    MISC_KBD_RATE,
 
27
    MISC_KBD_DELAY,
 
28
    MISC_KBD_SERVNUMLOCK
 
29
} MiscExtKbdValType;
 
30
 
 
31
typedef 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
 
 
42
typedef 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
 
 
51
void XFree86MiscExtensionInit(void);
 
52
 
 
53
Bool MiscExtGetMouseSettings(pointer *mouse, char **devname);
 
54
int  MiscExtGetMouseValue(pointer mouse, MiscExtMseValType valtype);
 
55
Bool MiscExtSetMouseValue(pointer mouse, MiscExtMseValType valtype, int value);
 
56
Bool MiscExtGetKbdSettings(pointer *kbd);
 
57
int  MiscExtGetKbdValue(pointer kbd, MiscExtKbdValType valtype);
 
58
Bool MiscExtSetKbdValue(pointer kbd, MiscExtKbdValType valtype, int value);
 
59
int MiscExtSetGrabKeysState(ClientPtr client, int enable);
 
60
pointer MiscExtCreateStruct(MiscExtStructType mse_or_kbd);
 
61
void    MiscExtDestroyStruct(pointer structure, MiscExtStructType mse_or_kbd);
 
62
MiscExtReturn MiscExtApply(pointer structure, MiscExtStructType mse_or_kbd);
 
63
Bool MiscExtSetMouseDevice(pointer mouse, char* device);
 
64
Bool MiscExtGetFilePaths(const char **configfile, const char **modulepath,
 
65
                         const char **logfile);
 
66
int  MiscExtPassMessage(int scrn, const char *msgtype, const char *msgval,
 
67
                          char **retstr);
 
68
 
 
69
#endif
 
70