hw/xfree86: Lots of constant string support

Make lots of string pointers 'const char' so that we can use constant
strings with them without eliciting warnings.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Keith Packard 2013-11-15 16:24:15 +09:00
parent 6f77e2645e
commit 27b44949a3
17 changed files with 109 additions and 107 deletions

View File

@ -24,7 +24,7 @@
typedef struct { typedef struct {
int num; /* A unique identifier for the mode (num > 0) */ int num; /* A unique identifier for the mode (num > 0) */
char *name; /* name of mode given in the XF86Config */ const char *name; /* name of mode given in the XF86Config */
int VSync_num; int VSync_num;
int VSync_den; int VSync_den;
int flags; /* DGA_CONCURRENT_ACCESS, etc... */ int flags; /* DGA_CONCURRENT_ACCESS, etc... */

View File

@ -349,7 +349,7 @@ xf86SetBackingStore(ScreenPtr pScreen);
extern _X_EXPORT void extern _X_EXPORT void
xf86SetSilkenMouse(ScreenPtr pScreen); xf86SetSilkenMouse(ScreenPtr pScreen);
extern _X_EXPORT pointer extern _X_EXPORT pointer
xf86FindXvOptions(ScrnInfoPtr pScrn, int adapt_index, char *port_name, xf86FindXvOptions(ScrnInfoPtr pScrn, int adapt_index, const char *port_name,
char **adaptor_name, pointer *adaptor_options); char **adaptor_name, pointer *adaptor_options);
extern _X_EXPORT void extern _X_EXPORT void
xf86GetOS(const char **name, int *major, int *minor, int *teeny); xf86GetOS(const char **name, int *major, int *minor, int *teeny);

View File

@ -81,6 +81,7 @@ xf86AddBusDeviceToConfigure(const char *driver, BusType bus, void *busData,
int chipset) int chipset)
{ {
int ret, i, j; int ret, i, j;
char *lower_driver;
if (!xf86DoConfigure || !xf86DoConfigurePass1) if (!xf86DoConfigure || !xf86DoConfigurePass1)
return NULL; return NULL;
@ -117,8 +118,9 @@ xf86AddBusDeviceToConfigure(const char *driver, BusType bus, void *busData,
DevToConfig[i].iDriver = CurrentDriver; DevToConfig[i].iDriver = CurrentDriver;
/* Fill in what we know, converting the driver name to lower case */ /* Fill in what we know, converting the driver name to lower case */
DevToConfig[i].GDev.driver = xnfalloc(strlen(driver) + 1); lower_driver = xnfalloc(strlen(driver) + 1);
for (j = 0; (DevToConfig[i].GDev.driver[j] = tolower(driver[j])); j++); for (j = 0; (lower_driver[j] = tolower(driver[j])); j++);
DevToConfig[i].GDev.driver = lower_driver;
switch (bus) { switch (bus) {
#ifdef XSERVER_LIBPCIACCESS #ifdef XSERVER_LIBPCIACCESS

View File

@ -39,7 +39,7 @@ typedef struct {
typedef union { typedef union {
unsigned long num; unsigned long num;
char *str; const char *str;
double realnum; double realnum;
Bool bool; Bool bool;
OptFrequency freq; OptFrequency freq;

View File

@ -31,10 +31,10 @@
*/ */
typedef struct _XF86OptionRec { typedef struct _XF86OptionRec {
GenericListRec list; GenericListRec list;
char *opt_name; const char *opt_name;
char *opt_val; const char *opt_val;
int opt_used; int opt_used;
char *opt_comment; const char *opt_comment;
} XF86OptionRec; } XF86OptionRec;
typedef struct _InputOption *XF86OptionPtr; typedef struct _InputOption *XF86OptionPtr;

View File

@ -136,7 +136,7 @@ typedef struct {
/* Information for root window properties. */ /* Information for root window properties. */
typedef struct _RootWinProp { typedef struct _RootWinProp {
struct _RootWinProp *next; struct _RootWinProp *next;
char *name; const char *name;
Atom type; Atom type;
short format; short format;
long size; long size;

View File

@ -82,8 +82,8 @@ typedef struct _InputDriverRec {
typedef struct _InputInfoRec { typedef struct _InputInfoRec {
struct _InputInfoRec *next; struct _InputInfoRec *next;
char *name; const char *name;
char *driver; const char *driver;
int flags; int flags;

View File

@ -52,16 +52,16 @@ typedef struct sbus_device {
int fd; int fd;
int width, height; int width, height;
sbusPromNode node; sbusPromNode node;
char *descr; const char *descr;
char *device; const char *device;
} sbusDevice, *sbusDevicePtr; } sbusDevice, *sbusDevicePtr;
struct sbus_devtable { struct sbus_devtable {
int devId; int devId;
int fbType; int fbType;
char *promName; const char *promName;
char *driverName; const char *driverName;
char *descr; const char *descr;
}; };
extern _X_EXPORT void xf86SbusProbe(void); extern _X_EXPORT void xf86SbusProbe(void);

View File

@ -145,7 +145,7 @@ typedef enum {
typedef struct _DisplayModeRec { typedef struct _DisplayModeRec {
struct _DisplayModeRec *prev; struct _DisplayModeRec *prev;
struct _DisplayModeRec *next; struct _DisplayModeRec *next;
char *name; /* identifier for the mode */ const char *name; /* identifier for the mode */
ModeStatus status; ModeStatus status;
int type; int type;
@ -212,9 +212,9 @@ typedef struct {
#define GAMMA_ZERO (GAMMA_MIN / 100.0) #define GAMMA_ZERO (GAMMA_MIN / 100.0)
typedef struct { typedef struct {
char *id; const char *id;
char *vendor; const char *vendor;
char *model; const char *model;
int nHsync; int nHsync;
range hsync[MAX_HSYNC]; range hsync[MAX_HSYNC];
int nVrefresh; int nVrefresh;
@ -386,19 +386,19 @@ typedef enum {
} DacSpeedIndex; } DacSpeedIndex;
typedef struct { typedef struct {
char *identifier; const char *identifier;
char *vendor; const char *vendor;
char *board; const char *board;
char *chipset; const char *chipset;
char *ramdac; const char *ramdac;
char *driver; const char *driver;
struct _confscreenrec *myScreenSection; struct _confscreenrec *myScreenSection;
Bool claimed; Bool claimed;
int dacSpeeds[MAXDACSPEEDS]; int dacSpeeds[MAXDACSPEEDS];
int numclocks; int numclocks;
int clock[MAXCLOCKS]; int clock[MAXCLOCKS];
char *clockchip; const char *clockchip;
char *busID; const char *busID;
Bool active; Bool active;
Bool inUse; Bool inUse;
int videoRam; int videoRam;
@ -429,19 +429,19 @@ typedef struct {
} DispRec, *DispPtr; } DispRec, *DispPtr;
typedef struct _confxvportrec { typedef struct _confxvportrec {
char *identifier; const char *identifier;
pointer options; pointer options;
} confXvPortRec, *confXvPortPtr; } confXvPortRec, *confXvPortPtr;
typedef struct _confxvadaptrec { typedef struct _confxvadaptrec {
char *identifier; const char *identifier;
int numports; int numports;
confXvPortPtr ports; confXvPortPtr ports;
pointer options; pointer options;
} confXvAdaptorRec, *confXvAdaptorPtr; } confXvAdaptorRec, *confXvAdaptorPtr;
typedef struct _confscreenrec { typedef struct _confscreenrec {
char *id; const char *id;
int screennum; int screennum;
int defaultdepth; int defaultdepth;
int defaultbpp; int defaultbpp;
@ -467,25 +467,25 @@ typedef enum {
typedef struct _screenlayoutrec { typedef struct _screenlayoutrec {
confScreenPtr screen; confScreenPtr screen;
char *topname; const char *topname;
confScreenPtr top; confScreenPtr top;
char *bottomname; const char *bottomname;
confScreenPtr bottom; confScreenPtr bottom;
char *leftname; const char *leftname;
confScreenPtr left; confScreenPtr left;
char *rightname; const char *rightname;
confScreenPtr right; confScreenPtr right;
PositionType where; PositionType where;
int x; int x;
int y; int y;
char *refname; const char *refname;
confScreenPtr refscreen; confScreenPtr refscreen;
} screenLayoutRec, *screenLayoutPtr; } screenLayoutRec, *screenLayoutPtr;
typedef struct _InputInfoRec InputInfoRec; typedef struct _InputInfoRec InputInfoRec;
typedef struct _serverlayoutrec { typedef struct _serverlayoutrec {
char *id; const char *id;
screenLayoutPtr screens; screenLayoutPtr screens;
GDevPtr inactives; GDevPtr inactives;
InputInfoRec **inputs; /* NULL terminated */ InputInfoRec **inputs; /* NULL terminated */

View File

@ -137,7 +137,7 @@ typedef enum {
typedef struct { typedef struct {
int id; int id;
char *name; const char *name;
unsigned short width, height; unsigned short width, height;
XvRationalRec rate; XvRationalRec rate;
} XF86VideoEncodingRec, *XF86VideoEncodingPtr; } XF86VideoEncodingRec, *XF86VideoEncodingPtr;
@ -151,13 +151,13 @@ typedef struct {
int flags; int flags;
int min_value; int min_value;
int max_value; int max_value;
char *name; const char *name;
} XF86AttributeRec, *XF86AttributePtr; } XF86AttributeRec, *XF86AttributePtr;
typedef struct { typedef struct {
unsigned int type; unsigned int type;
int flags; int flags;
char *name; const char *name;
int nEncodings; int nEncodings;
XF86VideoEncodingPtr pEncodings; XF86VideoEncodingPtr pEncodings;
int nFormats; int nFormats;

View File

@ -109,7 +109,7 @@ typedef void (*xf86XvMCDestroySubpictureProcPtr) (ScrnInfoPtr pScrn,
XvMCSubpicturePtr subpicture); XvMCSubpicturePtr subpicture);
typedef struct { typedef struct {
char *name; const char *name;
int num_surfaces; int num_surfaces;
XF86MCSurfaceInfoPtr *surfaces; XF86MCSurfaceInfoPtr *surfaces;
int num_subpictures; int num_subpictures;

View File

@ -90,7 +90,7 @@ typedef struct {
#include "configProcs.h" #include "configProcs.h"
#include <stdlib.h> #include <stdlib.h>
#define TestFree(a) if (a) { free (a); a = NULL; } #define TestFree(a) if (a) { free ((void *) a); a = NULL; }
#define parsePrologue(typeptr,typerec) typeptr ptr; \ #define parsePrologue(typeptr,typerec) typeptr ptr; \
if( (ptr=calloc(1,sizeof(typerec))) == NULL ) { return NULL; } if( (ptr=calloc(1,sizeof(typerec))) == NULL ) { return NULL; }

View File

@ -97,8 +97,7 @@ xf86parseFilesSection(void)
j = FALSE; j = FALSE;
str = val.str; str = val.str;
if (ptr->file_fontpath == NULL) { if (ptr->file_fontpath == NULL) {
ptr->file_fontpath = malloc(1); ptr->file_fontpath = calloc(1, 1);
ptr->file_fontpath[0] = '\0';
i = strlen(str) + 1; i = strlen(str) + 1;
} }
else { else {

View File

@ -189,7 +189,7 @@ xf86printServerFlagsSection(FILE * f, XF86ConfFlagsPtr flags)
} }
static XF86OptionPtr static XF86OptionPtr
addNewOption2(XF86OptionPtr head, char *name, char *val, int used) addNewOption2(XF86OptionPtr head, char *name, char *_val, int used)
{ {
XF86OptionPtr new, old = NULL; XF86OptionPtr new, old = NULL;
@ -202,7 +202,7 @@ addNewOption2(XF86OptionPtr head, char *name, char *val, int used)
else else
new = calloc(1, sizeof(*new)); new = calloc(1, sizeof(*new));
new->opt_name = name; new->opt_name = name;
new->opt_val = val; new->opt_val = _val;
new->opt_used = used; new->opt_used = used;
if (old) if (old)
@ -211,9 +211,9 @@ addNewOption2(XF86OptionPtr head, char *name, char *val, int used)
} }
XF86OptionPtr XF86OptionPtr
xf86addNewOption(XF86OptionPtr head, char *name, char *val) xf86addNewOption(XF86OptionPtr head, char *name, char *_val)
{ {
return addNewOption2(head, name, val, 0); return addNewOption2(head, name, _val, 0);
} }
void void
@ -230,11 +230,11 @@ XF86OptionPtr
xf86optionListDup(XF86OptionPtr opt) xf86optionListDup(XF86OptionPtr opt)
{ {
XF86OptionPtr newopt = NULL; XF86OptionPtr newopt = NULL;
char *val; char *_val;
while (opt) { while (opt) {
val = opt->opt_val ? strdup(opt->opt_val) : NULL; _val = opt->opt_val ? strdup(opt->opt_val) : NULL;
newopt = xf86addNewOption(newopt, strdup(opt->opt_name), val); newopt = xf86addNewOption(newopt, strdup(opt->opt_name), _val);
newopt->opt_used = opt->opt_used; newopt->opt_used = opt->opt_used;
if (opt->opt_comment) if (opt->opt_comment)
newopt->opt_comment = strdup(opt->opt_comment); newopt->opt_comment = strdup(opt->opt_comment);

View File

@ -141,7 +141,7 @@ xf86freeExtensions(XF86ConfExtensionsPtr ptr);
#include <xorg-config.h> #include <xorg-config.h>
#endif #endif
#ifndef IN_XSERVER #ifndef HAVE_XORG_CONFIG_H
/* Externally provided functions */ /* Externally provided functions */
void void
ErrorF(const char *f, ...); ErrorF(const char *f, ...);

View File

@ -820,7 +820,7 @@ static char *
OpenConfigDir(const char *path, const char *cmdline, const char *projroot, OpenConfigDir(const char *path, const char *cmdline, const char *projroot,
const char *confname) const char *confname)
{ {
char *dirpath, *pathcopy; char *dirpath = NULL, *pathcopy;
const char *template; const char *template;
Bool found = FALSE; Bool found = FALSE;
int cmdlineUsed = 0; int cmdlineUsed = 0;
@ -1078,9 +1078,10 @@ xf86nameCompare(const char *s1, const char *s2)
} }
char * char *
xf86addComment(char *cur, char *add) xf86addComment(char *cur, const char *add)
{ {
char *str; char *str;
const char *cstr;
int len, curlen, iscomment, hasnewline = 0, insnewline, endnewline; int len, curlen, iscomment, hasnewline = 0, insnewline, endnewline;
if (add == NULL || add[0] == '\0') if (add == NULL || add[0] == '\0')
@ -1095,14 +1096,14 @@ xf86addComment(char *cur, char *add)
else else
curlen = 0; curlen = 0;
str = add; cstr = add;
iscomment = 0; iscomment = 0;
while (*str) { while (*cstr) {
if (*str != ' ' && *str != '\t') if (*cstr != ' ' && *cstr != '\t')
break; break;
++str; ++cstr;
} }
iscomment = (*str == '#'); iscomment = (*cstr == '#');
len = strlen(add); len = strlen(add);
endnewline = add[len - 1] == '\n'; endnewline = add[len - 1] == '\n';

View File

@ -85,7 +85,7 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
int load_type; int load_type;
char *load_name; const char *load_name;
XF86OptionPtr load_opt; XF86OptionPtr load_opt;
char *load_comment; char *load_comment;
int ignore; int ignore;
@ -116,7 +116,7 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *ml_identifier; const char *ml_identifier;
int ml_clock; int ml_clock;
int ml_hdisplay; int ml_hdisplay;
int ml_hsyncstart; int ml_hsyncstart;
@ -134,21 +134,21 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *vp_identifier; const char *vp_identifier;
XF86OptionPtr vp_option_lst; XF86OptionPtr vp_option_lst;
char *vp_comment; char *vp_comment;
} XF86ConfVideoPortRec, *XF86ConfVideoPortPtr; } XF86ConfVideoPortRec, *XF86ConfVideoPortPtr;
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *va_identifier; const char *va_identifier;
char *va_vendor; const char *va_vendor;
char *va_board; const char *va_board;
char *va_busid; const char *va_busid;
char *va_driver; const char *va_driver;
XF86OptionPtr va_option_lst; XF86OptionPtr va_option_lst;
XF86ConfVideoPortPtr va_port_lst; XF86ConfVideoPortPtr va_port_lst;
char *va_fwdref; const char *va_fwdref;
char *va_comment; char *va_comment;
} XF86ConfVideoAdaptorRec, *XF86ConfVideoAdaptorPtr; } XF86ConfVideoAdaptorRec, *XF86ConfVideoAdaptorPtr;
@ -165,22 +165,22 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *modes_identifier; const char *modes_identifier;
XF86ConfModeLinePtr mon_modeline_lst; XF86ConfModeLinePtr mon_modeline_lst;
char *modes_comment; char *modes_comment;
} XF86ConfModesRec, *XF86ConfModesPtr; } XF86ConfModesRec, *XF86ConfModesPtr;
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *ml_modes_str; const char *ml_modes_str;
XF86ConfModesPtr ml_modes; XF86ConfModesPtr ml_modes;
} XF86ConfModesLinkRec, *XF86ConfModesLinkPtr; } XF86ConfModesLinkRec, *XF86ConfModesLinkPtr;
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *mon_identifier; const char *mon_identifier;
char *mon_vendor; const char *mon_vendor;
char *mon_modelname; const char *mon_modelname;
int mon_width; /* in mm */ int mon_width; /* in mm */
int mon_height; /* in mm */ int mon_height; /* in mm */
XF86ConfModeLinePtr mon_modeline_lst; XF86ConfModeLinePtr mon_modeline_lst;
@ -201,21 +201,21 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *dev_identifier; const char *dev_identifier;
char *dev_vendor; const char *dev_vendor;
char *dev_board; const char *dev_board;
char *dev_chipset; const char *dev_chipset;
char *dev_busid; const char *dev_busid;
char *dev_card; const char *dev_card;
char *dev_driver; const char *dev_driver;
char *dev_ramdac; const char *dev_ramdac;
int dev_dacSpeeds[CONF_MAXDACSPEEDS]; int dev_dacSpeeds[CONF_MAXDACSPEEDS];
int dev_videoram; int dev_videoram;
int dev_textclockfreq; int dev_textclockfreq;
unsigned long dev_bios_base; unsigned long dev_bios_base;
unsigned long dev_mem_base; unsigned long dev_mem_base;
unsigned long dev_io_base; unsigned long dev_io_base;
char *dev_clockchip; const char *dev_clockchip;
int dev_clocks; int dev_clocks;
int dev_clock[CONF_MAXCLOCKS]; int dev_clock[CONF_MAXCLOCKS];
int dev_chipid; int dev_chipid;
@ -228,7 +228,7 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *mode_name; const char *mode_name;
} XF86ModeRec, *XF86ModePtr; } XF86ModeRec, *XF86ModePtr;
typedef struct { typedef struct {
@ -239,7 +239,7 @@ typedef struct {
int disp_virtualY; int disp_virtualY;
int disp_depth; int disp_depth;
int disp_bpp; int disp_bpp;
char *disp_visual; const char *disp_visual;
parser_rgb disp_weight; parser_rgb disp_weight;
parser_rgb disp_black; parser_rgb disp_black;
parser_rgb disp_white; parser_rgb disp_white;
@ -255,20 +255,20 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *al_adaptor_str; const char *al_adaptor_str;
XF86ConfVideoAdaptorPtr al_adaptor; XF86ConfVideoAdaptorPtr al_adaptor;
} XF86ConfAdaptorLinkRec, *XF86ConfAdaptorLinkPtr; } XF86ConfAdaptorLinkRec, *XF86ConfAdaptorLinkPtr;
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *scrn_identifier; const char *scrn_identifier;
char *scrn_obso_driver; const char *scrn_obso_driver;
int scrn_defaultdepth; int scrn_defaultdepth;
int scrn_defaultbpp; int scrn_defaultbpp;
int scrn_defaultfbbpp; int scrn_defaultfbbpp;
char *scrn_monitor_str; const char *scrn_monitor_str;
XF86ConfMonitorPtr scrn_monitor; XF86ConfMonitorPtr scrn_monitor;
char *scrn_device_str; const char *scrn_device_str;
XF86ConfDevicePtr scrn_device; XF86ConfDevicePtr scrn_device;
XF86ConfAdaptorLinkPtr scrn_adaptor_lst; XF86ConfAdaptorLinkPtr scrn_adaptor_lst;
XF86ConfDisplayPtr scrn_display_lst; XF86ConfDisplayPtr scrn_display_lst;
@ -279,8 +279,8 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *inp_identifier; const char *inp_identifier;
char *inp_driver; const char *inp_driver;
XF86OptionPtr inp_option_lst; XF86OptionPtr inp_option_lst;
char *inp_comment; char *inp_comment;
} XF86ConfInputRec, *XF86ConfInputPtr; } XF86ConfInputRec, *XF86ConfInputPtr;
@ -288,7 +288,7 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
XF86ConfInputPtr iref_inputdev; XF86ConfInputPtr iref_inputdev;
char *iref_inputdev_str; const char *iref_inputdev_str;
XF86OptionPtr iref_option_lst; XF86OptionPtr iref_option_lst;
} XF86ConfInputrefRec, *XF86ConfInputrefPtr; } XF86ConfInputrefRec, *XF86ConfInputrefPtr;
@ -304,8 +304,8 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *identifier; const char *identifier;
char *driver; const char *driver;
struct xorg_list match_product; struct xorg_list match_product;
struct xorg_list match_vendor; struct xorg_list match_vendor;
struct xorg_list match_device; struct xorg_list match_device;
@ -338,30 +338,30 @@ typedef struct {
GenericListRec list; GenericListRec list;
int adj_scrnum; int adj_scrnum;
XF86ConfScreenPtr adj_screen; XF86ConfScreenPtr adj_screen;
char *adj_screen_str; const char *adj_screen_str;
XF86ConfScreenPtr adj_top; XF86ConfScreenPtr adj_top;
char *adj_top_str; const char *adj_top_str;
XF86ConfScreenPtr adj_bottom; XF86ConfScreenPtr adj_bottom;
char *adj_bottom_str; const char *adj_bottom_str;
XF86ConfScreenPtr adj_left; XF86ConfScreenPtr adj_left;
char *adj_left_str; const char *adj_left_str;
XF86ConfScreenPtr adj_right; XF86ConfScreenPtr adj_right;
char *adj_right_str; const char *adj_right_str;
int adj_where; int adj_where;
int adj_x; int adj_x;
int adj_y; int adj_y;
char *adj_refscreen; const char *adj_refscreen;
} XF86ConfAdjacencyRec, *XF86ConfAdjacencyPtr; } XF86ConfAdjacencyRec, *XF86ConfAdjacencyPtr;
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *inactive_device_str; const char *inactive_device_str;
XF86ConfDevicePtr inactive_device; XF86ConfDevicePtr inactive_device;
} XF86ConfInactiveRec, *XF86ConfInactivePtr; } XF86ConfInactiveRec, *XF86ConfInactivePtr;
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *lay_identifier; const char *lay_identifier;
XF86ConfAdjacencyPtr lay_adjacency_lst; XF86ConfAdjacencyPtr lay_adjacency_lst;
XF86ConfInactivePtr lay_inactive_lst; XF86ConfInactivePtr lay_inactive_lst;
XF86ConfInputrefPtr lay_input_lst; XF86ConfInputrefPtr lay_input_lst;
@ -371,22 +371,22 @@ typedef struct {
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *vs_name; const char *vs_name;
char *vs_identifier; const char *vs_identifier;
XF86OptionPtr vs_option_lst; XF86OptionPtr vs_option_lst;
char *vs_comment; char *vs_comment;
} XF86ConfVendSubRec, *XF86ConfVendSubPtr; } XF86ConfVendSubRec, *XF86ConfVendSubPtr;
typedef struct { typedef struct {
GenericListRec list; GenericListRec list;
char *vnd_identifier; const char *vnd_identifier;
XF86OptionPtr vnd_option_lst; XF86OptionPtr vnd_option_lst;
XF86ConfVendSubPtr vnd_sub_lst; XF86ConfVendSubPtr vnd_sub_lst;
char *vnd_comment; char *vnd_comment;
} XF86ConfVendorRec, *XF86ConfVendorPtr; } XF86ConfVendorRec, *XF86ConfVendorPtr;
typedef struct { typedef struct {
char *dri_group_name; const char *dri_group_name;
int dri_group; int dri_group;
int dri_mode; int dri_mode;
char *dri_comment; char *dri_comment;
@ -462,7 +462,7 @@ extern _X_EXPORT int xf86itemNotSublist(GenericListPtr list_1,
extern _X_EXPORT int xf86pathIsAbsolute(const char *path); extern _X_EXPORT int xf86pathIsAbsolute(const char *path);
extern _X_EXPORT int xf86pathIsSafe(const char *path); extern _X_EXPORT int xf86pathIsSafe(const char *path);
extern _X_EXPORT char *xf86addComment(char *cur, char *add); extern _X_EXPORT char *xf86addComment(char *cur, const char *add);
extern _X_EXPORT Bool xf86getBoolValue(Bool *val, const char *str); extern _X_EXPORT Bool xf86getBoolValue(Bool *val, const char *str);
#endif /* _xf86Parser_h_ */ #endif /* _xf86Parser_h_ */