1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/parser/configProcs.h,v 1.17 2003/08/24 17:37:08 dawes Exp $ */
|
---|
2 | /*
|
---|
3 | * Copyright (c) 1997-2001 by The XFree86 Project, Inc.
|
---|
4 | *
|
---|
5 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
6 | * copy of this software and associated documentation files (the "Software"),
|
---|
7 | * to deal in the Software without restriction, including without limitation
|
---|
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
9 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
10 | * Software is furnished to do so, subject to the following conditions:
|
---|
11 | *
|
---|
12 | * The above copyright notice and this permission notice shall be included in
|
---|
13 | * all copies or substantial portions of the Software.
|
---|
14 | *
|
---|
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
18 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
---|
19 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
---|
20 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
21 | * OTHER DEALINGS IN THE SOFTWARE.
|
---|
22 | *
|
---|
23 | * Except as contained in this notice, the name of the copyright holder(s)
|
---|
24 | * and author(s) shall not be used in advertising or otherwise to promote
|
---|
25 | * the sale, use or other dealings in this Software without prior written
|
---|
26 | * authorization from the copyright holder(s) and author(s).
|
---|
27 | */
|
---|
28 |
|
---|
29 | /* Private procs. Public procs are in xf86Parser.h and xf86Optrec.h */
|
---|
30 |
|
---|
31 | /* Device.c */
|
---|
32 | XF86ConfDevicePtr xf86parseDeviceSection(void);
|
---|
33 | void xf86printDeviceSection(FILE *cf, XF86ConfDevicePtr ptr);
|
---|
34 | void xf86freeDeviceList(XF86ConfDevicePtr ptr);
|
---|
35 | int xf86validateDevice(XF86ConfigPtr p);
|
---|
36 | /* Files.c */
|
---|
37 | XF86ConfFilesPtr xf86parseFilesSection(void);
|
---|
38 | void xf86printFileSection(FILE *cf, XF86ConfFilesPtr ptr);
|
---|
39 | void xf86freeFiles(XF86ConfFilesPtr p);
|
---|
40 | /* Flags.c */
|
---|
41 | XF86ConfFlagsPtr xf86parseFlagsSection(void);
|
---|
42 | void xf86printServerFlagsSection(FILE *f, XF86ConfFlagsPtr flags);
|
---|
43 | void xf86freeFlags(XF86ConfFlagsPtr flags);
|
---|
44 | /* Input.c */
|
---|
45 | XF86ConfInputPtr xf86parseInputSection(void);
|
---|
46 | void xf86printInputSection(FILE *f, XF86ConfInputPtr ptr);
|
---|
47 | void xf86freeInputList(XF86ConfInputPtr ptr);
|
---|
48 | int xf86validateInput (XF86ConfigPtr p);
|
---|
49 | /* Keyboard.c */
|
---|
50 | XF86ConfInputPtr xf86parseKeyboardSection(void);
|
---|
51 | /* Layout.c */
|
---|
52 | XF86ConfLayoutPtr xf86parseLayoutSection(void);
|
---|
53 | void xf86printLayoutSection(FILE *cf, XF86ConfLayoutPtr ptr);
|
---|
54 | void xf86freeLayoutList(XF86ConfLayoutPtr ptr);
|
---|
55 | void xf86freeAdjacencyList(XF86ConfAdjacencyPtr ptr);
|
---|
56 | void xf86freeInputrefList(XF86ConfInputrefPtr ptr);
|
---|
57 | int xf86validateLayout(XF86ConfigPtr p);
|
---|
58 | /* Module.c */
|
---|
59 | XF86LoadPtr xf86parseModuleSubSection(XF86LoadPtr head, char *name);
|
---|
60 | XF86ConfModulePtr xf86parseModuleSection(void);
|
---|
61 | void xf86printModuleSection(FILE *cf, XF86ConfModulePtr ptr);
|
---|
62 | XF86LoadPtr xf86addNewLoadDirective(XF86LoadPtr head, char *name, int type, XF86OptionPtr opts);
|
---|
63 | void xf86freeModules(XF86ConfModulePtr ptr);
|
---|
64 | /* Monitor.c */
|
---|
65 | XF86ConfModeLinePtr xf86parseModeLine(void);
|
---|
66 | XF86ConfModeLinePtr xf86parseVerboseMode(void);
|
---|
67 | XF86ConfMonitorPtr xf86parseMonitorSection(void);
|
---|
68 | XF86ConfModesPtr xf86parseModesSection(void);
|
---|
69 | void xf86printMonitorSection(FILE *cf, XF86ConfMonitorPtr ptr);
|
---|
70 | void xf86printModesSection(FILE *cf, XF86ConfModesPtr ptr);
|
---|
71 | void xf86freeMonitorList(XF86ConfMonitorPtr ptr);
|
---|
72 | void xf86freeModesList(XF86ConfModesPtr ptr);
|
---|
73 | void xf86freeModeLineList(XF86ConfModeLinePtr ptr);
|
---|
74 | int xf86validateMonitor(XF86ConfigPtr p, XF86ConfScreenPtr screen);
|
---|
75 | /* Pointer.c */
|
---|
76 | XF86ConfInputPtr xf86parsePointerSection(void);
|
---|
77 | /* Screen.c */
|
---|
78 | XF86ConfDisplayPtr xf86parseDisplaySubSection(void);
|
---|
79 | XF86ConfScreenPtr xf86parseScreenSection(void);
|
---|
80 | void xf86printScreenSection(FILE *cf, XF86ConfScreenPtr ptr);
|
---|
81 | void xf86freeScreenList(XF86ConfScreenPtr ptr);
|
---|
82 | void xf86freeAdaptorLinkList(XF86ConfAdaptorLinkPtr ptr);
|
---|
83 | void xf86freeDisplayList(XF86ConfDisplayPtr ptr);
|
---|
84 | void xf86freeModeList(XF86ModePtr ptr);
|
---|
85 | int xf86validateScreen(XF86ConfigPtr p);
|
---|
86 | /* Vendor.c */
|
---|
87 | XF86ConfVendorPtr xf86parseVendorSection(void);
|
---|
88 | XF86ConfVendSubPtr xf86parseVendorSubSection (void);
|
---|
89 | void xf86freeVendorList(XF86ConfVendorPtr p);
|
---|
90 | void xf86printVendorSection(FILE * cf, XF86ConfVendorPtr ptr);
|
---|
91 | void xf86freeVendorSubList (XF86ConfVendSubPtr ptr);
|
---|
92 | /* Video.c */
|
---|
93 | XF86ConfVideoPortPtr xf86parseVideoPortSubSection(void);
|
---|
94 | XF86ConfVideoAdaptorPtr xf86parseVideoAdaptorSection(void);
|
---|
95 | void xf86printVideoAdaptorSection(FILE *cf, XF86ConfVideoAdaptorPtr ptr);
|
---|
96 | void xf86freeVideoAdaptorList(XF86ConfVideoAdaptorPtr ptr);
|
---|
97 | void xf86freeVideoPortList(XF86ConfVideoPortPtr ptr);
|
---|
98 | /* read.c */
|
---|
99 | int xf86validateConfig(XF86ConfigPtr p);
|
---|
100 | /* scan.c */
|
---|
101 | unsigned int xf86strToUL(char *str);
|
---|
102 | int xf86getToken(xf86ConfigSymTabRec *tab);
|
---|
103 | int xf86getSubToken(char **comment);
|
---|
104 | int xf86getSubTokenWithTab(char **comment, xf86ConfigSymTabRec *tab);
|
---|
105 | void xf86unGetToken(int token);
|
---|
106 | char *xf86tokenString(void);
|
---|
107 | void xf86parseError(char *format, ...);
|
---|
108 | void xf86parseWarning(char *format, ...);
|
---|
109 | void xf86validationError(char *format, ...);
|
---|
110 | void xf86setSection(char *section);
|
---|
111 | int xf86getStringToken(xf86ConfigSymTabRec *tab);
|
---|
112 | /* write.c */
|
---|
113 | /* DRI.c */
|
---|
114 | XF86ConfBuffersPtr xf86parseBuffers (void);
|
---|
115 | void xf86freeBuffersList (XF86ConfBuffersPtr ptr);
|
---|
116 | XF86ConfDRIPtr xf86parseDRISection (void);
|
---|
117 | void xf86printDRISection (FILE * cf, XF86ConfDRIPtr ptr);
|
---|
118 | void xf86freeDRI (XF86ConfDRIPtr ptr);
|
---|
119 | /* Extensions.c */
|
---|
120 | XF86ConfExtensionsPtr xf86parseExtensionsSection (void);
|
---|
121 | void xf86printExtensionsSection (FILE * cf, XF86ConfExtensionsPtr ptr);
|
---|
122 | void xf86freeExtensions (XF86ConfExtensionsPtr ptr);
|
---|
123 |
|
---|
124 | #ifdef HAVE_XORG_CONFIG_H
|
---|
125 | #include <xorg-config.h>
|
---|
126 | #endif
|
---|
127 |
|
---|
128 | #ifndef IN_XSERVER
|
---|
129 | /* Externally provided functions */
|
---|
130 | void ErrorF(const char *f, ...);
|
---|
131 | void VErrorF(const char *f, va_list args);
|
---|
132 | #endif
|
---|