make second param of driParseConfigFiles() const
This commit is contained in:
parent
5b9a9d46d4
commit
97fcc0e77b
|
@ -837,7 +837,7 @@ static void optConfEndElem (void *userData, const XML_Char *name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** \brief Initialize an option cache based on info */
|
/** \brief Initialize an option cache based on info */
|
||||||
static void initOptionCache (driOptionCache *cache, driOptionCache *info) {
|
static void initOptionCache (driOptionCache *cache, const driOptionCache *info) {
|
||||||
cache->info = info->info;
|
cache->info = info->info;
|
||||||
cache->tableSize = info->tableSize;
|
cache->tableSize = info->tableSize;
|
||||||
cache->values = MALLOC ((1<<info->tableSize) * sizeof (driOptionValue));
|
cache->values = MALLOC ((1<<info->tableSize) * sizeof (driOptionValue));
|
||||||
|
@ -888,7 +888,7 @@ static void parseOneConfigFile (XML_Parser p) {
|
||||||
#undef BUF_SIZE
|
#undef BUF_SIZE
|
||||||
}
|
}
|
||||||
|
|
||||||
void driParseConfigFiles (driOptionCache *cache, driOptionCache *info,
|
void driParseConfigFiles (driOptionCache *cache, const driOptionCache *info,
|
||||||
GLint screenNum, const char *driverName) {
|
GLint screenNum, const char *driverName) {
|
||||||
char *filenames[2] = {"/etc/drirc", NULL};
|
char *filenames[2] = {"/etc/drirc", NULL};
|
||||||
char *home;
|
char *home;
|
||||||
|
|
|
@ -99,7 +99,7 @@ void driParseOptionInfo (driOptionCache *info,
|
||||||
*
|
*
|
||||||
* To be called in <driver>CreateContext. screenNum and driverName select
|
* To be called in <driver>CreateContext. screenNum and driverName select
|
||||||
* device sections. */
|
* device sections. */
|
||||||
void driParseConfigFiles (driOptionCache *cache, driOptionCache *info,
|
void driParseConfigFiles (driOptionCache *cache, const driOptionCache *info,
|
||||||
GLint screenNum, const char *driverName);
|
GLint screenNum, const char *driverName);
|
||||||
/** \brief Destroy option info
|
/** \brief Destroy option info
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue