VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/loader.h@ 69348

Last change on this file since 69348 was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 4.5 KB
Line 
1/*
2 * Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * CONECTIVA LINUX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
19 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 *
22 * Except as contained in this notice, the name of Conectiva Linux shall
23 * not be used in advertising or otherwise to promote the sale, use or other
24 * dealings in this Software without prior written authorization from
25 * Conectiva Linux.
26 *
27 * Author: Paulo César Pereira de Andrade <[email protected]>
28 *
29 * $XFree86: xc/programs/Xserver/hw/xfree86/xf86cfg/loader.h,v 1.6 2001/07/07 01:43:58 paulo Exp $
30 */
31
32#ifdef USE_MODULES
33#ifndef LOADER_PRIVATE
34#include "config.h"
35#include "stubs.h"
36
37#else
38
39#ifndef XFree86LOADER
40#define XFree86LOADER /* not really */
41#endif
42#define IN_LOADER
43
44#include "xf86.h"
45#include "xf86str.h"
46#include "xf86Opt.h"
47#include "xf86Module.h"
48
49#ifndef XINPUT
50#define XINPUT
51#endif
52#include "xf86Xinput.h"
53
54#include <X11/fonts/fontmod.h>
55#include "loaderProcs.h"
56
57#include <sym.h>
58#include <xf86_ansic.h>
59
60void LoaderDefaultFunc(void);
61#endif
62
63#ifndef _xf86cfg_loader_h
64#define _xf86cfg_loader_h
65
66void xf86cfgLoaderInit(void);
67void xf86cfgLoaderInitList(int);
68void xf86cfgLoaderFreeList(void);
69int xf86cfgCheckModule(void);
70
71#ifndef LOADER_PRIVATE
72/* common/xf86Opt.h */
73typedef struct {
74 double freq;
75 int units;
76} OptFrequency;
77
78typedef union {
79 unsigned long num;
80 char * str;
81 double realnum;
82 Bool xbool;
83 OptFrequency freq;
84} ValueUnion;
85
86typedef enum {
87 OPTV_NONE = 0,
88 OPTV_INTEGER,
89 OPTV_STRING, /* a non-empty string */
90 OPTV_ANYSTR, /* Any string, including an empty one */
91 OPTV_REAL,
92 OPTV_BOOLEAN,
93 OPTV_FREQ
94} OptionValueType;
95
96typedef enum {
97 OPTUNITS_HZ = 1,
98 OPTUNITS_KHZ,
99 OPTUNITS_MHZ
100} OptFreqUnits;
101
102typedef struct {
103 int token;
104 const char* name;
105 OptionValueType type;
106 ValueUnion value;
107 Bool found;
108} OptionInfoRec, *OptionInfoPtr;
109
110/* fontmod.h */
111typedef void (*InitFont)(void);
112
113typedef struct {
114 InitFont initFunc;
115 char * name;
116 void *module;
117} FontModule;
118
119extern FontModule *FontModuleList;
120
121typedef struct {
122 int token; /* id of the token */
123 const char * name; /* token name */
124} SymTabRec, *SymTabPtr;
125#endif /* !LOADER_PRIVATE */
126
127typedef enum {
128 NullModule = 0,
129 VideoModule,
130 InputModule,
131 GenericModule,
132 FontRendererModule
133} ModuleType;
134
135typedef struct _xf86cfgModuleOptions {
136 char *name;
137 ModuleType type;
138 OptionInfoPtr option;
139 int vendor;
140 SymTabPtr chipsets;
141 struct _xf86cfgModuleOptions *next;
142} xf86cfgModuleOptions;
143
144extern xf86cfgModuleOptions *module_options;
145
146/* When adding a new code to the LEGEND, also update checkerLegend
147 * in loader.c
148 */
149extern char **checkerLegend;
150extern int *checkerErrors;
151#define CHECKER_OPTIONS_FILE_MISSING 1
152#define CHECKER_OPTION_DESCRIPTION_MISSING 2
153#define CHECKER_LOAD_FAILED 3
154#define CHECKER_RECOGNIZED_AS 4
155#define CHECKER_NO_OPTIONS_AVAILABLE 5
156#define CHECKER_NO_VENDOR_CHIPSET 6
157#define CHECKER_CANNOT_VERIFY_CHIPSET 7
158#define CHECKER_OPTION_UNUSED 8
159#define CHECKER_NOMATCH_CHIPSET_STRINGS 9
160#define CHECKER_CHIPSET_NOT_LISTED 10
161#define CHECKER_CHIPSET_NOT_SUPPORTED 11
162#define CHECKER_CHIPSET_NO_VENDOR 12
163#define CHECKER_NO_CHIPSETS 13
164#define CHECKER_FILE_MODULE_NAME_MISMATCH 14
165
166#define CHECKER_LAST_MESSAGE 14
167
168extern void CheckMsg(int, char*, ...);
169
170#ifndef LOADER_PRIVATE
171int LoaderInitializeOptions(void);
172#endif
173#endif /* USE_MODULES */
174
175#endif /* _xf86cfg_loader_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette