45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (c) 1997-2001 by The XFree86 Project, Inc.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy of this software and associated documentation files (the "Software"),
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to deal in the Software without restriction, including without limitation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and/or sell copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be included in
45e9809aff7304721fddb95654901b32195c9c7avboxsync * all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Except as contained in this notice, the name of the copyright holder(s)
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and author(s) shall not be used in advertising or otherwise to promote
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the sale, use or other dealings in this Software without prior written
45e9809aff7304721fddb95654901b32195c9c7avboxsync * authorization from the copyright holder(s) and author(s).
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Private procs. Public procs are in xf86Parser.h and xf86Optrec.h */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Device.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfDevicePtr xf86parseDeviceSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printDeviceSection(FILE *cf, XF86ConfDevicePtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeDeviceList(XF86ConfDevicePtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint xf86validateDevice(XF86ConfigPtr p);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Files.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfFilesPtr xf86parseFilesSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printFileSection(FILE *cf, XF86ConfFilesPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeFiles(XF86ConfFilesPtr p);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Flags.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfFlagsPtr xf86parseFlagsSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printServerFlagsSection(FILE *f, XF86ConfFlagsPtr flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeFlags(XF86ConfFlagsPtr flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Input.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfInputPtr xf86parseInputSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printInputSection(FILE *f, XF86ConfInputPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeInputList(XF86ConfInputPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint xf86validateInput (XF86ConfigPtr p);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Layout.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfLayoutPtr xf86parseLayoutSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printLayoutSection(FILE *cf, XF86ConfLayoutPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeLayoutList(XF86ConfLayoutPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint xf86validateLayout(XF86ConfigPtr p);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Module.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfModulePtr xf86parseModuleSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printModuleSection(FILE *cf, XF86ConfModulePtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86LoadPtr xf86addNewLoadDirective(XF86LoadPtr head, char *name, int type, XF86OptionPtr opts);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeModules(XF86ConfModulePtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Monitor.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfMonitorPtr xf86parseMonitorSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfModesPtr xf86parseModesSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printMonitorSection(FILE *cf, XF86ConfMonitorPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printModesSection(FILE *cf, XF86ConfModesPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeMonitorList(XF86ConfMonitorPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeModesList(XF86ConfModesPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint xf86validateMonitor(XF86ConfigPtr p, XF86ConfScreenPtr screen);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Pointer.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfInputPtr xf86parsePointerSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Screen.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfScreenPtr xf86parseScreenSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printScreenSection(FILE *cf, XF86ConfScreenPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeScreenList(XF86ConfScreenPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeAdaptorLinkList(XF86ConfAdaptorLinkPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeDisplayList(XF86ConfDisplayPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeModeList(XF86ModePtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint xf86validateScreen(XF86ConfigPtr p);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Vendor.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfVendorPtr xf86parseVendorSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeVendorList(XF86ConfVendorPtr p);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printVendorSection(FILE * cf, XF86ConfVendorPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeVendorSubList (XF86ConfVendSubPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Video.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfVideoAdaptorPtr xf86parseVideoAdaptorSection(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printVideoAdaptorSection(FILE *cf, XF86ConfVideoAdaptorPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeVideoAdaptorList(XF86ConfVideoAdaptorPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* scan.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint xf86getToken(xf86ConfigSymTabRec *tab);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint xf86getSubToken(char **comment);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint xf86getSubTokenWithTab(char **comment, xf86ConfigSymTabRec *tab);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86unGetToken(int token);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncchar *xf86tokenString(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86parseError(char *format, ...);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86validationError(char *format, ...);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86setSection(char *section);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint xf86getStringToken(xf86ConfigSymTabRec *tab);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* write.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* DRI.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfDRIPtr xf86parseDRISection (void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printDRISection (FILE * cf, XF86ConfDRIPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeDRI (XF86ConfDRIPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Extensions.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncXF86ConfExtensionsPtr xf86parseExtensionsSection (void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86printExtensionsSection (FILE * cf, XF86ConfExtensionsPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid xf86freeExtensions (XF86ConfExtensionsPtr ptr);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef HAVE_XORG_CONFIG_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <xorg-config.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef IN_XSERVER
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Externally provided functions */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid ErrorF(const char *f, ...);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid VErrorF(const char *f, va_list args);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif