From 7ff061a944119ccb1c79b9755dd6b775c9984a1c Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 5 Jul 2017 16:54:15 -0400 Subject: Add epoxy_set_resolver_failure_handler() Signed-off-by: Adam Jackson --- include/epoxy/gl.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include') diff --git a/include/epoxy/gl.h b/include/epoxy/gl.h index 88b9a15..ce4763f 100644 --- a/include/epoxy/gl.h +++ b/include/epoxy/gl.h @@ -92,6 +92,20 @@ EPOXY_PUBLIC bool epoxy_has_gl_extension(const char *extension); EPOXY_PUBLIC bool epoxy_is_desktop_gl(void); EPOXY_PUBLIC int epoxy_gl_version(void); +/* + * the type of the stub function that the failure handler must return; + * this function will be called on subsequent calls to the same bogus + * function name + */ +typedef void (*epoxy_resolver_stub_t)(void); + +/* the type of the failure handler itself */ +typedef epoxy_resolver_stub_t +(*epoxy_resolver_failure_handler_t)(const char *name); + +EPOXY_PUBLIC epoxy_resolver_failure_handler_t +epoxy_set_resolver_failure_handler(epoxy_resolver_failure_handler_t handler); + EPOXY_END_DECLS #endif /* EPOXY_GL_H */ -- cgit v1.2.1