First import
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / parser / configProcs.h
blob3c9ce7a8312d88bf6bc960b0fcee9f45488c99e4
1 /*
2 * Copyright (c) 1997-2001 by The XFree86 Project, Inc.
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:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
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.
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).
28 /* Private procs. Public procs are in xf86Parser.h and xf86Optrec.h */
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 /* Layout.c */
49 XF86ConfLayoutPtr xf86parseLayoutSection(void);
50 void xf86printLayoutSection(FILE *cf, XF86ConfLayoutPtr ptr);
51 void xf86freeLayoutList(XF86ConfLayoutPtr ptr);
52 int xf86validateLayout(XF86ConfigPtr p);
53 /* Module.c */
54 XF86ConfModulePtr xf86parseModuleSection(void);
55 void xf86printModuleSection(FILE *cf, XF86ConfModulePtr ptr);
56 XF86LoadPtr xf86addNewLoadDirective(XF86LoadPtr head, char *name, int type, XF86OptionPtr opts);
57 void xf86freeModules(XF86ConfModulePtr ptr);
58 /* Monitor.c */
59 XF86ConfMonitorPtr xf86parseMonitorSection(void);
60 XF86ConfModesPtr xf86parseModesSection(void);
61 void xf86printMonitorSection(FILE *cf, XF86ConfMonitorPtr ptr);
62 void xf86printModesSection(FILE *cf, XF86ConfModesPtr ptr);
63 void xf86freeMonitorList(XF86ConfMonitorPtr ptr);
64 void xf86freeModesList(XF86ConfModesPtr ptr);
65 int xf86validateMonitor(XF86ConfigPtr p, XF86ConfScreenPtr screen);
66 /* Pointer.c */
67 XF86ConfInputPtr xf86parsePointerSection(void);
68 /* Screen.c */
69 XF86ConfScreenPtr xf86parseScreenSection(void);
70 void xf86printScreenSection(FILE *cf, XF86ConfScreenPtr ptr);
71 void xf86freeScreenList(XF86ConfScreenPtr ptr);
72 void xf86freeAdaptorLinkList(XF86ConfAdaptorLinkPtr ptr);
73 void xf86freeDisplayList(XF86ConfDisplayPtr ptr);
74 void xf86freeModeList(XF86ModePtr ptr);
75 int xf86validateScreen(XF86ConfigPtr p);
76 /* Vendor.c */
77 XF86ConfVendorPtr xf86parseVendorSection(void);
78 void xf86freeVendorList(XF86ConfVendorPtr p);
79 void xf86printVendorSection(FILE * cf, XF86ConfVendorPtr ptr);
80 void xf86freeVendorSubList (XF86ConfVendSubPtr ptr);
81 /* Video.c */
82 XF86ConfVideoAdaptorPtr xf86parseVideoAdaptorSection(void);
83 void xf86printVideoAdaptorSection(FILE *cf, XF86ConfVideoAdaptorPtr ptr);
84 void xf86freeVideoAdaptorList(XF86ConfVideoAdaptorPtr ptr);
85 /* scan.c */
86 int xf86getToken(xf86ConfigSymTabRec *tab);
87 int xf86getSubToken(char **comment);
88 int xf86getSubTokenWithTab(char **comment, xf86ConfigSymTabRec *tab);
89 void xf86unGetToken(int token);
90 char *xf86tokenString(void);
91 void xf86parseError(char *format, ...);
92 void xf86validationError(char *format, ...);
93 void xf86setSection(char *section);
94 int xf86getStringToken(xf86ConfigSymTabRec *tab);
95 /* write.c */
96 /* DRI.c */
97 XF86ConfDRIPtr xf86parseDRISection (void);
98 void xf86printDRISection (FILE * cf, XF86ConfDRIPtr ptr);
99 void xf86freeDRI (XF86ConfDRIPtr ptr);
100 /* Extensions.c */
101 XF86ConfExtensionsPtr xf86parseExtensionsSection (void);
102 void xf86printExtensionsSection (FILE * cf, XF86ConfExtensionsPtr ptr);
103 void xf86freeExtensions (XF86ConfExtensionsPtr ptr);
105 #ifdef HAVE_XORG_CONFIG_H
106 #include <xorg-config.h>
107 #endif
109 #ifndef IN_XSERVER
110 /* Externally provided functions */
111 void ErrorF(const char *f, ...);
112 void VErrorF(const char *f, va_list args);
113 #endif