xglcomp

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/xerr.h	Tue Feb 02 12:54:02 2016 +0200
     1.3 @@ -0,0 +1,14 @@
     1.4 +#ifndef XERR_H_
     1.5 +#define XERR_H_
     1.6 +
     1.7 +#include <X11/Xlib.h>
     1.8 +
     1.9 +typedef int (*xerr_handler_type)(Display*, XErrorEvent*);
    1.10 +
    1.11 +void push_xerr_handler(xerr_handler_type func);
    1.12 +void pop_xerr_handler();
    1.13 +
    1.14 +int xerr_debug(Display *dpy, XErrorEvent *err);
    1.15 +int xerr_ignore(Display *dpy, XErrorEvent *err);
    1.16 +
    1.17 +#endif	/* XERR_H_ */