xglcomp

annotate src/xerr.h @ 9:245dd960f0b3

added xerror handling helpers
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 02 Feb 2016 12:54:02 +0200
parents
children
rev   line source
nuclear@9 1 #ifndef XERR_H_
nuclear@9 2 #define XERR_H_
nuclear@9 3
nuclear@9 4 #include <X11/Xlib.h>
nuclear@9 5
nuclear@9 6 typedef int (*xerr_handler_type)(Display*, XErrorEvent*);
nuclear@9 7
nuclear@9 8 void push_xerr_handler(xerr_handler_type func);
nuclear@9 9 void pop_xerr_handler();
nuclear@9 10
nuclear@9 11 int xerr_debug(Display *dpy, XErrorEvent *err);
nuclear@9 12 int xerr_ignore(Display *dpy, XErrorEvent *err);
nuclear@9 13
nuclear@9 14 #endif /* XERR_H_ */