xglcomp

view src/xerr.h @ 11:cb636a23f4f2

lifted X error reporting from Xlib
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 04 Feb 2016 04:15:15 +0200
parents
children
line source
1 #ifndef XERR_H_
2 #define XERR_H_
4 #include <X11/Xlib.h>
6 typedef int (*xerr_handler_type)(Display*, XErrorEvent*);
8 void push_xerr_handler(xerr_handler_type func);
9 void pop_xerr_handler();
11 int xerr_debug(Display *dpy, XErrorEvent *err);
12 int xerr_ignore(Display *dpy, XErrorEvent *err);
14 #endif /* XERR_H_ */