From e8ba2812e6995d1ec95c972a1b48ac29a99531dd Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 5 May 2010 17:37:19 +0800 Subject: egl: Add _eglSearchPathForEach. The function can be used by a driver to check each search path of EGL. --- src/egl/main/egldriver.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/egl/main/egldriver.c') diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index 6384242b09..052e6110bf 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -652,6 +652,21 @@ _eglInitDriverFallbacks(_EGLDriver *drv) } +/** + * Invoke a callback function on each EGL search path. + * + * The first argument of the callback function is the name of the search path. + * The second argument is the length of the name. + */ +void +_eglSearchPathForEach(EGLBoolean (*callback)(const char *, size_t, void *), + void *callback_data) +{ + const char *search_path = _eglGetSearchPath(); + _eglPreloadForEach(search_path, callback, callback_data); +} + + /** * Set the probe cache at the given key. * -- cgit v1.2.3