1117N/A/*
1117N/A * Copyright (c) 1997-2001 by The XFree86 Project, Inc.
1117N/A *
1117N/A * Permission is hereby granted, free of charge, to any person obtaining a
1117N/A * copy of this software and associated documentation files (the "Software"),
1117N/A * to deal in the Software without restriction, including without limitation
1117N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1117N/A * and/or sell copies of the Software, and to permit persons to whom the
1117N/A * Software is furnished to do so, subject to the following conditions:
1117N/A *
1117N/A * The above copyright notice and this permission notice shall be included in
1117N/A * all copies or substantial portions of the Software.
1117N/A *
1117N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1117N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1117N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1117N/A * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
1117N/A * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1117N/A * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1117N/A * OTHER DEALINGS IN THE SOFTWARE.
1117N/A *
1117N/A * Except as contained in this notice, the name of the copyright holder(s)
1117N/A * and author(s) shall not be used in advertising or otherwise to promote
1117N/A * the sale, use or other dealings in this Software without prior written
1117N/A * authorization from the copyright holder(s) and author(s).
1117N/A */
1117N/A
1117N/A
1117N/A#ifndef _CONFIGPROCS_H_
1117N/A#define _CONFIGPROCS_H_
1117N/A
1117N/A
1117N/A/* Private procs. Public procs are in xf86Parser.h and xf86Optrec.h */
1117N/A
1117N/A
1117N/A#include <stdio.h> /* FILE */
1117N/A
1117N/A#include "xf86Parser.h"
1117N/A
1117N/A
1117N/A/* Device.c */
1117N/AXF86ConfDevicePtr xf86parseDeviceSection(void);
1117N/Avoid xf86printDeviceSectionSection(
1117N/A FILE *cf, XF86ConfDevicePtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printDeviceSectionIdentifier(
1117N/A FILE *cf, XF86ConfDevicePtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printDeviceSectionDriver(
1117N/A FILE *cf, XF86ConfDevicePtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printDeviceSectionVendorName(
1117N/A FILE *cf, XF86ConfDevicePtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printDeviceSectionBoardName(
1117N/A FILE *cf, XF86ConfDevicePtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printDeviceSectionEndSection(
1117N/A FILE *cf, XF86ConfDevicePtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printDeviceSection(FILE *cf, XF86ConfDevicePtr ptr);
1117N/Avoid xf86freeDeviceList(XF86ConfDevicePtr ptr);
1117N/Aint xf86validateDevice(XF86ConfigPtr p);
1117N/A
1117N/A/* Files.c */
1117N/AXF86ConfFilesPtr xf86parseFilesSection(void);
1117N/Avoid xf86printFileSection(FILE *cf, XF86ConfFilesPtr ptr);
1117N/Avoid xf86freeFiles(XF86ConfFilesPtr p);
1117N/A
1117N/A/* Flags.c */
1117N/AXF86ConfFlagsPtr xf86parseFlagsSection(void);
1117N/Avoid xf86printServerFlagsSection(FILE *f, XF86ConfFlagsPtr flags);
1117N/Avoid xf86freeFlags(XF86ConfFlagsPtr flags);
1117N/A
1117N/A/* Input.c */
1117N/AXF86ConfInputPtr xf86parseInputSection(void);
1117N/Avoid xf86printInputSection(FILE *f, XF86ConfInputPtr ptr);
1117N/Avoid xf86freeInputList(XF86ConfInputPtr ptr);
1117N/Aint xf86validateInput (XF86ConfigPtr p);
1117N/A
1117N/A/* Keyboard.c */
1117N/AXF86ConfInputPtr xf86parseKeyboardSection(void);
1117N/A
1117N/A/* Layout.c */
1117N/AXF86ConfLayoutPtr xf86parseLayoutSection(void);
1117N/Avoid xf86printLayoutSection(FILE *cf, XF86ConfLayoutPtr ptr);
1117N/Avoid xf86freeLayoutList(XF86ConfLayoutPtr ptr);
1117N/Avoid xf86freeAdjacencyList(XF86ConfAdjacencyPtr ptr);
1117N/Avoid xf86freeInputrefList(XF86ConfInputrefPtr ptr);
1117N/Aint xf86validateLayout(XF86ConfigPtr p);
1117N/A
1117N/A/* Module.c */
1117N/AXF86LoadPtr xf86parseModuleSubSection(XF86LoadPtr head, char *name);
1117N/AXF86ConfModulePtr xf86parseModuleSection(void);
1117N/Avoid xf86printModuleSection(FILE *cf, XF86ConfModulePtr ptr);
1117N/AXF86LoadPtr xf86addNewLoadDirective(XF86LoadPtr head, char *name, int type, XF86OptionPtr opts);
1117N/Avoid xf86freeModules(XF86ConfModulePtr ptr);
1117N/A
1117N/A/* Monitor.c */
1117N/AXF86ConfModeLinePtr xf86parseModeLine(void);
1117N/AXF86ConfModeLinePtr xf86parseVerboseMode(void);
1117N/AXF86ConfMonitorPtr xf86parseMonitorSection(void);
1117N/AXF86ConfModesPtr xf86parseModesSection(void);
1117N/Avoid xf86printMonitorSectionSection(
1117N/A FILE *cf, XF86ConfMonitorPtr ptr, const char * const whitespace[]);
1117N/Avoid xf86printMonitorSectionIdentifier(
1117N/A FILE *cf, XF86ConfMonitorPtr ptr, const char * const whitespace[]);
1117N/Avoid xf86printMonitorSectionUseModes(
1117N/A FILE *cf, XF86ConfModesLinkPtr mptr, const char *const whitespace[]);
1117N/Avoid xf86printMonitorSectionGamma(
1117N/A FILE *cf, XF86ConfMonitorPtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printMonitorSectionEndSection(
1117N/A FILE *cf, XF86ConfMonitorPtr ptr, const char * const whitespace[]);
1117N/A#if defined(SMI_FBCONFIG)
1117N/Avoid xf86printMxxxSectionModeDotClock(
1117N/A FILE *cf, XF86ConfModeLinePtr mlptr, const char *const whitespace[]);
1117N/Avoid xf86printMxxxSectionModeHTimings(
1117N/A FILE *cf, XF86ConfModeLinePtr mlptr, const char *const whitespace[]);
1117N/Avoid xf86printMxxxSectionModeVTimings(
1117N/A FILE *cf, XF86ConfModeLinePtr mlptr, const char *const whitespace[]);
1117N/Avoid xf86printMxxxSectionModeFlags(
1117N/A FILE *cf, XF86ConfModeLinePtr mlptr, const char *const whitespace[]);
1117N/Avoid xf86printMxxxSectionModeLine(
1117N/A FILE *cf, XF86ConfModeLinePtr mlptr, const char *const whitespace[]);
1117N/Avoid xf86printMxxxSectionModeHSkew(
1117N/A FILE *cf, XF86ConfModeLinePtr mlptr, const char *const whitespace[]);
1117N/Avoid xf86printMxxxSectionModeVScan(
1117N/A FILE *cf, XF86ConfModeLinePtr mlptr, const char *const whitespace[]);
1117N/A#endif
1117N/Avoid xf86printMonitorSection(FILE *cf, XF86ConfMonitorPtr ptr);
1117N/Avoid xf86printModesSection(FILE *cf, XF86ConfModesPtr ptr);
1117N/Avoid xf86freeMonitorList(XF86ConfMonitorPtr ptr);
1117N/Avoid xf86freeModesList(XF86ConfModesPtr ptr);
1117N/Avoid xf86freeModeLineList(XF86ConfModeLinePtr ptr);
1117N/Aint xf86validateMonitor(
1117N/A XF86ConfigPtr p, /* Ptr to configuration stuff */
1117N/A const char *const screen_identifier, /* Name of Screen section */
1117N/A XF86ConfMonitorPtr monitor); /* Monitor section to validate */
1117N/A
1117N/A/* Pointer.c */
1117N/AXF86ConfInputPtr xf86parsePointerSection(void);
1117N/A
1117N/A/* Screen.c */
1117N/AXF86ConfDisplayPtr xf86parseDisplaySubSection(void);
1117N/AXF86ConfScreenPtr xf86parseScreenSection(void);
1117N/Avoid xf86printDisplaySubsectionSubsection(
1117N/A FILE *cf, XF86ConfDisplayPtr dptr, const char *const whitespace[]);
1117N/Avoid xf86printDisplaySubsectionMonitor(
1117N/A FILE *cf, XF86ConfDisplayPtr dptr, const char *const whitespace[]);
1117N/Avoid xf86printDisplaySubsectionModes(
1117N/A FILE *cf, XF86ConfDisplayPtr dptr, const char *const whitespace[]);
1117N/Avoid xf86printDisplaySubsectionEndSubsection(
1117N/A FILE *cf, XF86ConfDisplayPtr dptr, const char *const whitespace[]);
1117N/Avoid xf86printScreenSectionSection(
1117N/A FILE *cf, XF86ConfScreenPtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printScreenSectionIdentifier(
1117N/A FILE *cf, XF86ConfScreenPtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printScreenSectionDevice(
1117N/A FILE *cf, XF86ConfScreenPtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printScreenSectionMonitor(
1117N/A FILE *cf, XF86ConfScrnMonitorEntryPtr mon_ptr,
1117N/A const char *const whitespace[]);
1117N/Avoid xf86printScreenSectionDefaultDepth(
1117N/A FILE * cf, XF86ConfScreenPtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printScreenSectionEndSection(
1117N/A FILE * cf, XF86ConfScreenPtr ptr, const char *const whitespace[]);
1117N/Avoid xf86printScreenSection(FILE *cf, XF86ConfScreenPtr ptr);
1117N/Avoid xf86printDisplaySubsectionModes(
1117N/A FILE *cf, XF86ConfDisplayPtr dptr, const char *const whitespace[]);
1117N/Avoid xf86freeScreenList(XF86ConfScreenPtr ptr);
1117N/Avoid xf86freeAdaptorLinkList(XF86ConfAdaptorLinkPtr ptr);
1117N/Avoid xf86freeDisplayList(XF86ConfDisplayPtr ptr);
1117N/Avoid xf86freeModeList(XF86ModePtr ptr);
1117N/Aint xf86validateScreen(XF86ConfigPtr p);
1117N/A
1117N/A/* Vendor.c */
1117N/AXF86ConfVendorPtr xf86parseVendorSection(void);
1117N/AXF86ConfVendSubPtr xf86parseVendorSubSection (void);
1117N/Avoid xf86freeVendorList(XF86ConfVendorPtr p);
1117N/Avoid xf86printVendorSection(FILE * cf, XF86ConfVendorPtr ptr);
1117N/Avoid xf86freeVendorSubList (XF86ConfVendSubPtr ptr);
1117N/A
1117N/A/* Video.c */
1117N/AXF86ConfVideoPortPtr xf86parseVideoPortSubSection(void);
1117N/AXF86ConfVideoAdaptorPtr xf86parseVideoAdaptorSection(void);
1117N/Avoid xf86printVideoAdaptorSection(FILE *cf, XF86ConfVideoAdaptorPtr ptr);
1117N/Avoid xf86freeVideoAdaptorList(XF86ConfVideoAdaptorPtr ptr);
1117N/Avoid xf86freeVideoPortList(XF86ConfVideoPortPtr ptr);
1117N/A
1117N/A/* read.c */
1117N/A#if defined(SMI_FBCONFIG)
1117N/AXF86ConfigPtr xf86readNextConfigFile(XF86ConfigPtr ptr);
1117N/A#endif
1117N/Aint xf86validateConfig(XF86ConfigPtr p);
1117N/A
1117N/A/* scan.c */
1117N/A#if defined(SMI_FBCONFIG)
1117N/Aextern char *xf86configBuf; /* Config file line buffer */
1117N/Aextern int xf86configBufLen; /* Line buffer length */
1117N/A#endif
1117N/Aunsigned int xf86strToUL(char *str);
1117N/Achar *xf86getNextLine(char **configBuf, int *configBufLen, FILE *configFile);
1117N/Aint xf86getToken(xf86ConfigSymTabRec *tab);
1117N/Aint xf86getSubToken(char **comment);
1117N/Aint xf86getSubTokenWithTab(char **comment, xf86ConfigSymTabRec *tab);
1117N/Avoid xf86unGetToken(int token);
1117N/Achar *xf86tokenString(void);
1117N/Avoid xf86parseError(char *format, ...);
1117N/Avoid xf86parseWarning(char *format, ...);
1117N/Avoid xf86validationError(char *format, ...);
1117N/Avoid xf86setSection(char *section);
1117N/Aint xf86getStringToken(xf86ConfigSymTabRec *tab);
1117N/A
1117N/A/* write.c */
1117N/A
1117N/A/* DRI.c */
1117N/AXF86ConfBuffersPtr xf86parseBuffers (void);
1117N/Avoid xf86freeBuffersList (XF86ConfBuffersPtr ptr);
1117N/AXF86ConfDRIPtr xf86parseDRISection (void);
1117N/Avoid xf86printDRISection (FILE * cf, XF86ConfDRIPtr ptr);
1117N/Avoid xf86freeDRI (XF86ConfDRIPtr ptr);
1117N/A
1117N/A/* Extensions.c */
1117N/AXF86ConfExtensionsPtr xf86parseExtensionsSection (void);
1117N/Avoid xf86printExtensionsSection (FILE * cf, XF86ConfExtensionsPtr ptr);
1117N/Avoid xf86freeExtensions (XF86ConfExtensionsPtr ptr);
1117N/A
1117N/A#ifdef HAVE_XORG_CONFIG_H
1117N/A#include <xorg-config.h>
1117N/A#endif
1117N/A
1117N/A#ifndef IN_XSERVER
1117N/A#include <stdarg.h>
1117N/A
1117N/A/* Externally provided functions */
1117N/Avoid ErrorF(const char *f, ...);
1117N/Avoid VErrorF(const char *f, va_list args);
1117N/A#endif
1117N/A
1117N/A
1117N/A#endif /* _CONFIGPROCS_H_ */
1117N/A