summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-02-03 12:38:03 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-02-03 14:16:16 +0800
commit0d089cbb48d099b833768556266114d537c91299 (patch)
tree46507eb653855913242aa9075b957432481663e5 /src/egl
parent8e6a964411ea3e1d7dc4c86c314e326e3be2b0eb (diff)
downloadexternal_mesa3d-0d089cbb48d099b833768556266114d537c91299.zip
external_mesa3d-0d089cbb48d099b833768556266114d537c91299.tar.gz
external_mesa3d-0d089cbb48d099b833768556266114d537c91299.tar.bz2
egl: Rename _eglPreloadForEach callbacks.
Rename _eglPreloadFile to _eglLoaderFile, and _eglPreloadFile to _eglLoaderFile. There are several _eglPreload* functions. The callbacks do not belong to them and it should be better to give them a different prefix.
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/egldriver.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c
index d58991a..a8a8e30 100644
--- a/src/egl/main/egldriver.c
+++ b/src/egl/main/egldriver.c
@@ -261,15 +261,15 @@ _eglMatchDriver(_EGLDisplay *dpy)
/**
- * A preload function for use with _eglPreloadForEach. The preload data is the
+ * A loader function for use with _eglPreloadForEach. The loader data is the
* filename of the driver. This function stops on the first valid driver.
*/
static EGLBoolean
-_eglPreloadFile(const char *dir, size_t len, void *preload_data)
+_eglLoaderFile(const char *dir, size_t len, void *loader_data)
{
_EGLDriver *drv;
char path[1024];
- const char *filename = (const char *) preload_data;
+ const char *filename = (const char *) loader_data;
size_t flen = strlen(filename);
/* make a full path */
@@ -308,11 +308,11 @@ _eglPreloadFile(const char *dir, size_t len, void *preload_data)
/**
- * A preload function for use with _eglPreloadForEach. The preload data is the
+ * A loader function for use with _eglPreloadForEach. The loader data is the
* pattern (prefix) of the files to look for.
*/
static EGLBoolean
-_eglPreloadPattern(const char *dir, size_t len, void *preload_data)
+_eglLoaderPattern(const char *dir, size_t len, void *loader_data)
{
#if defined(_EGL_PLATFORM_POSIX)
const char *prefix, *suffix;
@@ -333,7 +333,7 @@ _eglPreloadPattern(const char *dir, size_t len, void *preload_data)
if (!dirp)
return EGL_TRUE;
- prefix = (const char *) preload_data;
+ prefix = (const char *) loader_data;
prefix_len = strlen(prefix);
suffix = library_suffix();
suffix_len = (suffix) ? strlen(suffix) : 0;
@@ -380,8 +380,8 @@ _eglPreloadPattern(const char *dir, size_t len, void *preload_data)
*/
static EGLint
_eglPreloadForEach(const char *search_path,
- EGLBoolean (*preload)(const char *, size_t, void *),
- void *preload_data)
+ EGLBoolean (*loader)(const char *, size_t, void *),
+ void *loader_data)
{
const char *cur, *next;
size_t len;
@@ -392,7 +392,7 @@ _eglPreloadForEach(const char *search_path,
next = strchr(cur, ':');
len = (next) ? next - cur : strlen(cur);
- if (!preload(cur, len, preload_data))
+ if (!loader(cur, len, loader))
break;
cur = (next) ? next + 1 : NULL;
@@ -467,7 +467,7 @@ _eglPreloadUserDriver(void)
if (!env)
return EGL_FALSE;
- if (!_eglPreloadForEach(search_path, _eglPreloadFile, (void *) env)) {
+ if (!_eglPreloadForEach(search_path, _eglLoaderFile, (void *) env)) {
_eglLog(_EGL_WARNING, "EGL_DRIVER is set to an invalid driver");
return EGL_FALSE;
}
@@ -503,7 +503,7 @@ _eglPreloadDisplayDrivers(void)
return EGL_FALSE;
return (_eglPreloadForEach(_eglGetSearchPath(),
- _eglPreloadPattern, (void *) prefix) > 0);
+ _eglLoaderPattern, (void *) prefix) > 0);
}
@@ -514,7 +514,7 @@ static EGLBoolean
_eglPreloadDefaultDriver(void)
{
return (_eglPreloadForEach(_eglGetSearchPath(),
- _eglPreloadFile, (void *) DefaultDriverName) > 0);
+ _eglLoaderFile, (void *) DefaultDriverName) > 0);
}