summaryrefslogtreecommitdiff
path: root/src/errors.h
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2006-03-03 15:53:10 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2006-03-03 15:53:10 +0000
commit832968ddd619ae92120a352b4566c978911b2b69 (patch)
treee64f32a14d1afa116fcdcc4634345ef43f2b8e1f /src/errors.h
parent7a8e3c94fd5b721108b68f74bab85e5c0d3265aa (diff)
downloadmetacity-832968ddd619ae92120a352b4566c978911b2b69.tar.gz
metacity-832968ddd619ae92120a352b4566c978911b2b69.tar.bz2
Split the ScreenInfo data structure into separate, new files
Wed Mar 3 13:25:03 2006 Søren Sandmann <sandmann@redhat.com> * src/compositor.c, src/c-screen.[ch]: Split the ScreenInfo data structure into separate, new files c-screen.[ch]. * src/errors.c (x_error_handler): Forward foreign errors to foreign displays. * src/errors.c (meta_errors_register_foreign_display): Implement this function * src/errors.h: Add new meta_errors_register_foreign_display()
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h
index e7c8f38..94cf603 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -25,7 +25,15 @@
#include "util.h"
#include "display.h"
+typedef void (* ErrorHandler) (Display *dpy,
+ XErrorEvent *error,
+ gpointer data);
+
void meta_errors_init (void);
+void meta_errors_register_foreign_display (Display *foreign_dpy,
+ ErrorHandler handler,
+ gpointer data);
+
void meta_error_trap_push (MetaDisplay *display);
void meta_error_trap_pop (MetaDisplay *display,
gboolean last_request_was_roundtrip);