summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-02-03 16:16:13 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2017-02-03 16:16:13 +0000
commitd94b9c28b53b1bf99f4a497486af681d8bc95d95 (patch)
tree12548a90872fd7ba872fe2f688427555da2d3ff7 /include
parent30b8a4cd2d115eab93ca39709c956f48aa8dadbe (diff)
downloadlibepoxy-d94b9c28b53b1bf99f4a497486af681d8bc95d95.tar.gz
Add epoxy_has_glx()
Libraries and applications that depend on Epoxy currently have no way to safely degrade functionality if they are used on a platform without GLX support; the only way to achieve that is to perform a symbol check themselves, by essentially copying what Epoxy already does. By exposing `epoxy_has_glx()`, those libraries and applications now have the chance of querying Epoxy itself and gracefully handle failure.
Diffstat (limited to 'include')
-rw-r--r--include/epoxy/glx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/epoxy/glx.h b/include/epoxy/glx.h
index c911b7c..a06b13d 100644
--- a/include/epoxy/glx.h
+++ b/include/epoxy/glx.h
@@ -50,6 +50,7 @@ EPOXY_BEGIN_DECLS
EPOXY_PUBLIC bool epoxy_has_glx_extension(Display *dpy, int screen, const char *extension);
EPOXY_PUBLIC int epoxy_glx_version(Display *dpy, int screen);
+EPOXY_PUBLIC bool epoxy_has_glx(Display *dpy);
EPOXY_END_DECLS