#ifndef FVWMLIB_XERROR_H
#define FVWMLIB_XERROR_H
#include "fvwm_x11.h"

void do_coredump(void);

/* not really a wrapper, but useful and X related */
void PrintXErrorAndCoredump(Display *dpy, XErrorEvent *error, char *MyName);

typedef int (*ferror_handler_t)(Display *, XErrorEvent *);
void ferror_set_temp_error_handler(ferror_handler_t new_handler);
void ferror_reset_temp_error_handler(void);
int ferror_call_next_error_handler(Display *dpy, XErrorEvent *error);

#endif /* FVWMLIB_XERROR_H */
