1 | /*
|
---|
2 | * Copyright (c) 1997-2001 by The XFree86 Project, Inc.
|
---|
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 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
---|
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
---|
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
20 | * OTHER DEALINGS IN THE SOFTWARE.
|
---|
21 | *
|
---|
22 | * Except as contained in this notice, the name of the copyright holder(s)
|
---|
23 | * and author(s) shall not be used in advertising or otherwise to promote
|
---|
24 | * the sale, use or other dealings in this Software without prior written
|
---|
25 | * authorization from the copyright holder(s) and author(s).
|
---|
26 | */
|
---|
27 |
|
---|
28 | /* Private procs. Public procs are in xf86Parser.h and xf86Optrec.h */
|
---|
29 |
|
---|
30 | /* exported functions are/were used by the X Server, and need to be
|
---|
31 | * made public when installing libxf86config */
|
---|
32 |
|
---|
33 | /* Device.c */
|
---|
34 | XF86ConfDevicePtr xf86parseDeviceSection(void);
|
---|
35 | void xf86printDeviceSection(FILE * cf, XF86ConfDevicePtr ptr);
|
---|
36 | void xf86freeDeviceList(XF86ConfDevicePtr ptr);
|
---|
37 | int xf86validateDevice(XF86ConfigPtr p);
|
---|
38 |
|
---|
39 | /* Files.c */
|
---|
40 | XF86ConfFilesPtr xf86parseFilesSection(void);
|
---|
41 | void xf86printFileSection(FILE * cf, XF86ConfFilesPtr ptr);
|
---|
42 | void xf86freeFiles(XF86ConfFilesPtr p);
|
---|
43 |
|
---|
44 | /* Flags.c */
|
---|
45 | XF86ConfFlagsPtr xf86parseFlagsSection(void);
|
---|
46 | void xf86printServerFlagsSection(FILE * f, XF86ConfFlagsPtr flags);
|
---|
47 | void xf86freeFlags(XF86ConfFlagsPtr flags);
|
---|
48 |
|
---|
49 | /* Input.c */
|
---|
50 | XF86ConfInputPtr xf86parseInputSection(void);
|
---|
51 | void xf86printInputSection(FILE * f, XF86ConfInputPtr ptr);
|
---|
52 | void xf86freeInputList(XF86ConfInputPtr ptr);
|
---|
53 | int xf86validateInput(XF86ConfigPtr p);
|
---|
54 |
|
---|
55 | /* InputClass.c */
|
---|
56 | XF86ConfInputClassPtr xf86parseInputClassSection(void);
|
---|
57 | void xf86printInputClassSection(FILE * f, XF86ConfInputClassPtr ptr);
|
---|
58 | void xf86freeInputClassList(XF86ConfInputClassPtr ptr);
|
---|
59 |
|
---|
60 | /* OutputClass.c */
|
---|
61 | XF86ConfOutputClassPtr xf86parseOutputClassSection(void);
|
---|
62 | void xf86printOutputClassSection(FILE * f, XF86ConfOutputClassPtr ptr);
|
---|
63 | void xf86freeOutputClassList(XF86ConfOutputClassPtr ptr);
|
---|
64 |
|
---|
65 | /* Layout.c */
|
---|
66 | XF86ConfLayoutPtr xf86parseLayoutSection(void);
|
---|
67 | void xf86printLayoutSection(FILE * cf, XF86ConfLayoutPtr ptr);
|
---|
68 | void xf86freeLayoutList(XF86ConfLayoutPtr ptr);
|
---|
69 | int xf86validateLayout(XF86ConfigPtr p);
|
---|
70 |
|
---|
71 | /* Module.c */
|
---|
72 | XF86ConfModulePtr xf86parseModuleSection(void);
|
---|
73 | void xf86printModuleSection(FILE * cf, XF86ConfModulePtr ptr);
|
---|
74 | extern _X_EXPORT XF86LoadPtr xf86addNewLoadDirective(XF86LoadPtr head,
|
---|
75 | const char *name, int type,
|
---|
76 | XF86OptionPtr opts);
|
---|
77 | void xf86freeModules(XF86ConfModulePtr ptr);
|
---|
78 |
|
---|
79 | /* Monitor.c */
|
---|
80 | XF86ConfMonitorPtr xf86parseMonitorSection(void);
|
---|
81 | XF86ConfModesPtr xf86parseModesSection(void);
|
---|
82 | void xf86printMonitorSection(FILE * cf, XF86ConfMonitorPtr ptr);
|
---|
83 | void xf86printModesSection(FILE * cf, XF86ConfModesPtr ptr);
|
---|
84 | extern _X_EXPORT void xf86freeMonitorList(XF86ConfMonitorPtr ptr);
|
---|
85 | void xf86freeModesList(XF86ConfModesPtr ptr);
|
---|
86 | int xf86validateMonitor(XF86ConfigPtr p, XF86ConfScreenPtr screen);
|
---|
87 |
|
---|
88 | /* Pointer.c */
|
---|
89 | XF86ConfInputPtr xf86parsePointerSection(void);
|
---|
90 |
|
---|
91 | /* Screen.c */
|
---|
92 | XF86ConfScreenPtr xf86parseScreenSection(void);
|
---|
93 | void xf86printScreenSection(FILE * cf, XF86ConfScreenPtr ptr);
|
---|
94 | extern _X_EXPORT void xf86freeScreenList(XF86ConfScreenPtr ptr);
|
---|
95 | void xf86freeAdaptorLinkList(XF86ConfAdaptorLinkPtr ptr);
|
---|
96 | void xf86freeDisplayList(XF86ConfDisplayPtr ptr);
|
---|
97 | void xf86freeModeList(XF86ModePtr ptr);
|
---|
98 | int xf86validateScreen(XF86ConfigPtr p);
|
---|
99 |
|
---|
100 | /* Vendor.c */
|
---|
101 | XF86ConfVendorPtr xf86parseVendorSection(void);
|
---|
102 | void xf86freeVendorList(XF86ConfVendorPtr p);
|
---|
103 | void xf86printVendorSection(FILE * cf, XF86ConfVendorPtr ptr);
|
---|
104 | void xf86freeVendorSubList(XF86ConfVendSubPtr ptr);
|
---|
105 |
|
---|
106 | /* Video.c */
|
---|
107 | XF86ConfVideoAdaptorPtr xf86parseVideoAdaptorSection(void);
|
---|
108 | void xf86printVideoAdaptorSection(FILE * cf, XF86ConfVideoAdaptorPtr ptr);
|
---|
109 | void xf86freeVideoAdaptorList(XF86ConfVideoAdaptorPtr ptr);
|
---|
110 |
|
---|
111 | /* scan.c */
|
---|
112 | int xf86getToken(xf86ConfigSymTabRec * tab);
|
---|
113 | int xf86getSubToken(char **comment);
|
---|
114 | int xf86getSubTokenWithTab(char **comment, xf86ConfigSymTabRec * tab);
|
---|
115 | void xf86unGetToken(int token);
|
---|
116 | char *xf86tokenString(void);
|
---|
117 | void
|
---|
118 | xf86parseError(const char *format, ...)
|
---|
119 | _X_ATTRIBUTE_PRINTF(1, 2);
|
---|
120 | void
|
---|
121 | xf86validationError(const char *format, ...)
|
---|
122 | _X_ATTRIBUTE_PRINTF(1, 2);
|
---|
123 | void
|
---|
124 | xf86setSection(const char *section);
|
---|
125 | int
|
---|
126 | xf86getStringToken(xf86ConfigSymTabRec * tab);
|
---|
127 |
|
---|
128 | /* write.c */
|
---|
129 | /* DRI.c */
|
---|
130 | XF86ConfDRIPtr
|
---|
131 | xf86parseDRISection(void);
|
---|
132 | void
|
---|
133 | xf86printDRISection(FILE * cf, XF86ConfDRIPtr ptr);
|
---|
134 | void
|
---|
135 | xf86freeDRI(XF86ConfDRIPtr ptr);
|
---|
136 |
|
---|
137 | /* Extensions.c */
|
---|
138 | XF86ConfExtensionsPtr
|
---|
139 | xf86parseExtensionsSection(void);
|
---|
140 | void
|
---|
141 | xf86printExtensionsSection(FILE * cf, XF86ConfExtensionsPtr ptr);
|
---|
142 | void
|
---|
143 | xf86freeExtensions(XF86ConfExtensionsPtr ptr);
|
---|
144 |
|
---|
145 | #ifdef HAVE_XORG_CONFIG_H
|
---|
146 | #include <xorg-config.h>
|
---|
147 | #endif
|
---|
148 |
|
---|
149 | #ifndef HAVE_XORG_CONFIG_H
|
---|
150 | /* Externally provided functions */
|
---|
151 | void
|
---|
152 | ErrorF(const char *f, ...);
|
---|
153 | void
|
---|
154 | VErrorF(const char *f, va_list args);
|
---|
155 | #endif
|
---|