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 | /* Device.c */
|
---|
31 | XF86ConfDevicePtr xf86parseDeviceSection(void);
|
---|
32 | void xf86printDeviceSection(FILE *cf, XF86ConfDevicePtr ptr);
|
---|
33 | void xf86freeDeviceList(XF86ConfDevicePtr ptr);
|
---|
34 | int xf86validateDevice(XF86ConfigPtr p);
|
---|
35 | /* Files.c */
|
---|
36 | XF86ConfFilesPtr xf86parseFilesSection(void);
|
---|
37 | void xf86printFileSection(FILE *cf, XF86ConfFilesPtr ptr);
|
---|
38 | void xf86freeFiles(XF86ConfFilesPtr p);
|
---|
39 | /* Flags.c */
|
---|
40 | XF86ConfFlagsPtr xf86parseFlagsSection(void);
|
---|
41 | void xf86printServerFlagsSection(FILE *f, XF86ConfFlagsPtr flags);
|
---|
42 | void xf86freeFlags(XF86ConfFlagsPtr flags);
|
---|
43 | /* Input.c */
|
---|
44 | XF86ConfInputPtr xf86parseInputSection(void);
|
---|
45 | void xf86printInputSection(FILE *f, XF86ConfInputPtr ptr);
|
---|
46 | void xf86freeInputList(XF86ConfInputPtr ptr);
|
---|
47 | int xf86validateInput (XF86ConfigPtr p);
|
---|
48 | /* Keyboard.c */
|
---|
49 | XF86ConfInputPtr xf86parseKeyboardSection(void);
|
---|
50 | /* Layout.c */
|
---|
51 | XF86ConfLayoutPtr xf86parseLayoutSection(void);
|
---|
52 | void xf86printLayoutSection(FILE *cf, XF86ConfLayoutPtr ptr);
|
---|
53 | void xf86freeLayoutList(XF86ConfLayoutPtr ptr);
|
---|
54 | void xf86freeAdjacencyList(XF86ConfAdjacencyPtr ptr);
|
---|
55 | void xf86freeInputrefList(XF86ConfInputrefPtr ptr);
|
---|
56 | int xf86validateLayout(XF86ConfigPtr p);
|
---|
57 | /* Module.c */
|
---|
58 | XF86LoadPtr xf86parseModuleSubSection(XF86LoadPtr head, char *name);
|
---|
59 | XF86ConfModulePtr xf86parseModuleSection(void);
|
---|
60 | void xf86printModuleSection(FILE *cf, XF86ConfModulePtr ptr);
|
---|
61 | XF86LoadPtr xf86addNewLoadDirective(XF86LoadPtr head, char *name, int type, XF86OptionPtr opts);
|
---|
62 | void xf86freeModules(XF86ConfModulePtr ptr);
|
---|
63 | /* Monitor.c */
|
---|
64 | XF86ConfModeLinePtr xf86parseModeLine(void);
|
---|
65 | XF86ConfModeLinePtr xf86parseVerboseMode(void);
|
---|
66 | XF86ConfMonitorPtr xf86parseMonitorSection(void);
|
---|
67 | XF86ConfModesPtr xf86parseModesSection(void);
|
---|
68 | void xf86printMonitorSection(FILE *cf, XF86ConfMonitorPtr ptr);
|
---|
69 | void xf86printModesSection(FILE *cf, XF86ConfModesPtr ptr);
|
---|
70 | void xf86freeMonitorList(XF86ConfMonitorPtr ptr);
|
---|
71 | void xf86freeModesList(XF86ConfModesPtr ptr);
|
---|
72 | void xf86freeModeLineList(XF86ConfModeLinePtr ptr);
|
---|
73 | int xf86validateMonitor(XF86ConfigPtr p, XF86ConfScreenPtr screen);
|
---|
74 | /* Pointer.c */
|
---|
75 | XF86ConfInputPtr xf86parsePointerSection(void);
|
---|
76 | /* Screen.c */
|
---|
77 | XF86ConfDisplayPtr xf86parseDisplaySubSection(void);
|
---|
78 | XF86ConfScreenPtr xf86parseScreenSection(void);
|
---|
79 | void xf86printScreenSection(FILE *cf, XF86ConfScreenPtr ptr);
|
---|
80 | void xf86freeScreenList(XF86ConfScreenPtr ptr);
|
---|
81 | void xf86freeAdaptorLinkList(XF86ConfAdaptorLinkPtr ptr);
|
---|
82 | void xf86freeDisplayList(XF86ConfDisplayPtr ptr);
|
---|
83 | void xf86freeModeList(XF86ModePtr ptr);
|
---|
84 | int xf86validateScreen(XF86ConfigPtr p);
|
---|
85 | /* Vendor.c */
|
---|
86 | XF86ConfVendorPtr xf86parseVendorSection(void);
|
---|
87 | XF86ConfVendSubPtr xf86parseVendorSubSection (void);
|
---|
88 | void xf86freeVendorList(XF86ConfVendorPtr p);
|
---|
89 | void xf86printVendorSection(FILE * cf, XF86ConfVendorPtr ptr);
|
---|
90 | void xf86freeVendorSubList (XF86ConfVendSubPtr ptr);
|
---|
91 | /* Video.c */
|
---|
92 | XF86ConfVideoPortPtr xf86parseVideoPortSubSection(void);
|
---|
93 | XF86ConfVideoAdaptorPtr xf86parseVideoAdaptorSection(void);
|
---|
94 | void xf86printVideoAdaptorSection(FILE *cf, XF86ConfVideoAdaptorPtr ptr);
|
---|
95 | void xf86freeVideoAdaptorList(XF86ConfVideoAdaptorPtr ptr);
|
---|
96 | void xf86freeVideoPortList(XF86ConfVideoPortPtr ptr);
|
---|
97 | /* read.c */
|
---|
98 | int xf86validateConfig(XF86ConfigPtr p);
|
---|
99 | /* scan.c */
|
---|
100 | unsigned int xf86strToUL(char *str);
|
---|
101 | int xf86getToken(xf86ConfigSymTabRec *tab);
|
---|
102 | int xf86getSubToken(char **comment);
|
---|
103 | int xf86getSubTokenWithTab(char **comment, xf86ConfigSymTabRec *tab);
|
---|
104 | void xf86unGetToken(int token);
|
---|
105 | char *xf86tokenString(void);
|
---|
106 | void xf86parseError(char *format, ...);
|
---|
107 | void xf86parseWarning(char *format, ...);
|
---|
108 | void xf86validationError(char *format, ...);
|
---|
109 | void xf86setSection(char *section);
|
---|
110 | int xf86getStringToken(xf86ConfigSymTabRec *tab);
|
---|
111 | /* write.c */
|
---|
112 | /* DRI.c */
|
---|
113 | XF86ConfBuffersPtr xf86parseBuffers (void);
|
---|
114 | void xf86freeBuffersList (XF86ConfBuffersPtr ptr);
|
---|
115 | XF86ConfDRIPtr xf86parseDRISection (void);
|
---|
116 | void xf86printDRISection (FILE * cf, XF86ConfDRIPtr ptr);
|
---|
117 | void xf86freeDRI (XF86ConfDRIPtr ptr);
|
---|
118 | /* Extensions.c */
|
---|
119 | XF86ConfExtensionsPtr xf86parseExtensionsSection (void);
|
---|
120 | void xf86printExtensionsSection (FILE * cf, XF86ConfExtensionsPtr ptr);
|
---|
121 | void xf86freeExtensions (XF86ConfExtensionsPtr ptr);
|
---|
122 |
|
---|
123 | #ifdef HAVE_XORG_CONFIG_H
|
---|
124 | #include <xorg-config.h>
|
---|
125 | #endif
|
---|
126 |
|
---|
127 | #ifndef IN_XSERVER
|
---|
128 | /* Externally provided functions */
|
---|
129 | void ErrorF(const char *f, ...);
|
---|
130 | void VErrorF(const char *f, va_list args);
|
---|
131 | #endif
|
---|