xf86Parser.h revision a3f3701cea1ba388e7c877955252bb7375eedebd
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Copyright (c) 1997 Metro Link Incorporated
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Permission is hereby granted, free of charge, to any person obtaining a
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * copy of this software and associated documentation files (the "Software"),
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * to deal in the Software without restriction, including without limitation
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * and/or sell copies of the Software, and to permit persons to whom the
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Software is furnished to do so, subject to the following conditions:
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * The above copyright notice and this permission notice shall be included in
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * all copies or substantial portions of the Software.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * SOFTWARE.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Except as contained in this notice, the name of the Metro Link shall not be
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * used in advertising or otherwise to promote the sale, use or other dealings
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * in this Software without prior written authorization from Metro Link.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Permission is hereby granted, free of charge, to any person obtaining a
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * copy of this software and associated documentation files (the "Software"),
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * to deal in the Software without restriction, including without limitation
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * and/or sell copies of the Software, and to permit persons to whom the
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Software is furnished to do so, subject to the following conditions:
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * The above copyright notice and this permission notice shall be included in
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * all copies or substantial portions of the Software.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * OTHER DEALINGS IN THE SOFTWARE.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Except as contained in this notice, the name of the copyright holder(s)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * and author(s) shall not be used in advertising or otherwise to promote
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * the sale, use or other dealings in this Software without prior written
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * authorization from the copyright holder(s) and author(s).
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * This file contains the external interfaces for the XFree86 configuration
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * file parser.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync/* Values for load_type */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define CONF_IMPLICIT_KEYBOARD "Implicit Core Keyboard"
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define CONF_IMPLICIT_POINTER "Implicit Core Pointer"
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync} XF86ConfVideoAdaptorRec, *XF86ConfVideoAdaptorPtr;
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned long dev_bios_base;
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned long dev_mem_base;
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned long dev_io_base;
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync/* Values for adj_where */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync const char *name; /* pointer to the LOWERCASED name */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * prototypes for public functions
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void xf86initConfigFiles(void);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern char *xf86openConfigFile(const char *path, const char *cmdline,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync const char *projroot);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern char *xf86openConfigDirFiles(const char *path, const char *cmdline,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync const char *projroot);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void xf86setBuiltinConfig(const char *config[]);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void xf86closeConfigFile(void);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern int xf86writeConfigFile(const char *, XF86ConfigPtr);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT XF86ConfDevicePtr xf86findDevice(const char *ident,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT XF86ConfLayoutPtr xf86findLayout(const char *name,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT XF86ConfMonitorPtr xf86findMonitor(const char *ident,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT XF86ConfModesPtr xf86findModes(const char *ident,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT XF86ConfModeLinePtr xf86findModeLine(const char *ident,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT XF86ConfScreenPtr xf86findScreen(const char *ident,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT XF86ConfInputPtr xf86findInput(const char *ident,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT XF86ConfInputPtr xf86findInputByDriver(const char *driver,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT XF86ConfVideoAdaptorPtr xf86findVideoAdaptor(const char *ident,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern int xf86layoutAddInputDevices(XF86ConfigPtr config,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT GenericListPtr xf86addListItem(GenericListPtr head,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int xf86itemNotSublist(GenericListPtr list_1,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int xf86pathIsAbsolute(const char *path);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int xf86pathIsSafe(const char *path);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT char *xf86addComment(char *cur, char *add);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT Bool xf86getBoolValue(Bool *val, const char *str);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#endif /* _xf86Parser_h_ */