aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/dri_common.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-11-15 14:22:16 -0800
committerEric Anholt <[email protected]>2018-11-16 15:38:18 -0800
commitc2b515379bfc669660133bb2d25e50bb04ac0d66 (patch)
treee1af6406e849b58eda76de3ef68fc25626de2a21 /src/glx/dri_common.h
parent7076e9f116c2060a7f28680178d96c188c7177df (diff)
glx: Move DRI extensions pointer loading to driOpenDriver().
The only thing you do with a dri driver handle is get the extensions pointer, so just fold it in to simplify the callers. v2: Add the declaration of driGetDriverExtensions() that got lost in a rebase. Reviewed-by: Eric Engestrom <[email protected]> (v1) Reviewed-by: Emil Velikov <[email protected]> (v1)
Diffstat (limited to 'src/glx/dri_common.h')
-rw-r--r--src/glx/dri_common.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h
index 4d97ff82b4d..363f15bf9bb 100644
--- a/src/glx/dri_common.h
+++ b/src/glx/dri_common.h
@@ -69,10 +69,8 @@ extern void dri_message(int level, const char *f, ...) PRINTFLIKE(2, 3);
#define ErrorMessageF(...) dri_message(_LOADER_WARNING, __VA_ARGS__)
#define CriticalErrorMessageF(...) dri_message(_LOADER_FATAL, __VA_ARGS__)
-extern void *driOpenDriver(const char *driverName);
-
-extern const __DRIextension **
-driGetDriverExtensions(void *handle, const char *driver_name);
+extern const __DRIextension **driOpenDriver(const char *driverName,
+ void **out_driver_handle);
extern bool
dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,