1706f2543Smrg 2706f2543Smrg/* 3706f2543Smrg * Copyright (c) 1997-2000 by The XFree86 Project, Inc. 4706f2543Smrg * 5706f2543Smrg * Permission is hereby granted, free of charge, to any person obtaining a 6706f2543Smrg * copy of this software and associated documentation files (the "Software"), 7706f2543Smrg * to deal in the Software without restriction, including without limitation 8706f2543Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9706f2543Smrg * and/or sell copies of the Software, and to permit persons to whom the 10706f2543Smrg * Software is furnished to do so, subject to the following conditions: 11706f2543Smrg * 12706f2543Smrg * The above copyright notice and this permission notice shall be included in 13706f2543Smrg * all copies or substantial portions of the Software. 14706f2543Smrg * 15706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16706f2543Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17706f2543Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18706f2543Smrg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 19706f2543Smrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20706f2543Smrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21706f2543Smrg * OTHER DEALINGS IN THE SOFTWARE. 22706f2543Smrg * 23706f2543Smrg * Except as contained in this notice, the name of the copyright holder(s) 24706f2543Smrg * and author(s) shall not be used in advertising or otherwise to promote 25706f2543Smrg * the sale, use or other dealings in this Software without prior written 26706f2543Smrg * authorization from the copyright holder(s) and author(s). 27706f2543Smrg */ 28706f2543Smrg 29706f2543Smrg#ifdef HAVE_XORG_CONFIG_H 30706f2543Smrg#include <xorg-config.h> 31706f2543Smrg#endif 32706f2543Smrg 33706f2543Smrg#ifndef _xf86_config_h 34706f2543Smrg#define _xf86_config_h 35706f2543Smrg 36706f2543Smrg#include "xf86Optrec.h" 37706f2543Smrg#include "xf86Parser.h" 38706f2543Smrg#include "xf86str.h" 39706f2543Smrg 40706f2543Smrg#ifdef HAVE_PARSER_DECLS 41706f2543Smrg/* 42706f2543Smrg * global structure that holds the result of parsing the config file 43706f2543Smrg */ 44706f2543Smrgextern _X_EXPORT XF86ConfigPtr xf86configptr; 45706f2543Smrg#endif 46706f2543Smrg 47706f2543Smrgtypedef enum _ConfigStatus { 48706f2543Smrg CONFIG_OK = 0, 49706f2543Smrg CONFIG_PARSE_ERROR, 50706f2543Smrg CONFIG_NOFILE 51706f2543Smrg} ConfigStatus; 52706f2543Smrg 53706f2543Smrgtypedef struct _ModuleDefault { 54706f2543Smrg char *name; 55706f2543Smrg Bool toLoad; 56706f2543Smrg XF86OptionPtr load_opt; 57706f2543Smrg} ModuleDefault; 58706f2543Smrg 59706f2543Smrg/* 60706f2543Smrg * prototypes 61706f2543Smrg */ 62706f2543Smrgchar ** xf86ModulelistFromConfig(pointer **); 63706f2543Smrgchar ** xf86DriverlistFromConfig(void); 64706f2543Smrgchar ** xf86DriverlistFromCompile(void); 65706f2543Smrgchar ** xf86InputDriverlistFromConfig(void); 66706f2543SmrgBool xf86BuiltinInputDriver(const char *); 67706f2543SmrgConfigStatus xf86HandleConfigFile(Bool); 68706f2543Smrg 69706f2543SmrgBool xf86AutoConfig(void); 70706f2543SmrgGDevPtr autoConfigDevice(GDevPtr preconf_device); 71706f2543Smrg 72706f2543Smrg#endif /* _xf86_config_h */ 73