1 #ifndef __WIN_CONFIG_H__
2 #define __WIN_CONFIG_H__
4 *Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved.
6 *Permission is hereby granted, free of charge, to any person obtaining
7 * a copy of this software and associated documentation files (the
8 *"Software"), to deal in the Software without restriction, including
9 *without limitation the rights to use, copy, modify, merge, publish,
10 *distribute, sublicense, and/or sell copies of the Software, and to
11 *permit persons to whom the Software is furnished to do so, subject to
12 *the following conditions:
14 *The above copyright notice and this permission notice shall be
15 *included in all copies or substantial portions of the Software.
17 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 *EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 *MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 *NONINFRINGEMENT. IN NO EVENT SHALL THE XFREE86 PROJECT BE LIABLE FOR
21 *ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
22 *CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 *WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 *Except as contained in this notice, the name of the XFree86 Project
26 *shall not be used in advertising or otherwise to promote the sale, use
27 *or other dealings in this Software without prior written authorization
28 *from the XFree86 Project.
30 * Authors: Alexander Gottwald
34 #ifdef XWIN_XF86CONFIG
35 #include "../xfree86/parser/xf86Parser.h"
39 /* These are taken from hw/xfree86/common/xf86str.h */
43 CARD32 red
, green
, blue
;
50 float red
, green
, blue
;
63 struct _confscreenrec
*myScreenSection
;
70 int screen
; /* For multi-CRTC cards */
79 pointer commonOptions
;
103 typedef struct _confxvportrec
108 confXvPortRec
, *confXvPortPtr
;
111 typedef struct _confxvadaptrec
118 confXvAdaptorRec
, *confXvAdaptorPtr
;
121 typedef struct _confscreenrec
132 confXvAdaptorPtr xvadaptors
;
135 confScreenRec
, *confScreenPtr
;
151 typedef struct _screenlayoutrec
153 confScreenPtr screen
;
157 confScreenPtr bottom
;
166 confScreenPtr refscreen
;
168 screenLayoutRec
, *screenLayoutPtr
;
171 typedef struct _serverlayoutrec
174 screenLayoutPtr screens
;
179 serverLayoutRec
, *serverLayoutPtr
;
189 #ifdef XWIN_XF86CONFIG
194 /* input devices - keyboard */
195 #ifdef XWIN_XF86CONFIG
211 Bool emulate3buttons
;
212 long emulate3timeout
;
214 WinCmdlineRec
, *WinCmdlinePtr
;
217 extern WinCmdlineRec g_cmdline
;
218 #ifdef XWIN_XF86CONFIG
219 extern XF86ConfigPtr g_xf86configptr
;
221 extern serverLayoutRec g_winConfigLayout
;
225 * Function prototypes
228 Bool
winReadConfigfile (void);
229 Bool
winConfigFiles (void);
230 Bool
winConfigOptions (void);
231 Bool
winConfigScreens (void);
232 Bool
winConfigKeyboard (DeviceIntPtr pDevice
);
233 Bool
winConfigMouse (DeviceIntPtr pDevice
);
259 OPTV_STRING
, /* a non-empty string */
260 OPTV_ANYSTR
, /* Any string, including an empty one */
281 OptionValueType type
;
285 OptionInfoRec
, *OptionInfoPtr
;
289 * Function prototypes
292 char *winSetStrOption (pointer optlist
, const char *name
, char *deflt
);
293 int winSetBoolOption (pointer optlist
, const char *name
, int deflt
);
294 int winSetIntOption (pointer optlist
, const char *name
, int deflt
);
295 double winSetRealOption (pointer optlist
, const char *name
, double deflt
);
296 #ifdef XWIN_XF86CONFIG
297 XF86OptionPtr
winFindOption (XF86OptionPtr list
, const char *name
);
298 char *winFindOptionValue (XF86OptionPtr list
, const char *name
);
300 int winNameCompare (const char *s1
, const char *s2
);
301 char *winNormalizeName (const char *s
);
334 Bool emulate3Buttons
;
335 long emulate3Timeout
;
339 winInfoRec
, *winInfoPtr
;
342 extern winInfoRec g_winInfo
;