2006-11-26 11:13:41 -07:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1997 Metro Link Incorporated
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
* SOFTWARE.
|
|
|
|
*
|
|
|
|
* Except as contained in this notice, the name of the Metro Link shall not be
|
|
|
|
* used in advertising or otherwise to promote the sale, use or other dealings
|
|
|
|
* in this Software without prior written authorization from Metro Link.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1997-2003 by The XFree86 Project, Inc.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
|
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
|
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*
|
|
|
|
* Except as contained in this notice, the name of the copyright holder(s)
|
|
|
|
* and author(s) shall not be used in advertising or otherwise to promote
|
|
|
|
* the sale, use or other dealings in this Software without prior written
|
|
|
|
* authorization from the copyright holder(s) and author(s).
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file contains the external interfaces for the XFree86 configuration
|
|
|
|
* file parser.
|
|
|
|
*/
|
|
|
|
#ifdef HAVE_XORG_CONFIG_H
|
|
|
|
#include <xorg-config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _xf86Parser_h_
|
|
|
|
#define _xf86Parser_h_
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
#include <X11/Xdefs.h>
|
2006-11-26 11:13:41 -07:00
|
|
|
#include "xf86Optrec.h"
|
2010-12-05 08:36:02 -07:00
|
|
|
#include "list.h"
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#define HAVE_PARSER_DECLS
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
typedef struct {
|
|
|
|
char *file_logfile;
|
|
|
|
char *file_modulepath;
|
|
|
|
char *file_fontpath;
|
|
|
|
char *file_comment;
|
|
|
|
char *file_xkbdir;
|
|
|
|
} XF86ConfFilesRec, *XF86ConfFilesPtr;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/* Values for load_type */
|
|
|
|
#define XF86_LOAD_MODULE 0
|
|
|
|
#define XF86_LOAD_DRIVER 1
|
2007-11-24 10:55:21 -07:00
|
|
|
#define XF86_DISABLE_MODULE 2
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
|
|
|
int load_type;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *load_name;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86OptionPtr load_opt;
|
|
|
|
char *load_comment;
|
|
|
|
int ignore;
|
|
|
|
} XF86LoadRec, *XF86LoadPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
XF86LoadPtr mod_load_lst;
|
2007-11-24 10:55:21 -07:00
|
|
|
XF86LoadPtr mod_disable_lst;
|
2012-06-10 07:21:05 -06:00
|
|
|
char *mod_comment;
|
|
|
|
} XF86ConfModuleRec, *XF86ConfModulePtr;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#define CONF_IMPLICIT_KEYBOARD "Implicit Core Keyboard"
|
|
|
|
|
|
|
|
#define CONF_IMPLICIT_POINTER "Implicit Core Pointer"
|
|
|
|
|
|
|
|
#define XF86CONF_PHSYNC 0x0001
|
|
|
|
#define XF86CONF_NHSYNC 0x0002
|
|
|
|
#define XF86CONF_PVSYNC 0x0004
|
|
|
|
#define XF86CONF_NVSYNC 0x0008
|
|
|
|
#define XF86CONF_INTERLACE 0x0010
|
|
|
|
#define XF86CONF_DBLSCAN 0x0020
|
|
|
|
#define XF86CONF_CSYNC 0x0040
|
|
|
|
#define XF86CONF_PCSYNC 0x0080
|
|
|
|
#define XF86CONF_NCSYNC 0x0100
|
2012-06-10 07:21:05 -06:00
|
|
|
#define XF86CONF_HSKEW 0x0200 /* hskew provided */
|
2006-11-26 11:13:41 -07:00
|
|
|
#define XF86CONF_BCAST 0x0400
|
|
|
|
#define XF86CONF_VSCAN 0x1000
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *ml_identifier;
|
2012-06-10 07:21:05 -06:00
|
|
|
int ml_clock;
|
|
|
|
int ml_hdisplay;
|
|
|
|
int ml_hsyncstart;
|
|
|
|
int ml_hsyncend;
|
|
|
|
int ml_htotal;
|
|
|
|
int ml_vdisplay;
|
|
|
|
int ml_vsyncstart;
|
|
|
|
int ml_vsyncend;
|
|
|
|
int ml_vtotal;
|
|
|
|
int ml_vscan;
|
|
|
|
int ml_flags;
|
|
|
|
int ml_hskew;
|
|
|
|
char *ml_comment;
|
|
|
|
} XF86ConfModeLineRec, *XF86ConfModeLinePtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *vp_identifier;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86OptionPtr vp_option_lst;
|
|
|
|
char *vp_comment;
|
|
|
|
} XF86ConfVideoPortRec, *XF86ConfVideoPortPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *va_identifier;
|
|
|
|
const char *va_vendor;
|
|
|
|
const char *va_board;
|
|
|
|
const char *va_busid;
|
|
|
|
const char *va_driver;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86OptionPtr va_option_lst;
|
|
|
|
XF86ConfVideoPortPtr va_port_lst;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *va_fwdref;
|
2012-06-10 07:21:05 -06:00
|
|
|
char *va_comment;
|
|
|
|
} XF86ConfVideoAdaptorRec, *XF86ConfVideoAdaptorPtr;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#define CONF_MAX_HSYNC 8
|
|
|
|
#define CONF_MAX_VREFRESH 8
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
typedef struct {
|
|
|
|
float hi, lo;
|
|
|
|
} parser_range;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int red, green, blue;
|
|
|
|
} parser_rgb;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *modes_identifier;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfModeLinePtr mon_modeline_lst;
|
|
|
|
char *modes_comment;
|
|
|
|
} XF86ConfModesRec, *XF86ConfModesPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *ml_modes_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfModesPtr ml_modes;
|
|
|
|
} XF86ConfModesLinkRec, *XF86ConfModesLinkPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *mon_identifier;
|
|
|
|
const char *mon_vendor;
|
2012-06-10 07:21:05 -06:00
|
|
|
char *mon_modelname;
|
|
|
|
int mon_width; /* in mm */
|
|
|
|
int mon_height; /* in mm */
|
|
|
|
XF86ConfModeLinePtr mon_modeline_lst;
|
|
|
|
int mon_n_hsync;
|
|
|
|
parser_range mon_hsync[CONF_MAX_HSYNC];
|
|
|
|
int mon_n_vrefresh;
|
|
|
|
parser_range mon_vrefresh[CONF_MAX_VREFRESH];
|
|
|
|
float mon_gamma_red;
|
|
|
|
float mon_gamma_green;
|
|
|
|
float mon_gamma_blue;
|
|
|
|
XF86OptionPtr mon_option_lst;
|
|
|
|
XF86ConfModesLinkPtr mon_modes_sect_lst;
|
|
|
|
char *mon_comment;
|
|
|
|
} XF86ConfMonitorRec, *XF86ConfMonitorPtr;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#define CONF_MAXDACSPEEDS 4
|
|
|
|
#define CONF_MAXCLOCKS 128
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *dev_identifier;
|
|
|
|
const char *dev_vendor;
|
|
|
|
const char *dev_board;
|
|
|
|
const char *dev_chipset;
|
|
|
|
const char *dev_busid;
|
|
|
|
const char *dev_card;
|
|
|
|
const char *dev_driver;
|
|
|
|
const char *dev_ramdac;
|
2012-06-10 07:21:05 -06:00
|
|
|
int dev_dacSpeeds[CONF_MAXDACSPEEDS];
|
|
|
|
int dev_videoram;
|
|
|
|
int dev_textclockfreq;
|
|
|
|
unsigned long dev_bios_base;
|
|
|
|
unsigned long dev_mem_base;
|
|
|
|
unsigned long dev_io_base;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *dev_clockchip;
|
2012-06-10 07:21:05 -06:00
|
|
|
int dev_clocks;
|
|
|
|
int dev_clock[CONF_MAXCLOCKS];
|
|
|
|
int dev_chipid;
|
|
|
|
int dev_chiprev;
|
|
|
|
int dev_irq;
|
|
|
|
int dev_screen;
|
|
|
|
XF86OptionPtr dev_option_lst;
|
|
|
|
char *dev_comment;
|
2014-09-27 11:52:59 -06:00
|
|
|
char *match_seat;
|
2012-06-10 07:21:05 -06:00
|
|
|
} XF86ConfDeviceRec, *XF86ConfDevicePtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *mode_name;
|
2012-06-10 07:21:05 -06:00
|
|
|
} XF86ModeRec, *XF86ModePtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
|
|
|
int disp_frameX0;
|
|
|
|
int disp_frameY0;
|
|
|
|
int disp_virtualX;
|
|
|
|
int disp_virtualY;
|
|
|
|
int disp_depth;
|
|
|
|
int disp_bpp;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *disp_visual;
|
2012-06-10 07:21:05 -06:00
|
|
|
parser_rgb disp_weight;
|
|
|
|
parser_rgb disp_black;
|
|
|
|
parser_rgb disp_white;
|
|
|
|
XF86ModePtr disp_mode_lst;
|
|
|
|
XF86OptionPtr disp_option_lst;
|
|
|
|
char *disp_comment;
|
|
|
|
} XF86ConfDisplayRec, *XF86ConfDisplayPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
XF86OptionPtr flg_option_lst;
|
|
|
|
char *flg_comment;
|
|
|
|
} XF86ConfFlagsRec, *XF86ConfFlagsPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *al_adaptor_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfVideoAdaptorPtr al_adaptor;
|
|
|
|
} XF86ConfAdaptorLinkRec, *XF86ConfAdaptorLinkPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *scrn_identifier;
|
|
|
|
const char *scrn_obso_driver;
|
2012-06-10 07:21:05 -06:00
|
|
|
int scrn_defaultdepth;
|
|
|
|
int scrn_defaultbpp;
|
|
|
|
int scrn_defaultfbbpp;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *scrn_monitor_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfMonitorPtr scrn_monitor;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *scrn_device_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfDevicePtr scrn_device;
|
|
|
|
XF86ConfAdaptorLinkPtr scrn_adaptor_lst;
|
|
|
|
XF86ConfDisplayPtr scrn_display_lst;
|
|
|
|
XF86OptionPtr scrn_option_lst;
|
|
|
|
char *scrn_comment;
|
|
|
|
int scrn_virtualX, scrn_virtualY;
|
2014-09-27 11:52:59 -06:00
|
|
|
char *match_seat;
|
2012-06-10 07:21:05 -06:00
|
|
|
} XF86ConfScreenRec, *XF86ConfScreenPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
|
|
|
char *inp_identifier;
|
|
|
|
char *inp_driver;
|
|
|
|
XF86OptionPtr inp_option_lst;
|
|
|
|
char *inp_comment;
|
|
|
|
} XF86ConfInputRec, *XF86ConfInputPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
|
|
|
XF86ConfInputPtr iref_inputdev;
|
|
|
|
char *iref_inputdev_str;
|
|
|
|
XF86OptionPtr iref_option_lst;
|
|
|
|
} XF86ConfInputrefRec, *XF86ConfInputrefPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Bool set;
|
|
|
|
Bool val;
|
|
|
|
} xf86TriState;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
struct xorg_list entry;
|
|
|
|
char **values;
|
|
|
|
} xf86MatchGroup;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
|
|
|
char *identifier;
|
|
|
|
char *driver;
|
|
|
|
struct xorg_list match_product;
|
|
|
|
struct xorg_list match_vendor;
|
|
|
|
struct xorg_list match_device;
|
|
|
|
struct xorg_list match_os;
|
|
|
|
struct xorg_list match_pnpid;
|
|
|
|
struct xorg_list match_usbid;
|
|
|
|
struct xorg_list match_driver;
|
|
|
|
struct xorg_list match_tag;
|
|
|
|
struct xorg_list match_layout;
|
|
|
|
xf86TriState is_keyboard;
|
|
|
|
xf86TriState is_pointer;
|
|
|
|
xf86TriState is_joystick;
|
|
|
|
xf86TriState is_tablet;
|
|
|
|
xf86TriState is_touchpad;
|
|
|
|
xf86TriState is_touchscreen;
|
|
|
|
XF86OptionPtr option_lst;
|
|
|
|
char *comment;
|
|
|
|
} XF86ConfInputClassRec, *XF86ConfInputClassPtr;
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2014-09-27 11:52:59 -06:00
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
|
|
|
char *identifier;
|
|
|
|
char *driver;
|
|
|
|
struct xorg_list match_driver;
|
|
|
|
char *comment;
|
|
|
|
} XF86ConfOutputClassRec, *XF86ConfOutputClassPtr;
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
/* Values for adj_where */
|
|
|
|
#define CONF_ADJ_OBSOLETE -1
|
|
|
|
#define CONF_ADJ_ABSOLUTE 0
|
|
|
|
#define CONF_ADJ_RIGHTOF 1
|
|
|
|
#define CONF_ADJ_LEFTOF 2
|
|
|
|
#define CONF_ADJ_ABOVE 3
|
|
|
|
#define CONF_ADJ_BELOW 4
|
|
|
|
#define CONF_ADJ_RELATIVE 5
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
|
|
|
int adj_scrnum;
|
|
|
|
XF86ConfScreenPtr adj_screen;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *adj_screen_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfScreenPtr adj_top;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *adj_top_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfScreenPtr adj_bottom;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *adj_bottom_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfScreenPtr adj_left;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *adj_left_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfScreenPtr adj_right;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *adj_right_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
int adj_where;
|
|
|
|
int adj_x;
|
|
|
|
int adj_y;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *adj_refscreen;
|
2012-06-10 07:21:05 -06:00
|
|
|
} XF86ConfAdjacencyRec, *XF86ConfAdjacencyPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *inactive_device_str;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfDevicePtr inactive_device;
|
|
|
|
} XF86ConfInactiveRec, *XF86ConfInactivePtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *lay_identifier;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfAdjacencyPtr lay_adjacency_lst;
|
|
|
|
XF86ConfInactivePtr lay_inactive_lst;
|
|
|
|
XF86ConfInputrefPtr lay_input_lst;
|
|
|
|
XF86OptionPtr lay_option_lst;
|
2014-09-27 11:52:59 -06:00
|
|
|
char *match_seat;
|
2012-06-10 07:21:05 -06:00
|
|
|
char *lay_comment;
|
|
|
|
} XF86ConfLayoutRec, *XF86ConfLayoutPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *vs_name;
|
|
|
|
const char *vs_identifier;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86OptionPtr vs_option_lst;
|
|
|
|
char *vs_comment;
|
|
|
|
} XF86ConfVendSubRec, *XF86ConfVendSubPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GenericListRec list;
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *vnd_identifier;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86OptionPtr vnd_option_lst;
|
|
|
|
XF86ConfVendSubPtr vnd_sub_lst;
|
|
|
|
char *vnd_comment;
|
|
|
|
} XF86ConfVendorRec, *XF86ConfVendorPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
2014-09-27 11:52:59 -06:00
|
|
|
const char *dri_group_name;
|
2012-06-10 07:21:05 -06:00
|
|
|
int dri_group;
|
|
|
|
int dri_mode;
|
|
|
|
char *dri_comment;
|
|
|
|
} XF86ConfDRIRec, *XF86ConfDRIPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
XF86OptionPtr ext_option_lst;
|
|
|
|
char *extensions_comment;
|
|
|
|
} XF86ConfExtensionsRec, *XF86ConfExtensionsPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
XF86ConfFilesPtr conf_files;
|
|
|
|
XF86ConfModulePtr conf_modules;
|
|
|
|
XF86ConfFlagsPtr conf_flags;
|
|
|
|
XF86ConfVideoAdaptorPtr conf_videoadaptor_lst;
|
|
|
|
XF86ConfModesPtr conf_modes_lst;
|
|
|
|
XF86ConfMonitorPtr conf_monitor_lst;
|
|
|
|
XF86ConfDevicePtr conf_device_lst;
|
|
|
|
XF86ConfScreenPtr conf_screen_lst;
|
|
|
|
XF86ConfInputPtr conf_input_lst;
|
|
|
|
XF86ConfInputClassPtr conf_inputclass_lst;
|
2014-09-27 11:52:59 -06:00
|
|
|
XF86ConfOutputClassPtr conf_outputclass_lst;
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfLayoutPtr conf_layout_lst;
|
|
|
|
XF86ConfVendorPtr conf_vendor_lst;
|
|
|
|
XF86ConfDRIPtr conf_dri;
|
|
|
|
XF86ConfExtensionsPtr conf_extensions;
|
|
|
|
char *conf_comment;
|
|
|
|
} XF86ConfigRec, *XF86ConfigPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int token; /* id of the token */
|
|
|
|
const char *name; /* pointer to the LOWERCASED name */
|
|
|
|
} xf86ConfigSymTabRec, *xf86ConfigSymTabPtr;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes for public functions
|
|
|
|
*/
|
2010-07-27 13:02:24 -06:00
|
|
|
extern void xf86initConfigFiles(void);
|
2012-06-10 07:21:05 -06:00
|
|
|
extern char *xf86openConfigFile(const char *path, const char *cmdline,
|
|
|
|
const char *projroot);
|
|
|
|
extern char *xf86openConfigDirFiles(const char *path, const char *cmdline,
|
|
|
|
const char *projroot);
|
2006-11-26 11:13:41 -07:00
|
|
|
extern void xf86setBuiltinConfig(const char *config[]);
|
2010-07-27 13:02:24 -06:00
|
|
|
extern XF86ConfigPtr xf86readConfigFile(void);
|
|
|
|
extern void xf86closeConfigFile(void);
|
|
|
|
extern void xf86freeConfig(XF86ConfigPtr p);
|
|
|
|
extern int xf86writeConfigFile(const char *, XF86ConfigPtr);
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT XF86ConfDevicePtr xf86findDevice(const char *ident,
|
|
|
|
XF86ConfDevicePtr p);
|
|
|
|
extern _X_EXPORT XF86ConfLayoutPtr xf86findLayout(const char *name,
|
|
|
|
XF86ConfLayoutPtr list);
|
|
|
|
extern _X_EXPORT XF86ConfMonitorPtr xf86findMonitor(const char *ident,
|
|
|
|
XF86ConfMonitorPtr p);
|
|
|
|
extern _X_EXPORT XF86ConfModesPtr xf86findModes(const char *ident,
|
|
|
|
XF86ConfModesPtr p);
|
|
|
|
extern _X_EXPORT XF86ConfModeLinePtr xf86findModeLine(const char *ident,
|
|
|
|
XF86ConfModeLinePtr p);
|
|
|
|
extern _X_EXPORT XF86ConfScreenPtr xf86findScreen(const char *ident,
|
|
|
|
XF86ConfScreenPtr p);
|
|
|
|
extern _X_EXPORT XF86ConfInputPtr xf86findInput(const char *ident,
|
|
|
|
XF86ConfInputPtr p);
|
|
|
|
extern _X_EXPORT XF86ConfInputPtr xf86findInputByDriver(const char *driver,
|
|
|
|
XF86ConfInputPtr p);
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT XF86ConfVideoAdaptorPtr xf86findVideoAdaptor(const char *ident,
|
2012-06-10 07:21:05 -06:00
|
|
|
XF86ConfVideoAdaptorPtr
|
|
|
|
p);
|
|
|
|
extern int xf86layoutAddInputDevices(XF86ConfigPtr config,
|
|
|
|
XF86ConfLayoutPtr layout);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT GenericListPtr xf86addListItem(GenericListPtr head,
|
|
|
|
GenericListPtr c_new);
|
|
|
|
extern _X_EXPORT int xf86itemNotSublist(GenericListPtr list_1,
|
|
|
|
GenericListPtr list_2);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT int xf86pathIsAbsolute(const char *path);
|
|
|
|
extern _X_EXPORT int xf86pathIsSafe(const char *path);
|
2014-09-27 11:52:59 -06:00
|
|
|
extern _X_EXPORT char *xf86addComment(char *cur, const char *add);
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT Bool xf86getBoolValue(Bool *val, const char *str);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
#endif /* _xf86Parser_h_ */
|