head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.1 netbsd-7-1-2-RELEASE:1.1.1.1 netbsd-7-1-1-RELEASE:1.1.1.1 netbsd-7-1:1.1.1.1.0.30 netbsd-7-1-RELEASE:1.1.1.1 netbsd-7-1-RC2:1.1.1.1 netbsd-7-1-RC1:1.1.1.1 netbsd-7-0-2-RELEASE:1.1.1.1 netbsd-7-0-1-RELEASE:1.1.1.1 netbsd-7-0:1.1.1.1.0.28 netbsd-7-0-RELEASE:1.1.1.1 netbsd-7-0-RC3:1.1.1.1 netbsd-7-0-RC2:1.1.1.1 netbsd-7-0-RC1:1.1.1.1 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.1 netbsd-6-1-5-RELEASE:1.1.1.1 netbsd-7:1.1.1.1.0.26 netbsd-7-base:1.1.1.1 netbsd-6-1-4-RELEASE:1.1.1.1 netbsd-6-0-5-RELEASE:1.1.1.1 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.1 riastradh-drm2:1.1.1.1.0.24 riastradh-drm2-base:1.1.1.1 netbsd-6-1-3-RELEASE:1.1.1.1 netbsd-6-0-4-RELEASE:1.1.1.1 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.1 netbsd-6-0-3-RELEASE:1.1.1.1 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.1 netbsd-6-1:1.1.1.1.0.22 netbsd-6-0-2-RELEASE:1.1.1.1 netbsd-6-1-RELEASE:1.1.1.1 netbsd-6-1-RC4:1.1.1.1 netbsd-6-1-RC3:1.1.1.1 netbsd-6-1-RC2:1.1.1.1 netbsd-6-1-RC1:1.1.1.1 netbsd-5-2:1.1.1.1.0.20 netbsd-6-0-1-RELEASE:1.1.1.1 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.1.0.18 netbsd-6-0-RELEASE:1.1.1.1 netbsd-6-0-RC2:1.1.1.1 netbsd-6-0-RC1:1.1.1.1 netbsd-6:1.1.1.1.0.16 netbsd-6-base:1.1.1.1 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 netbsd-5-1:1.1.1.1.0.14 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 netbsd-5-0-1-RELEASE:1.1.1.1 netbsd-5-0:1.1.1.1.0.12 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.10 netbsd-5-base:1.1.1.1 netbsd-4-0-1-RELEASE:1.1.1.1 netbsd-4-0:1.1.1.1.0.8 netbsd-4-0-RELEASE:1.1.1.1 netbsd-4-0-RC5:1.1.1.1 netbsd-4-0-RC4:1.1.1.1 netbsd-4-0-RC3:1.1.1.1 netbsd-4-0-RC2:1.1.1.1 netbsd-4-0-RC1:1.1.1.1 netbsd-3-1-1-RELEASE:1.1.1.1.2.2 netbsd-3-0-3-RELEASE:1.1.1.1.2.2 abandoned-netbsd-4-base:1.1.1.1 abandoned-netbsd-4:1.1.1.1.0.4 netbsd-3-1:1.1.1.1.2.2.0.4 netbsd-3-1-RELEASE:1.1.1.1.2.2 netbsd-3-0-2-RELEASE:1.1.1.1.2.2 netbsd-3-1-RC4:1.1.1.1.2.2 netbsd-3-1-RC3:1.1.1.1.2.2 netbsd-3-1-RC2:1.1.1.1.2.2 netbsd-3-1-RC1:1.1.1.1.2.2 netbsd-4:1.1.1.1.0.6 netbsd-4-base:1.1.1.1 netbsd-3-0-1-RELEASE:1.1.1.1.2.2 netbsd-3-0:1.1.1.1.2.2.0.2 netbsd-3-0-RELEASE:1.1.1.1.2.2 netbsd-3-0-RC6:1.1.1.1.2.2 netbsd-3-0-RC5:1.1.1.1.2.2 netbsd-3-0-RC4:1.1.1.1.2.2 netbsd-3-0-RC3:1.1.1.1.2.2 netbsd-3-0-RC2:1.1.1.1.2.2 netbsd-3-0-RC1:1.1.1.1.2.2 netbsd-3:1.1.1.1.0.2 v4-5-0:1.1.1.1 XF86:1.1.1; locks; strict; comment @# @; 1.2 date 2015.07.23.08.13.31; author mrg; state dead; branches; next 1.1; commitid 3Fk7MoycOv7VSnuy; 1.1 date 2005.03.18.13.11.00; author tron; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.03.18.13.11.00; author tron; state Exp; branches 1.1.1.1.2.1; next ; 1.1.1.1.2.1 date 2005.03.18.13.11.00; author tron; state dead; branches; next 1.1.1.1.2.2; 1.1.1.1.2.2 date 2005.04.06.20.00.30; author tron; state Exp; branches; next ; desc @@ 1.2 log @remove obsolete XFree86 sources. @ text @ File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxinput.h

Go to the documentation of this file.
00001 /* $XFree86: xc/programs/Xserver/hw/dmx/doc/html/dmxinput_8h-source.html,v 1.1 2004/06/30 20:21:41 martin Exp $ */
00002 /*
00003  * Copyright 2001,2002 Red Hat Inc., Durham, North Carolina.
00004  *
00005  * All Rights Reserved.
00006  *
00007  * Permission is hereby granted, free of charge, to any person obtaining
00008  * a copy of this software and associated documentation files (the
00009  * "Software"), to deal in the Software without restriction, including
00010  * without limitation on the rights to use, copy, modify, merge,
00011  * publish, distribute, sublicense, and/or sell copies of the Software,
00012  * and to permit persons to whom the Software is furnished to do so,
00013  * subject to the following conditions:
00014  *
00015  * The above copyright notice and this permission notice (including the
00016  * next paragraph) shall be included in all copies or substantial
00017  * portions of the Software.
00018  *
00019  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00020  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00021  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00022  * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
00023  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00024  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00025  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00026  * SOFTWARE.
00027  */
00028 
00029 /*
00030  * Authors:
00031  *   David H. Dawes <dawes@@xfree86.org>
00032  *   Kevin E. Martin <kem@@redhat.com>
00033  *   Rickard E. (Rik) Faith <faith@@redhat.com>
00034  *
00035  */
00036 
00048 #ifndef DMXINPUT_H
00049 #define DMXINPUT_H
00050 
00052 #define DMX_MAX_SIGIO_FDS 4
00053 
00054 struct _DMXInputInfo;
00055 
00057 typedef enum {
00058     DMX_UPDATE_REALIZE,         
00059     DMX_UPDATE_UNREALIZE,       
00060     DMX_UPDATE_RESTACK,         
00061     DMX_UPDATE_COPY,            
00062     DMX_UPDATE_RESIZE,          
00063     DMX_UPDATE_REPARENT         
00064 } DMXUpdateType;
00065 
00066 typedef void (*ProcessInputEventsProc)(struct _DMXInputInfo *);
00067 typedef void (*UpdateWindowInfoProc)(struct _DMXInputInfo *,
00068                                      DMXUpdateType, WindowPtr);
00069 
00071 typedef struct _DMXLocalInputInfo *DMXLocalInputInfoPtr;
00072 
00074 typedef enum {
00075     DMX_NOSIGIO = 0,            
00076     DMX_USESIGIO,               
00079     DMX_ACTIVESIGIO             
00080 } dmxSigioState;
00081 
00085 struct _DMXInputInfo {
00086     const char              *name; 
00089     Bool                    freename; 
00090     Bool                    detached; 
00091     int                     inputIdx; 
00092     int                     scrnIdx;  
00093     Bool                    core;  
00096     Bool                    console; 
00100     Bool                    windows; 
00103     ProcessInputEventsProc  processInputEvents;
00104     UpdateWindowInfoProc    updateWindowInfo;
00105 
00106                                 /* Local input information */
00107     dmxSigioState           sigioState;    
00108     int                     sigioFdCount;  
00109     int                     sigioFd[DMX_MAX_SIGIO_FDS];    
00110     Bool                    sigioAdded[DMX_MAX_SIGIO_FDS]; 
00114     int                     vt_switch_pending;
00115 
00117     int                     vt_switched;
00118 
00120     int                     numDevs;
00121 
00126     DMXLocalInputInfoPtr    *devs;
00127 
00128     char                    *keycodes; 
00129     char                    *symbols;  
00130     char                    *geometry; 
00131 };
00132 
00133 extern int                  dmxNumInputs; 
00134 extern DMXInputInfo         *dmxInputs;   
00136 extern void dmxInputInit(DMXInputInfo *dmxInput);
00137 extern void dmxInputReInit(DMXInputInfo *dmxInput);
00138 extern void dmxInputLateReInit(DMXInputInfo *dmxInput);
00139 extern void dmxInputFree(DMXInputInfo *dmxInput);
00140 extern void dmxInputLogDevices(void);
00141 extern void dmxUpdateWindowInfo(DMXUpdateType type, WindowPtr pWindow);
00142 
00143 /* These functions are defined in input/dmxeq.c */
00144 extern Bool dmxeqInitialized(void);
00145 extern void dmxeqEnqueue(xEvent *e);
00146 extern void dmxeqSwitchScreen(ScreenPtr pScreen, Bool fromDIX);
00147 
00148 /* This type is used in input/dmxevents.c.  Also, these functions are
00149  * defined in input/dmxevents.c */
00150 typedef enum {
00151     DMX_NO_BLOCK = 0,
00152     DMX_BLOCK    = 1
00153 } DMXBlockType;
00154 
00155 extern void          dmxGetGlobalPosition(int *x, int *y);
00156 extern DMXScreenInfo *dmxFindFirstScreen(int x, int y);
00157 extern void          dmxCoreMotion(int x, int y, int delta,
00158                                    DMXBlockType block);
00159 
00160 /* Support for dynamic addition of inputs.  This functions is defined in
00161  * config/dmxconfig.c */
00162 extern DMXInputInfo *dmxConfigAddInput(const char *name, int core);
00163 #endif /* DMXINPUT_H */

Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import of XFree86 4.5.0. @ text @@ 1.1.1.1.2.1 log @file dmxinput_8h-source.html was added on branch netbsd-3 on 2005-04-06 20:00:30 +0000 @ text @d1 146 @ 1.1.1.1.2.2 log @Apply patch (requested by jmc in ticket #114): Update XFree86 to version 4.5.0. @ text @a0 146 File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxinput.h

Go to the documentation of this file.
00001 /* $XFree86: xc/programs/Xserver/hw/dmx/doc/html/dmxinput_8h-source.html,v 1.1 2004/06/30 20:21:41 martin Exp $ */
00002 /*
00003  * Copyright 2001,2002 Red Hat Inc., Durham, North Carolina.
00004  *
00005  * All Rights Reserved.
00006  *
00007  * Permission is hereby granted, free of charge, to any person obtaining
00008  * a copy of this software and associated documentation files (the
00009  * "Software"), to deal in the Software without restriction, including
00010  * without limitation on the rights to use, copy, modify, merge,
00011  * publish, distribute, sublicense, and/or sell copies of the Software,
00012  * and to permit persons to whom the Software is furnished to do so,
00013  * subject to the following conditions:
00014  *
00015  * The above copyright notice and this permission notice (including the
00016  * next paragraph) shall be included in all copies or substantial
00017  * portions of the Software.
00018  *
00019  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00020  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00021  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00022  * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
00023  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00024  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00025  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00026  * SOFTWARE.
00027  */
00028 
00029 /*
00030  * Authors:
00031  *   David H. Dawes <dawes@@xfree86.org>
00032  *   Kevin E. Martin <kem@@redhat.com>
00033  *   Rickard E. (Rik) Faith <faith@@redhat.com>
00034  *
00035  */
00036 
00048 #ifndef DMXINPUT_H
00049 #define DMXINPUT_H
00050 
00052 #define DMX_MAX_SIGIO_FDS 4
00053 
00054 struct _DMXInputInfo;
00055 
00057 typedef enum {
00058     DMX_UPDATE_REALIZE,         
00059     DMX_UPDATE_UNREALIZE,       
00060     DMX_UPDATE_RESTACK,         
00061     DMX_UPDATE_COPY,            
00062     DMX_UPDATE_RESIZE,          
00063     DMX_UPDATE_REPARENT         
00064 } DMXUpdateType;
00065 
00066 typedef void (*ProcessInputEventsProc)(struct _DMXInputInfo *);
00067 typedef void (*UpdateWindowInfoProc)(struct _DMXInputInfo *,
00068                                      DMXUpdateType, WindowPtr);
00069 
00071 typedef struct _DMXLocalInputInfo *DMXLocalInputInfoPtr;
00072 
00074 typedef enum {
00075     DMX_NOSIGIO = 0,            
00076     DMX_USESIGIO,               
00079     DMX_ACTIVESIGIO             
00080 } dmxSigioState;
00081 
00085 struct _DMXInputInfo {
00086     const char              *name; 
00089     Bool                    freename; 
00090     Bool                    detached; 
00091     int                     inputIdx; 
00092     int                     scrnIdx;  
00093     Bool                    core;  
00096     Bool                    console; 
00100     Bool                    windows; 
00103     ProcessInputEventsProc  processInputEvents;
00104     UpdateWindowInfoProc    updateWindowInfo;
00105 
00106                                 /* Local input information */
00107     dmxSigioState           sigioState;    
00108     int                     sigioFdCount;  
00109     int                     sigioFd[DMX_MAX_SIGIO_FDS];    
00110     Bool                    sigioAdded[DMX_MAX_SIGIO_FDS]; 
00114     int                     vt_switch_pending;
00115 
00117     int                     vt_switched;
00118 
00120     int                     numDevs;
00121 
00126     DMXLocalInputInfoPtr    *devs;
00127 
00128     char                    *keycodes; 
00129     char                    *symbols;  
00130     char                    *geometry; 
00131 };
00132 
00133 extern int                  dmxNumInputs; 
00134 extern DMXInputInfo         *dmxInputs;   
00136 extern void dmxInputInit(DMXInputInfo *dmxInput);
00137 extern void dmxInputReInit(DMXInputInfo *dmxInput);
00138 extern void dmxInputLateReInit(DMXInputInfo *dmxInput);
00139 extern void dmxInputFree(DMXInputInfo *dmxInput);
00140 extern void dmxInputLogDevices(void);
00141 extern void dmxUpdateWindowInfo(DMXUpdateType type, WindowPtr pWindow);
00142 
00143 /* These functions are defined in input/dmxeq.c */
00144 extern Bool dmxeqInitialized(void);
00145 extern void dmxeqEnqueue(xEvent *e);
00146 extern void dmxeqSwitchScreen(ScreenPtr pScreen, Bool fromDIX);
00147 
00148 /* This type is used in input/dmxevents.c.  Also, these functions are
00149  * defined in input/dmxevents.c */
00150 typedef enum {
00151     DMX_NO_BLOCK = 0,
00152     DMX_BLOCK    = 1
00153 } DMXBlockType;
00154 
00155 extern void          dmxGetGlobalPosition(int *x, int *y);
00156 extern DMXScreenInfo *dmxFindFirstScreen(int x, int y);
00157 extern void          dmxCoreMotion(int x, int y, int delta,
00158                                    DMXBlockType block);
00159 
00160 /* Support for dynamic addition of inputs.  This functions is defined in
00161  * config/dmxconfig.c */
00162 extern DMXInputInfo *dmxConfigAddInput(const char *name, int core);
00163 #endif /* DMXINPUT_H */

Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @