head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.18; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.50; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @ File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxinputinit.h File Reference

#include "dmx.h"
#include "dmxinput.h"
#include "dmxlog.h"

Go to the source code of this file.

Data Structures

struct  _DMXEventMap
struct  _DMXLocalInitInfo
struct  _DMXLocalInputInfo

Typedefs

typedef _DMXLocalInitInfo DMXLocalInitInfo
typedef _DMXLocalInitInfoDMXLocalInitInfoPtr
typedef _DMXEventMap DMXEventMap
typedef _DMXLocalInputInfo DMXLocalInputInfoRec

Functions

DMXLocalInputInfoPtr dmxInputCopyLocal (DMXInputInfo *dmxInput, DMXLocalInputInfoPtr s)
void dmxChangePointerControl (DeviceIntPtr pDevice, PtrCtrl *ctrl)
void dmxKeyboardKbdCtrlProc (DeviceIntPtr pDevice, KeybdCtrl *ctrl)
void dmxKeyboardBellProc (int percent, DeviceIntPtr pDevice, pointer ctrl, int unknown)
int dmxInputDetach (DMXInputInfo *dmxInput)
void dmxInputDetachAll (DMXScreenInfo *dmxScreen)
int dmxInputDetachId (int id)


Detailed Description

Interface for low-level input support.
See also:
dmxinputinit.c

Typedef Documentation

typedef struct _DMXEventMap DMXEventMap
 

Stores a mapping between the device id on the remote X server and the id on the DMX server

typedef struct _DMXLocalInitInfo DMXLocalInitInfo
 

Stores information from low-level device that is used to initialize the device at the dix level.

typedef struct _DMXLocalInitInfo * DMXLocalInitInfoPtr
 

Stores information from low-level device that is used to initialize the device at the dix level.

typedef struct _DMXLocalInputInfo DMXLocalInputInfoRec
 

This is the device-independent structure used by the low-level input routines. The contents are not exposed to top-level .c files (except dmxextensions.c).

See also:
dmxinput.h

dmxextensions.c


Function Documentation

void dmxChangePointerControl DeviceIntPtr  pDevice,
PtrCtrl *  ctrl
 

Change the pointer control information for the pDevice. If the device sends core events, then also change the control information for all of the pointer devices that send core events.

DMXLocalInputInfoPtr dmxInputCopyLocal DMXInputInfo dmxInput,
DMXLocalInputInfoPtr  s
 

Copy the local input information from s into a new devs slot in dmxInput.

int dmxInputDetach DMXInputInfo dmxInput  ) 
 

Detach an input

void dmxInputDetachAll DMXScreenInfo dmxScreen  ) 
 

Search for input associated with dmxScreen, and detach.

int dmxInputDetachId int  id  ) 
 

Search for input associated with deviceId, and detach.

void dmxKeyboardBellProc int  percent,
DeviceIntPtr  pDevice,
pointer  ctrl,
int  unknown
 

Sound the bell on the device. If the device send core events, then sound the bell on all of the devices that send core events.

void dmxKeyboardKbdCtrlProc DeviceIntPtr  pDevice,
KeybdCtrl *  ctrl
 

Change the keyboard control information for the pDevice. If the device sends core events, then also change the control information for all of the keyboard devices that send core events.


Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of xorg-server-1.4.2 @ text @@ 1.1.1.2 log @import xorg-server 1.9.2. important changes since 1.6.5 include: - built-in symbol visibility, default not export - fixes for various crashes - many fixes for XI2, EXA, dix, render, glx, xkb, EDID, randr, Xv, resource handling, Xext, vfb, xfree86 / vga and composite support. - fixes several memory leaks - many many documentation updates - record extension enabled - no longer looks for XF86Config files @ text @d9 5 a13 132

dmxinputinit.h File Reference

#include "dmx.h"
#include "dmxinput.h"
#include "dmxlog.h"

Go to the source code of this file.

Data Structures

struct  _DMXLocalInitInfo
struct  _DMXEventMap
struct  _DMXLocalInputInfo

Defines

#define DMX_LOCAL_DEFAULT_KEYBOARD   "kbd"
#define DMX_LOCAL_DEFAULT_POINTER   "ps2"
#define DMX_MAX_BUTTONS   256
#define DMX_MOTION_SIZE   256
#define DMX_MAX_VALUATORS   32
#define DMX_MAX_AXES   32
#define DMX_MAX_XINPUT_EVENT_TYPES   100
#define DMX_MAP_ENTRIES   16
#define DMX_MAP_MASK   (DMX_MAP_ENTRIES - 1)

Typedefs

typedef struct _DMXLocalInitInfo DMXLocalInitInfo
typedef struct _DMXLocalInitInfoDMXLocalInitInfoPtr
typedef pointer(* dmxCreatePrivateProcPtr )(DeviceIntPtr)
typedef void(* dmxDestroyPrivateProcPtr )(pointer)
typedef void(* dmxInitProcPtr )(DevicePtr)
typedef void(* dmxReInitProcPtr )(DevicePtr)
typedef void(* dmxLateReInitProcPtr )(DevicePtr)
typedef void(* dmxGetInfoProcPtr )(DevicePtr, DMXLocalInitInfoPtr)
typedef int(* dmxOnProcPtr )(DevicePtr)
typedef void(* dmxOffProcPtr )(DevicePtr)
typedef void(* dmxUpdatePositionProcPtr )(pointer, int x, int y)
typedef void(* dmxVTPreSwitchProcPtr )(pointer)
typedef void(* dmxVTPostSwitchProcPtr )(pointer)
typedef void(* dmxVTSwitchReturnProcPtr )(pointer)
typedef int(* dmxVTSwitchProcPtr )(pointer, int vt, dmxVTSwitchReturnProcPtr, pointer)
typedef void(* dmxMotionProcPtr )(DevicePtr, int *valuators, int firstAxis, int axesCount, DMXMotionType type, DMXBlockType block)
typedef void(* dmxEnqueueProcPtr )(DevicePtr, int type, int detail, KeySym keySym, XEvent *e, DMXBlockType block)
typedef int(* dmxCheckSpecialProcPtr )(DevicePtr, KeySym keySym)
typedef void(* dmxCollectEventsProcPtr )(DevicePtr, dmxMotionProcPtr, dmxEnqueueProcPtr, dmxCheckSpecialProcPtr, DMXBlockType)
typedef void(* dmxProcessInputProcPtr )(pointer)
typedef void(* dmxUpdateInfoProcPtr )(pointer, DMXUpdateType, WindowPtr)
typedef int(* dmxFunctionsProcPtr )(pointer, DMXFunctionType)
typedef void(* dmxKBCtrlProcPtr )(DevicePtr, KeybdCtrl *ctrl)
typedef void(* dmxMCtrlProcPtr )(DevicePtr, PtrCtrl *ctrl)
typedef void(* dmxKBBellProcPtr )(DevicePtr, int percent, int volume, int pitch, int duration)
typedef struct _DMXEventMap DMXEventMap
typedef struct _DMXLocalInputInfo DMXLocalInputInfoRec

Enumerations

enum  DMXFunctionType { DMX_FUNCTION_GRAB, DMX_FUNCTION_TERMINATE, DMX_FUNCTION_FINE }
enum  DMXLocalInputType { DMX_LOCAL_HIGHLEVEL, DMX_LOCAL_KEYBOARD, DMX_LOCAL_MOUSE, DMX_LOCAL_OTHER }
enum  DMXLocalInputExtType { DMX_LOCAL_TYPE_LOCAL, DMX_LOCAL_TYPE_CONSOLE, DMX_LOCAL_TYPE_BACKEND, DMX_LOCAL_TYPE_COMMON }
enum  DMXMotionType { DMX_RELATIVE, DMX_ABSOLUTE, DMX_ABSOLUTE_CONFINED }

Functions

void dmxLocalInitInput (DMXInputInfo *dmxInput)
DMXLocalInputInfoPtr dmxInputCopyLocal (DMXInputInfo *dmxInput, DMXLocalInputInfoPtr s)
void dmxChangePointerControl (DeviceIntPtr pDevice, PtrCtrl *ctrl)
void dmxKeyboardKbdCtrlProc (DeviceIntPtr pDevice, KeybdCtrl *ctrl)
void dmxKeyboardBellProc (int percent, DeviceIntPtr pDevice, pointer ctrl, int unknown)
int dmxInputExtensionErrorHandler (Display *dsp, _Xconst char *name, _Xconst char *reason)
int dmxInputDetach (DMXInputInfo *dmxInput)
void dmxInputDetachAll (DMXScreenInfo *dmxScreen)
int dmxInputDetachId (int id)
DMXInputInfodmxInputLocateId (int id)
int dmxInputAttachConsole (const char *name, int isCore, int *id)
int dmxInputAttachBackend (int physicalScreen, int isCore, int *id)

Variables

DMXLocalInputInfoPtr dmxLocalCorePointer
DMXLocalInputInfoPtr dmxLocalCoreKeyboard

Detailed Description

Interface for low-level input support.

See also:
dmxinputinit.c

Define Documentation

#define DMX_LOCAL_DEFAULT_KEYBOARD   "kbd"
d15 5 a19 12
#define DMX_LOCAL_DEFAULT_POINTER   "ps2"
d21 1 a21 12
#define DMX_MAP_ENTRIES   16
d23 1 a23 12
#define DMX_MAP_MASK   (DMX_MAP_ENTRIES - 1)
d25 2 a26 12
#define DMX_MAX_AXES   32
d28 1 a28 12
#define DMX_MAX_BUTTONS   256
d30 1 a30 1

Referenced by dmxCommonMouGetMap().

d32 1 a32 12
#define DMX_MAX_VALUATORS   32
d34 2 a35 12
#define DMX_MAX_XINPUT_EVENT_TYPES   100
d37 1 a37 12
#define DMX_MOTION_SIZE   256
d39 1 a39 1

Referenced by dmxPointerGetMotionEvents(), and dmxPointerPutMotionEvent().

d41 1 a41 13

Typedef Documentation

typedef int(* dmxCheckSpecialProcPtr)(DevicePtr, KeySym keySym)
d43 1 a43 12
typedef pointer(* dmxCreatePrivateProcPtr)(DeviceIntPtr)
d47 1 a47 12
typedef void(* dmxDestroyPrivateProcPtr)(pointer)
d49 9 a57 6
d59 1 a59 2 d61 19 a79 9
typedef void(* dmxEnqueueProcPtr)(DevicePtr, int type, int detail, KeySym keySym, XEvent *e, DMXBlockType block)
d81 1 a81 2 d83 19 a101 10

Stores a mapping between the device id on the remote X server and the id on the DMX server

typedef struct _DMXEventMap DMXEventMap
d103 1 a103 2 d105 19 a123 9
typedef int(* dmxFunctionsProcPtr)(pointer, DMXFunctionType)
d125 1 a125 2 d127 9 a135 2
d137 12 a148 6
typedef void(* dmxGetInfoProcPtr)(DevicePtr, DMXLocalInitInfoPtr)
d150 4 a153 1 a154 10
typedef void(* dmxInitProcPtr)(DevicePtr)
d156 4 a159 1 a160 10
typedef void(* dmxKBBellProcPtr)(DevicePtr, int percent, int volume, int pitch, int duration)
d162 3 a164 1 a165 3
typedef void(* dmxKBCtrlProcPtr)(DevicePtr, KeybdCtrl *ctrl)
a166 9
d168 19 a186 9
typedef void(* dmxLateReInitProcPtr)(DevicePtr)
d188 4 a191 1 a192 11
typedef struct _DMXLocalInitInfo DMXLocalInitInfo

Stores information from low-level device that is used to initialize the device at the dix level.

d194 4 a197 1 a198 10
typedef struct _DMXLocalInitInfo * DMXLocalInitInfoPtr
d200 3 a202 1 a203 7
typedef struct _DMXLocalInputInfo DMXLocalInputInfoRec

This is the device-independent structure used by the low-level input routines. The contents are not exposed to top-level .c files (except dmxextensions.c).

See also:
dmxinput.h
dmxextensions.c
a204 9
d206 26 a231 11
typedef void(* dmxMCtrlProcPtr)(DevicePtr, PtrCtrl *ctrl)
a232 3
typedef void(* dmxMotionProcPtr)(DevicePtr, int *valuators, int firstAxis, int axesCount, DMXMotionType type, DMXBlockType block)
a233 9
d235 26 a260 11
typedef void(* dmxOffProcPtr)(DevicePtr)
a261 3
typedef int(* dmxOnProcPtr)(DevicePtr)
a262 9
d264 26 a289 11
typedef void(* dmxProcessInputProcPtr)(pointer)
a290 3
typedef void(* dmxReInitProcPtr)(DevicePtr)
a291 9
d293 19 a311 9
typedef void(* dmxUpdateInfoProcPtr)(pointer, DMXUpdateType, WindowPtr)
d313 4 a316 173
typedef void(* dmxUpdatePositionProcPtr)(pointer, int x, int y)
typedef void(* dmxVTPostSwitchProcPtr)(pointer)
typedef void(* dmxVTPreSwitchProcPtr)(pointer)
typedef int(* dmxVTSwitchProcPtr)(pointer, int vt, dmxVTSwitchReturnProcPtr, pointer)
typedef void(* dmxVTSwitchReturnProcPtr)(pointer)

Enumeration Type Documentation

Enumerator:
DMX_FUNCTION_GRAB 
DMX_FUNCTION_TERMINATE 
DMX_FUNCTION_FINE 
Enumerator:
DMX_LOCAL_TYPE_LOCAL 
DMX_LOCAL_TYPE_CONSOLE 
DMX_LOCAL_TYPE_BACKEND 
DMX_LOCAL_TYPE_COMMON 
Enumerator:
DMX_LOCAL_HIGHLEVEL 
DMX_LOCAL_KEYBOARD 
DMX_LOCAL_MOUSE 
DMX_LOCAL_OTHER 
Enumerator:
DMX_RELATIVE 
DMX_ABSOLUTE 
DMX_ABSOLUTE_CONFINED 

Function Documentation

a319 26
void dmxChangePointerControl ( DeviceIntPtr  pDevice,
PtrCtrl *  ctrl )

Change the pointer control information for the pDevice. If the device sends core events, then also change the control information for all of the pointer devices that send core events.

References _dmxChangePointerControl(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.

Referenced by dmxDeviceOnOff().

d321 2 a322 2 a324 1 a325 4 d327 2 a328 22
int dmxInputAttachBackend ( int  physicalScreen,
int  isCore, int *  id 
)
a330 1 a331 5 d333 2 a334 2 d338 2 a339 2 a340 5
int dmxInputAttachConsole ( const char *  name, int  isCore,
int *  id )
void dmxInputDetachAll ( DMXScreenInfo dmxScreen  ) 

Search for input associated with dmxScreen, and detach.

References dmxInputDetach(), dmxInputs, dmxNumInputs, _DMXScreenInfo::index, and _DMXInputInfo::scrnIdx.

Referenced by dmxDetachScreen().

int dmxInputDetachId ( int  id  ) 

Search for input associated with deviceId, and detach.

References dmxInputDetach(), and dmxInputLocateId().

Referenced by dmxRemoveInput().

d363 4 a366 4 a368 1 a369 4 d371 2 a372 48
int dmxInputExtensionErrorHandler ( Display *  dsp,
_Xconst char *  name, _Xconst char *  reason 
)
a374 1 d376 2 a377 2 a378 69
void dmxKeyboardBellProc ( int  percent,
DeviceIntPtr  pDevice, pointer  ctrl,
int  unknown 
)

Sound the bell on the device. If the device send core events, then sound the bell on all of the devices that send core events.

References _dmxKeyboardBellProc(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.

Referenced by dmxKeyboardOn().

void dmxKeyboardKbdCtrlProc ( DeviceIntPtr  pDevice,
KeybdCtrl *  ctrl 
)

Change the keyboard control information for the pDevice. If the device sends core events, then also change the control information for all of the keyboard devices that send core events.

References _dmxKeyboardKbdCtrlProc(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.

Referenced by dmxKeyboardOn().

void dmxLocalInitInput ( DMXInputInfo dmxInput  ) 
a379 10

Variable Documentation

@ 1.1.1.3 log @initial import of xorg-server 1.10.3. highlights include: - fixes xorg bugs 29969, 30367, 30527, 30267, 30260, 29046, 30260, 31548, 28672, 24887, 32115, 21457, 32436, 21827, 28414, 24703, 32803, 16318, 33449, 33324, 33929, 35082, 35209, 36146, 36119 - many additional NULL checks - adjustments related to input ABI 12 - *lots* of dead code removal - vga arbitrator fixes - GL fixes - EDID fixes - conversion to using asprintf() in many places - many fixes from valgrind, compiler warnings see these for more details: http://lists.freedesktop.org/archives/xorg-announce/2011-February/001612.html http://lists.freedesktop.org/archives/xorg-announce/2011-April/001646.html http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html http://lists.freedesktop.org/archives/xorg-announce/2011-July/001710.html @ text @d9 3 a11 2