summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2017-07-05 16:54:15 -0400
committerAdam Jackson <ajax@redhat.com>2017-07-14 12:53:02 -0400
commit7ff061a944119ccb1c79b9755dd6b775c9984a1c (patch)
tree8b4460400d46310b90de2177e102b6254ddbb8ce /include
parente0426c94f6d0b45452d7a5f1b60a0d569be0db47 (diff)
downloadlibepoxy-7ff061a944119ccb1c79b9755dd6b775c9984a1c.tar.gz
Add epoxy_set_resolver_failure_handler()
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/epoxy/gl.h14
1 files changed, 14 insertions, 0 deletions
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 */