VirtualBox

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

Last change on this file since 91877 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
59void LoaderDefaultFunc(void);
60#endif
61
62#ifndef _xf86cfg_loader_h
63#define _xf86cfg_loader_h
64
65void xf86cfgLoaderInit(void);
66void xf86cfgLoaderInitList(int);
67void xf86cfgLoaderFreeList(void);
68int xf86cfgCheckModule(void);
69
70#ifndef LOADER_PRIVATE
71/* common/xf86Opt.h */
72typedef struct {
73 double freq;
74 int units;
75} OptFrequency;
76
77typedef union {
78 unsigned long num;
79 char * str;
80 double realnum;
81 Bool xbool;
82 OptFrequency freq;
83} ValueUnion;
84
85typedef enum {
86 OPTV_NONE = 0,
87 OPTV_INTEGER,
88 OPTV_STRING, /* a non-empty string */
89 OPTV_ANYSTR, /* Any string, including an empty one */
90 OPTV_REAL,
91 OPTV_BOOLEAN,
92 OPTV_FREQ
93} OptionValueType;
94
95typedef enum {
96 OPTUNITS_HZ = 1,
97 OPTUNITS_KHZ,
98 OPTUNITS_MHZ
99} OptFreqUnits;
100
101typedef struct {
102 int token;
103 const char* name;
104 OptionValueType type;
105 ValueUnion value;
106 Bool found;
107} OptionInfoRec, *OptionInfoPtr;
108
109/* fontmod.h */
110typedef void (*InitFont)(void);
111
112typedef struct {
113 InitFont initFunc;
114 char * name;
115 void *module;
116} FontModule;
117
118extern FontModule *FontModuleList;
119
120typedef struct {
121 int token; /* id of the token */
122 const char * name; /* token name */
123} SymTabRec, *SymTabPtr;
124#endif /* !LOADER_PRIVATE */
125
126typedef enum {
127 NullModule = 0,
128 VideoModule,
129 InputModule,
130 GenericModule,
131 FontRendererModule
132} ModuleType;
133
134typedef struct _xf86cfgModuleOptions {
135 char *name;
136 ModuleType type;
137 OptionInfoPtr option;
138 int vendor;
139 SymTabPtr chipsets;
140 struct _xf86cfgModuleOptions *next;
141} xf86cfgModuleOptions;
142
143extern xf86cfgModuleOptions *module_options;
144
145/* When adding a new code to the LEGEND, also update checkerLegend
146 * in loader.c
147 */
148extern char **checkerLegend;
149extern int *checkerErrors;
150#define CHECKER_OPTIONS_FILE_MISSING 1
151#define CHECKER_OPTION_DESCRIPTION_MISSING 2
152#define CHECKER_LOAD_FAILED 3
153#define CHECKER_RECOGNIZED_AS 4
154#define CHECKER_NO_OPTIONS_AVAILABLE 5
155#define CHECKER_NO_VENDOR_CHIPSET 6
156#define CHECKER_CANNOT_VERIFY_CHIPSET 7
157#define CHECKER_OPTION_UNUSED 8
158#define CHECKER_NOMATCH_CHIPSET_STRINGS 9
159#define CHECKER_CHIPSET_NOT_LISTED 10
160#define CHECKER_CHIPSET_NOT_SUPPORTED 11
161#define CHECKER_CHIPSET_NO_VENDOR 12
162#define CHECKER_NO_CHIPSETS 13
163#define CHECKER_FILE_MODULE_NAME_MISMATCH 14
164
165#define CHECKER_LAST_MESSAGE 14
166
167extern void CheckMsg(int, char*, ...);
168
169#ifndef LOADER_PRIVATE
170int LoaderInitializeOptions(void);
171#endif
172#endif /* USE_MODULES */
173
174#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