From 1f876171067c04fc21fccd5a3051f982fd85c0f0 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 21 Oct 2009 19:07:36 +0000 Subject: Updated to xorg-server-1.7.99.1 --- xorg-server/hw/dmx/doc/html/dmxinputinit_8c.html | 1730 +++++++++++++++++----- 1 file changed, 1358 insertions(+), 372 deletions(-) (limited to 'xorg-server/hw/dmx/doc/html/dmxinputinit_8c.html') diff --git a/xorg-server/hw/dmx/doc/html/dmxinputinit_8c.html b/xorg-server/hw/dmx/doc/html/dmxinputinit_8c.html index 9b06c5221..d2e4953ea 100644 --- a/xorg-server/hw/dmx/doc/html/dmxinputinit_8c.html +++ b/xorg-server/hw/dmx/doc/html/dmxinputinit_8c.html @@ -6,463 +6,1449 @@ - -
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals
-

dmxinputinit.c File Reference

#include "dmxinputinit.h"
-#include "dmxextension.h"
-#include "dmxdummy.h"
-#include "dmxbackend.h"
-#include "dmxconsole.h"
-#include "dmxcommon.h"
-#include "dmxevents.h"
-#include "dmxmotion.h"
-#include "dmxeq.h"
-#include "dmxprop.h"
-#include "config/dmxconfig.h"
-#include "dmxcursor.h"
-#include "lnx-keyboard.h"
-#include "lnx-ms.h"
-#include "lnx-ps2.h"
-#include "usb-keyboard.h"
-#include "usb-mouse.h"
-#include "usb-other.h"
-#include "usb-common.h"
-#include "dmxsigio.h"
-#include "dmxarg.h"
-#include "inputstr.h"
-#include "input.h"
-#include "mipointer.h"
-#include "windowstr.h"
-#include "XI.h"
-#include "XIproto.h"
-#include "exevents.h"
-#include "extinit.h"
- - - - - - - - - - - - - - - - - - - - - - - - - - - + + +
+

dmxinputinit.c File Reference

#include "dmxinputinit.h"
+#include "dmxextension.h"
+#include "dmxdummy.h"
+#include "dmxbackend.h"
+#include "dmxconsole.h"
+#include "dmxcommon.h"
+#include "dmxevents.h"
+#include "dmxmotion.h"
+#include "dmxprop.h"
+#include "config/dmxconfig.h"
+#include "dmxcursor.h"
+#include "lnx-keyboard.h"
+#include "lnx-ms.h"
+#include "lnx-ps2.h"
+#include "usb-keyboard.h"
+#include "usb-mouse.h"
+#include "usb-other.h"
+#include "usb-common.h"
+#include "dmxsigio.h"
+#include "dmxarg.h"
+#include "inputstr.h"
+#include "input.h"
+#include "mipointer.h"
+#include "windowstr.h"
+#include "mi.h"
+#include "xkbsrv.h"
+#include <X11/extensions/XI.h>
+#include <X11/extensions/XIproto.h>
+#include "exevents.h"
+#include "extinit.h"
+

Functions

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

Defines

#define DMX_WINDOW_DEBUG   0
#define LEN   32

Functions

void DDXRingBell (int volume, int pitch, int duration)
static void dmxKbdCtrl (DeviceIntPtr pDevice, KeybdCtrl *ctrl)
static void dmxBell (int volume, DeviceIntPtr pDev, pointer arg, int something)
static void _dmxChangePointerControl (DMXLocalInputInfoPtr dmxLocal, PtrCtrl *ctrl)
void dmxChangePointerControl (DeviceIntPtr pDevice, PtrCtrl *ctrl)
static void _dmxKeyboardKbdCtrlProc (DMXLocalInputInfoPtr dmxLocal, KeybdCtrl *ctrl)
void dmxKeyboardKbdCtrlProc (DeviceIntPtr pDevice, KeybdCtrl *ctrl)
static void _dmxKeyboardBellProc (DMXLocalInputInfoPtr dmxLocal, int percent)
void dmxKeyboardBellProc (int percent, DeviceIntPtr pDevice, pointer ctrl, int unknown)
static void dmxKeyboardFreeNames (XkbComponentNamesPtr names)
static int dmxKeyboardOn (DeviceIntPtr pDevice, DMXLocalInitInfo *info)
static int dmxDeviceOnOff (DeviceIntPtr pDevice, int what)
static void dmxProcessInputEvents (DMXInputInfo *dmxInput)
static void dmxUpdateWindowInformation (DMXInputInfo *dmxInput, DMXUpdateType type, WindowPtr pWindow)
static void dmxCollectAll (DMXInputInfo *dmxInput)
static void dmxBlockHandler (pointer blockData, OSTimePtr pTimeout, pointer pReadMask)
static void dmxSwitchReturn (pointer p)
static void dmxWakeupHandler (pointer blockData, int result, pointer pReadMask)
static char * dmxMakeUniqueDeviceName (DMXLocalInputInfoPtr dmxLocal)
static DeviceIntPtr dmxAddDevice (DMXLocalInputInfoPtr dmxLocal)
static DMXLocalInputInfoPtr dmxLookupLocal (const char *name)
DMXLocalInputInfoPtr dmxInputCopyLocal (DMXInputInfo *dmxInput, DMXLocalInputInfoPtr s)
static void dmxPopulateLocal (DMXInputInfo *dmxInput, dmxArg a)
int dmxInputExtensionErrorHandler (Display *dsp, char *name, char *reason)
static void dmxInputScanForExtensions (DMXInputInfo *dmxInput, int doXI)
void dmxInputReInit (DMXInputInfo *dmxInput)
void dmxInputLateReInit (DMXInputInfo *dmxInput)
void dmxInputInit (DMXInputInfo *dmxInput)
static void dmxInputFreeLocal (DMXLocalInputInfoRec *local)
void dmxInputFree (DMXInputInfo *dmxInput)
void dmxInputLogDevices (void)
int dmxInputDetach (DMXInputInfo *dmxInput)
void dmxInputDetachAll (DMXScreenInfo *dmxScreen)
int dmxInputDetachId (int id)
DMXInputInfodmxInputLocateId (int id)
static int dmxInputAttachNew (DMXInputInfo *dmxInput, int *id)
static int dmxInputAttachOld (DMXInputInfo *dmxInput, int *id)
int dmxInputAttachConsole (const char *name, int isCore, int *id)
int dmxInputAttachBackend (int physicalScreen, int isCore, int *id)

Variables

DMXLocalInputInfoPtr dmxLocalCorePointer
DMXLocalInputInfoPtr dmxLocalCoreKeyboard
static DMXLocalInputInfoRec DMXDummyMou
static DMXLocalInputInfoRec DMXDummyKbd
static DMXLocalInputInfoRec DMXBackendMou
static DMXLocalInputInfoRec DMXBackendKbd
static DMXLocalInputInfoRec DMXConsoleMou
static DMXLocalInputInfoRec DMXConsoleKbd
static DMXLocalInputInfoRec DMXCommonOth
static DMXLocalInputInfoRec DMXLocalDevices []
-

Detailed Description

-This file provides generic input support. Functions here set up input and lead to the calling of low-level device drivers for input.

Function Documentation

-

- - - - -
- +

Detailed Description

+

This file provides generic input support. Functions here set up input and lead to the calling of low-level device drivers for input.

+

Define Documentation

+ +
+
+
- - - - + +
void dmxChangePointerControl DeviceIntPtr  pDevice, #define DMX_WINDOW_DEBUG   0
+ +
+ +
+ + +
+
+ + + +
#define LEN   32
+
+
+ +

Referenced by dmxMakeUniqueDeviceName().

+ +
+
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + - - + + + +
static void _dmxChangePointerControl (DMXLocalInputInfoPtr  dmxLocal,
PtrCtrl *  ctrl 
PtrCtrl *  ctrl) [static]
+
+ +
+ +
+
+ + + + + + + + + + + + - - + + +
static void _dmxKeyboardBellProc (DMXLocalInputInfoPtr  dmxLocal,
int  percent 
) [static]
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + +
static void _dmxKeyboardKbdCtrlProc (DMXLocalInputInfoPtr  dmxLocal,
KeybdCtrl *  ctrl 
) [static]
-
- - - - - -
-   - - -

-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, void DDXRingBell (int  volume,
int  pitch,
DMXLocalInputInfoPtr  sint  duration 
)
+ +
+
+ + +
+
+ + + + + + + + +
static DeviceIntPtr dmxAddDevice (DMXLocalInputInfoPtr  dmxLocal )  [static]
-
- - - - - -
-   - - -

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

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int dmxInputDetach DMXInputInfo dmxInput  ) static void dmxBell (int  volume,
DeviceIntPtr  pDev,
pointer  arg,
int  something 
) [static]
+ +
+ +

Referenced by dmxDeviceOnOff().

+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
static void dmxBlockHandler (pointer  blockData,
OSTimePtr  pTimeout,
pointer  pReadMask 
) [static]
-
- - - - - -
-   - - -

-Detach an input

-

- - - - -
- + +
+ +

References dmxCollectAll(), and dmxInputs.

+ +

Referenced by dmxInputInit().

+ +
+ + +
+
+
+ + + + + + - - - - - - + + + + + + + + + +
void dmxChangePointerControl (DeviceIntPtr  pDevice,
void dmxInputDetachAll DMXScreenInfo dmxScreen  ) 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, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.

+

Referenced by dmxDeviceOnOff().

+ +
+ + +
+
+ + + + + + + + +
static void dmxCollectAll (DMXInputInfo dmxInput )  [static]
-
- - - - - -
-   - - -

-Search for input associated with dmxScreen, and detach.

-

- - - - -
- + + + + +
+
+
+ + + + + + - - - - - - + + + + + + + + + +
static int dmxDeviceOnOff (DeviceIntPtr  pDevice,
int dmxInputDetachId int  id  ) int  what 
) [static]
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
int dmxInputAttachBackend (int  physicalScreen,
int  isCore,
int *  id 
)
-
- - - - - -
-   - - -

-Search for input associated with deviceId, and detach.

-

- - - - -
- + + + + +
+
+
+ + + + + + + + + + + + + + + + + + - - - - - - + + + +
int dmxInputAttachConsole (const char *  name,
int  isCore,
int *  id 
void dmxInputFree DMXInputInfo dmxInput  ) )
+ + + + +
+
+ + + + + + + + + + + + + + + + + +
static int dmxInputAttachNew (DMXInputInfo dmxInput,
int *  id 
) [static]
-
- - - - - -
-   - - -

-Free all of the memory associated with dmxInput

-

- - - - -
- + + + + +
+
+
+ + + + + + - - - - - - + + + + + + + + + +
static int dmxInputAttachOld (DMXInputInfo dmxInput,
void dmxInputInit DMXInputInfo dmxInput  ) int *  id 
) [static]
+ + + + +
+
+ + + + + + + + + + + + + + + + + +
DMXLocalInputInfoPtr dmxInputCopyLocal (DMXInputInfo dmxInput,
DMXLocalInputInfoPtr  s 
)
-
- - - - - -
-   - - -

-Initialize all of the devices described in dmxInput.

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + +
void dmxInputLateReInit DMXInputInfo dmxInput  ) int dmxInputDetach (DMXInputInfo dmxInput ) 
+ + + + +
+
+ + + + + + + + +
void dmxInputDetachAll (DMXScreenInfo dmxScreen ) 
-
- - - - - -
-   - - -

-Re-initialize all the devices described in dmxInput. Called from #dmxReconfig after the cursor is redisplayed.

-

- - - - -
- + +
+

Search for input associated with dmxScreen, and detach.

+ +

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

+ +

Referenced by dmxDetachScreen().

+ +
+ + +
+
+
- - - - - - + + + + + + +
void dmxInputLogDevices void   ) int dmxInputDetachId (int  id ) 
+ +
+

Search for input associated with deviceId, and detach.

+

References dmxInputDetach(), and dmxInputLocateId().

+ +

Referenced by dmxRemoveInput().

+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
int dmxInputExtensionErrorHandler (Display *  dsp,
char *  name,
char *  reason 
)
-
- - - - - -
-   - - -

-Log information about all of the known devices using dmxLog().

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + +
void dmxInputReInit DMXInputInfo dmxInput  ) void dmxInputFree (DMXInputInfo dmxInput ) 
+ + + + +
+
+ + + + + + + + +
static void dmxInputFreeLocal (DMXLocalInputInfoRec local )  [static]
-
- - - - - -
-   - - -

-Re-initialize all the devices described in dmxInput. Called from #dmxReconfig before the cursor is redisplayed.

-

- - - - -
- + + + + +
+
+
- - - - + + + + + + +
void dmxKeyboardBellProc int  percent, void dmxInputInit (DMXInputInfo dmxInput ) 
+ + + + +
+
+ + + + + + + +
void dmxInputLateReInit (DMXInputInfo dmxInput ) 
+
+
+

Re-initialize all the devices described in dmxInput. Called from dmxAdjustCursorBoundaries after the cursor is redisplayed.

+ +

References _DMXInputInfo::devs, _DMXLocalInputInfo::latereinit, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::pDevice.

+ +

Referenced by dmxAdjustCursorBoundaries().

+ +
+
+ +
+
+ + + + + + + - - +
DMXInputInfo* dmxInputLocateId (int  id )  DeviceIntPtr  pDevice,
+
+ +
+ + + +
+
+ + + + + + + - - + +
void dmxInputReInit (DMXInputInfo dmxInput )  pointer  ctrl,
+
+
+

Re-initialize all the devices described in dmxInput. Called from dmxAdjustCursorBoundaries before the cursor is redisplayed.

+ +

References _DMXInputInfo::devs, _DMXInputInfo::numDevs, _DMXLocalInputInfo::pDevice, and _DMXLocalInputInfo::reinit.

+ +

Referenced by dmxAdjustCursorBoundaries().

+ +
+
+ + + +
+
+ + + + + + + - - + + + + + + + +
static void dmxKbdCtrl (DeviceIntPtr  pDevice,
KeybdCtrl *  ctrl 
) [static]
+
+
+

Referenced by dmxDeviceOnOff().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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.

-

- - - - -
- + +
+

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, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.

+ +

Referenced by dmxKeyboardOn().

+ +
+ + +
+
+
+ + + + + + + + +
static void dmxKeyboardFreeNames (XkbComponentNamesPtr  names )  [static]
+ +
+ +

Referenced by dmxKeyboardOn().

+ +
+ + +
+
+ + + + + + + - - - - + + + + + + + +
void dmxKeyboardKbdCtrlProc (DeviceIntPtr  pDevice,
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, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.

+ +

Referenced by dmxKeyboardOn().

+ +
+
+ + + +
+
+ + + + + + + + +
static DMXLocalInputInfoPtr dmxLookupLocal (const char *  name )  [static]
-
- - - - - -
-   - - -

-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 _DMXLocalInputInfo::name.

+ +

Referenced by dmxPopulateLocal().

+ +
+ + +
+
+ + + + + + + + + +
static char* dmxMakeUniqueDeviceName (DMXLocalInputInfoPtr  dmxLocal )  [static]
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + +
static void dmxPopulateLocal (DMXInputInfo dmxInput,
dmxArg  a 
) [static]
+
+ +
+ +
+
+ + + + + + + + + +
static void dmxProcessInputEvents (DMXInputInfo dmxInput )  [static]
+
+ +
+ +
+
+ + + + + + + + + +
static void dmxSwitchReturn (pointer  p )  [static]
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
static void dmxUpdateWindowInformation (DMXInputInfo dmxInput,
DMXUpdateType  type,
WindowPtr  pWindow 
) [static]
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
static void dmxWakeupHandler (pointer  blockData,
int  result,
pointer  pReadMask 
) [static]
+
+ +
+

Variable Documentation

+ +
+
+ + + + +
DMXLocalInputInfoRec DMXBackendKbd [static]
+
+
+Initial value:
 {
+    "backend-kbd", DMX_LOCAL_KEYBOARD, DMX_LOCAL_TYPE_BACKEND,
+    1, 
+    dmxCommonCopyPrivate, NULL,
+    dmxBackendInit, NULL, NULL, dmxBackendKbdGetInfo,
+    dmxCommonKbdOn, dmxCommonKbdOff, NULL,
+    NULL, NULL, NULL,
+    NULL, NULL, NULL, NULL,
+    NULL, dmxCommonKbdCtrl, dmxCommonKbdBell
+}
+
+
+
+ +
+
+ + + + +
DMXLocalInputInfoRec DMXBackendMou [static]
+
+ +
+ +
+
+ + + + +
DMXLocalInputInfoRec DMXCommonOth [static]
+
+
+Initial value: +
+
+ +
+
+ + + + +
DMXLocalInputInfoRec DMXConsoleKbd [static]
+
+
+Initial value:
 {
+    "console-kbd", DMX_LOCAL_KEYBOARD, DMX_LOCAL_TYPE_CONSOLE,
+    1, 
+    dmxCommonCopyPrivate, NULL,
+    dmxConsoleInit, dmxConsoleReInit, NULL, dmxConsoleKbdGetInfo,
+    dmxCommonKbdOn, dmxCommonKbdOff, NULL,
+    NULL, NULL, NULL,
+    NULL, NULL, NULL, NULL,
+    NULL, dmxCommonKbdCtrl, dmxCommonKbdBell
+}
+
+
+
+ +
+
+ + + + +
DMXLocalInputInfoRec DMXConsoleMou [static]
+
+ +
+ +
+
+ + + + +
DMXLocalInputInfoRec DMXDummyKbd [static]
+
+
+Initial value:
 {
+    "dummy-kbd", DMX_LOCAL_KEYBOARD, DMX_LOCAL_TYPE_LOCAL, 1,
+    NULL, NULL, NULL, NULL, NULL, dmxDummyKbdGetInfo
+}
+
+
+
+ +
+
+ + + + +
DMXLocalInputInfoRec DMXDummyMou [static]
+
+
+Initial value:
 {
+    "dummy-mou", DMX_LOCAL_MOUSE, DMX_LOCAL_TYPE_LOCAL, 1,
+    NULL, NULL, NULL, NULL, NULL, dmxDummyMouGetInfo
+}
+
+
+
+ +
+ + +
+ +
+ +
+ +

Referenced by ChangeKeyboardDevice(), and ChangePointerDevice().

+ +
+
+ +
+
+ + + + +
DMXLocalInputInfoRec DMXLocalDevices[] [static]
+
+
+ +
+
+
-- cgit v1.2.3