diff options
author | Adam Jackson <ajax@redhat.com> | 2017-07-05 16:54:15 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-07-14 12:53:02 -0400 |
commit | 7ff061a944119ccb1c79b9755dd6b775c9984a1c (patch) | |
tree | 8b4460400d46310b90de2177e102b6254ddbb8ce /include | |
parent | e0426c94f6d0b45452d7a5f1b60a0d569be0db47 (diff) | |
download | libepoxy-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.h | 14 |
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 */ |