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.28; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.28; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.15; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.49; 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

dmxconsole.h File Reference

Go to the source code of this file.

Functions

pointer dmxConsoleCreatePrivate (DeviceIntPtr pDevice)
void dmxConsoleDestroyPrivate (pointer private)
void dmxConsoleInit (DevicePtr pDev)
void dmxConsoleReInit (DevicePtr pDev)
void dmxConsoleMouGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void dmxConsoleKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void dmxConsoleCollectEvents (DevicePtr pDev, dmxMotionProcPtr motion, dmxEnqueueProcPtr enqueue, dmxCheckSpecialProcPtr checkspecial, DMXBlockType block)
int dmxConsoleFunctions (pointer private, DMXFunctionType function)
void dmxConsoleUpdatePosition (pointer private, int x, int y)
void dmxConsoleCapture (DMXInputInfo *dmxInput)
void dmxConsoleUncapture (DMXInputInfo *dmxInput)
void dmxConsoleUpdateInfo (pointer private, DMXUpdateType, WindowPtr pWindow)


Detailed Description

Interface for console device support.
See also:
dmxconsole.c

dmxcommon.c


Function Documentation

void dmxConsoleCapture DMXInputInfo dmxInput  ) 
 

This routine is used to warp the pointer into the console window from anywhere on the screen. It is used when backend and console input are both being taken from the same X display.

void dmxConsoleCollectEvents DevicePtr  pDev,
dmxMotionProcPtr  motion,
dmxEnqueueProcPtr  enqueue,
dmxCheckSpecialProcPtr  checkspecial,
DMXBlockType  block
 

Collect all pending events from the console's display. Plase these events on the server event queue using the motion and enqueue routines. The checkspecial routine is used to check for special keys that need handling. block tells if signals should be blocked when updating the event queue.

pointer dmxConsoleCreatePrivate DeviceIntPtr  pDevice  ) 
 

Create the private area for pDevice.

void dmxConsoleDestroyPrivate pointer  private  ) 
 

If private is non-NULL, free its associated memory.

int dmxConsoleFunctions pointer  private,
DMXFunctionType  function
 

Handle special console-only keys.

void dmxConsoleInit DevicePtr  pDev  ) 
 

Initialized the console device described by pDev.

void dmxConsoleKbdGetInfo DevicePtr  pDev,
DMXLocalInitInfoPtr  info
 

Fill in the info structure for the specified pDev. Only used for keyboard.

void dmxConsoleMouGetInfo DevicePtr  pDev,
DMXLocalInitInfoPtr  info
 

Fill in the info structure for the specified pDev. Only used for pointers.

void dmxConsoleReInit DevicePtr  pDev  ) 
 

Re-initialized the console device described by pDev (after a reconfig).

void dmxConsoleUncapture DMXInputInfo dmxInput  ) 
 

Undo the capture that was done by dmxConsoleCapture.

void dmxConsoleUpdateInfo pointer  private,
DMXUpdateType  type,
WindowPtr  pWindow
 

Whenever the window layout (size, position, stacking order) might be changed, this routine is called with the pWindow that changed and the type of change. This routine is called in a conservative fashion: the actual layout of the windows of the screen might not have had any human-visible changes.

void dmxConsoleUpdatePosition pointer  private,
int  x,
int  y
 

This routine gets called from #dmxCoreMotion for each motion. This allows the console's notion of the cursor postion to change when another input device actually caused the change.


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 30 a38 23

dmxconsole.h File Reference

a39 17

Go to the source code of this file.

d41 16 a56 17

Detailed Description

Interface for console device support.

See also:
dmxconsole.c
dmxcommon.c

Function Documentation

Functions

pointer dmxConsoleCreatePrivate (DeviceIntPtr pDevice)
void dmxConsoleDestroyPrivate (pointer private)
void dmxConsoleInit (DevicePtr pDev)
void dmxConsoleReInit (DevicePtr pDev)
void dmxConsoleMouGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void dmxConsoleKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void dmxConsoleCollectEvents (DevicePtr pDev, dmxMotionProcPtr motion, dmxEnqueueProcPtr enqueue, dmxCheckSpecialProcPtr checkspecial, DMXBlockType block)
int dmxConsoleFunctions (pointer private, DMXFunctionType function)
void dmxConsoleUpdatePosition (pointer private, int x, int y)
void dmxConsoleKbdSetCtrl (pointer private, KeybdCtrl *ctrl)
void dmxConsoleCapture (DMXInputInfo *dmxInput)
void dmxConsoleUncapture (DMXInputInfo *dmxInput)
void dmxConsoleUpdateInfo (pointer private, DMXUpdateType, WindowPtr pWindow)
d58 1 d60 19 a78 14

This routine is used to warp the pointer into the console window from anywhere on the screen. It is used when backend and console input are both being taken from the same X display.

References _myPrivate::captured, _myPrivate::curX, _myPrivate::curY, _DMXInputInfo::devs, DMX_LOCAL_MOUSE, DMX_LOCAL_TYPE_CONSOLE, dmxConsoleUpdateFineCursor(), DMXDBG0, DMXDBG3, dmxDump(), dmxSync(), _DMXLocalInputInfo::extType, _myPrivate::fine, _DMXInputInfo::name, _DMXInputInfo::numDevs, _DMXLocalInputInfo::private, and _DMXLocalInputInfo::type.

Referenced by dmxBackendUpdatePosition().

void dmxConsoleCapture ( DMXInputInfo dmxInput  ) 
d80 4 a83 4 a85 1 a86 5 d88 2 a89 2 a91 1 a92 5 d94 2 a95 2 a98 22
void dmxConsoleCollectEvents ( DevicePtr  pDev, dmxMotionProcPtr  motion,
dmxEnqueueProcPtr  enqueue, dmxCheckSpecialProcPtr  checkspecial,
DMXBlockType  block )

Collect all pending events from the console's display. Plase these events on the server event queue using the motion and enqueue routines. The checkspecial routine is used to check for special keys that need handling. block tells if signals should be blocked when updating the event queue.

References dmxCommonRestoreState(), dmxCommonSaveState(), dmxConsoleDraw(), dmxConsoleMoveAbsolute(), dmxConsoleMoveRelative(), dmxConsoleUncapture(), DMXDBG2, DMXDBG4, DMXDBG5, DMXDBG6, _myPrivate::dmxInput, _myPrivate::height, and _myPrivate::width.

d100 2 a102 11
pointer dmxConsoleCreatePrivate ( DeviceIntPtr  pDevice  ) 

Create the private area for pDevice.

a103 5 a104 20
void dmxConsoleDestroyPrivate ( pointer  private  ) 

If private is non-NULL, free its associated memory.

d106 2 a107 2 d111 2 a112 2 d114 1 d116 27 a142 3
int dmxConsoleFunctions ( pointer  private,
DMXFunctionType  function )
d174 19 a192 12
void dmxConsoleInit ( DevicePtr  pDev  ) 
d194 4 a197 4 a199 1 d201 3 a203 2 d207 2 a208 2 d210 1 d212 27 a238 3
void dmxConsoleKbdGetInfo ( DevicePtr  pDev, DMXLocalInitInfoPtr  info )
d261 4 a264 4 a266 1 d268 3 a270 2 d274 2 a275 2 d277 1 d279 19 a297 9
void dmxConsoleKbdSetCtrl ( pointer  private, KeybdCtrl *  ctrl )
d299 4 a302 4 a304 1 d306 3 a308 2 d312 2 a313 2 d315 1 d317 27 a343 3
void dmxConsoleMouGetInfo ( DevicePtr  pDev, DMXLocalInitInfoPtr  info )
a372 4
void dmxConsoleReInit ( DevicePtr  pDev  ) 

Re-initialized the console device described by pDev (after a reconfig).

a373 16

References dmxConsoleComputeWidthHeight(), and dmxConsoleDraw().

d375 19 a393 14
void dmxConsoleUncapture ( DMXInputInfo dmxInput  ) 
d395 4 a398 4 a400 1 d402 3 a404 2 a406 1 d408 3 a410 2 d414 2 a415 2 d417 1 d419 19 a437 12

Whenever the window layout (size, position, stacking order) might be changed, this routine is called with the pWindow that changed and the type of change. This routine is called in a conservative fashion: the actual layout of the windows of the screen might not have had any human-visible changes.

References dmxConsoleDraw().

void dmxConsoleUpdateInfo ( pointer  private, DMXUpdateType  type, WindowPtr  pWindow )
d439 4 a442 4 a444 1 d446 3 a448 2 a450 1 d452 3 a454 2 d458 2 a459 2 d461 1 d463 14 a476 9

This routine gets called from dmxCoreMotion for each motion. This allows the console's notion of the cursor postion to change when another input device actually caused the change.

References dmxConsoleDraw(), dmxConsoleUpdateFineCursor(), DMXDBG2, DMXDBG6, dmxGeneration, scalex(), and scaley().

@ 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 d51 2 a52 2

Detailed Description

Interface for console device support.

d56 1 a56 1

Function Documentation

d64 3 a66 2 d87 2 a88 2 d93 2 a94 2 d99 2 a100 2 d105 2 a106 2 d111 2 a112 2 d117 1 a117 1 d124 1 a124 1

References dmxCommonRestoreState(), dmxCommonSaveState(), dmxConsoleDraw(), dmxConsoleMoveAbsolute(), dmxConsoleMoveRelative(), dmxConsoleUncapture(), DMXDBG2, DMXDBG4, DMXDBG5, DMXDBG6, _myPrivate::dmxInput, GETDMXINPUTFROMPRIV, GETPRIVFROMPDEV, _myPrivate::height, and _myPrivate::width.

d135 3 a137 2 a144 2

References GETDMXLOCALFROMPDEVICE.

d154 3 a156 2 d173 2 a174 2 d179 2 a180 2 d185 1 a185 1 d192 1 a192 1

References DMX_FUNCTION_FINE, DMX_FUNCTION_GRAB, DMX_FUNCTION_TERMINATE, dmxConsoleClearCursor(), dmxConsoleUpdateFineCursor(), dmxError, dmxLog(), GETONLYPRIVFROMPRIVATE, scalex(), and scaley().

d203 3 a205 2 d213 1 a213 1

References _myPrivate::CloseScreen, CONSOLE_BG_COLOR, CONSOLE_SCREEN_BG_COLOR, CONSOLE_SCREEN_CUR_COLOR, CONSOLE_SCREEN_DET_COLOR, CONSOLE_SCREEN_FG_COLOR, DMX_CONSOLE_NAME, DMX_LOCAL_KEYBOARD, DMX_LOCAL_MOUSE, DMX_RES_CLASS, DMX_RES_NAME, DMX_WRAP, dmxCloseConsoleScreen(), dmxConsoleComputeWidthHeight(), dmxConsoleCreateEmptyCursor(), dmxConsoleDraw(), dmxFatal, _myPrivate::dmxInput, dmxInputs, dmxLog(), dmxScreenPrivateKey, GETPRIVFROMPDEV, _myPrivate::mask, _DMXInputInfo::name, scalex(), and scaley().

d224 2 a225 2 d230 2 a231 2 d236 1 a236 1 d254 2 a255 2 d260 2 a261 2 d266 1 a266 1 d281 2 a282 2 d287 2 a288 2 d293 1 a293 1 d300 1 a300 1

References _DMXLocalInitInfo::buttonClass, dmxCommonMouGetMap(), GETPRIVFROMPDEV, _DMXLocalInitInfo::map, _DMXLocalInitInfo::maxres, _DMXLocalInitInfo::maxval, _DMXLocalInitInfo::minres, _DMXLocalInitInfo::minval, _DMXLocalInitInfo::numButtons, _DMXLocalInitInfo::numRelAxes, _DMXLocalInitInfo::ptrFeedbackClass, _DMXLocalInitInfo::res, and _DMXLocalInitInfo::valuatorClass.

d311 3 a313 2 d321 1 a321 1

References dmxConsoleComputeWidthHeight(), dmxConsoleDraw(), and GETPRIVFROMPDEV.

d332 3 a334 2 d355 2 a356 2 d361 2 a362 2 d367 2 a368 2 d373 1 a373 1 d380 1 a380 1

References dmxConsoleDraw(), and GETONLYPRIVFROMPRIVATE.

d391 2 a392 2 d397 2 a398 2 d403 2 a404 2 d409 1 a409 1 d416 1 a416 1

References dmxConsoleDraw(), dmxConsoleUpdateFineCursor(), DMXDBG2, DMXDBG6, dmxGeneration, GETONLYPRIVFROMPRIVATE, scalex(), and scaley().

a420 4
void dmxConsoleUpdatePosition ( pointer  private, int  x, int  y )
pointer dmxConsoleCreatePrivate (DeviceIntPtr pDevice)
void dmxConsoleDestroyPrivate (pointer private)
void dmxConsoleInit (DevicePtr pDev)
void dmxConsoleReInit (DevicePtr pDev)
void dmxConsoleMouGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void dmxConsoleKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void dmxConsoleCollectEvents (DevicePtr pDev, dmxMotionProcPtr motion, dmxEnqueueProcPtr enqueue, dmxCheckSpecialProcPtr checkspecial, DMXBlockType block)
int dmxConsoleFunctions (pointer private, DMXFunctionType function)
void dmxConsoleUpdatePosition (pointer private, int x, int y)
void dmxConsoleKbdSetCtrl (pointer private, KeybdCtrl *ctrl)
void dmxConsoleCapture (DMXInputInfo *dmxInput)
void dmxConsoleUncapture (DMXInputInfo *dmxInput)
void dmxConsoleUpdateInfo (pointer private, DMXUpdateType, WindowPtr pWindow)
DMXInputInfo dmxInput)DevicePtr  pDev, dmxMotionProcPtr  motion, dmxEnqueueProcPtr  enqueue, dmxCheckSpecialProcPtr  checkspecial, DMXBlockType  block DeviceIntPtr  pDevice)pointer  private)pointer  private, DMXFunctionType  function DevicePtr  pDev)DevicePtr  pDev, DMXLocalInitInfoPtr  info pointer  private, KeybdCtrl *  ctrl DevicePtr  pDev, DMXLocalInitInfoPtr  info DevicePtr  pDev)DMXInputInfo dmxInput)pointer  private, DMXUpdateType  type, WindowPtr  pWindow pointer  private, int  x, int  y