summaryrefslogtreecommitdiff
path: root/daemon/gdm-xerrors.h
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2010-06-16 18:41:49 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2010-06-16 18:48:50 -0400
commit23d5ed6b9ccbffbfb76e4551cce9051eea62cc52 (patch)
tree32ca821e40e96408420a23a052a6eb46fa12adbf /daemon/gdm-xerrors.h
parentf8da7fc999ba46431ffbb5b562f9b35c88a0fd2d (diff)
downloadgdm-23d5ed6b9ccbffbfb76e4551cce9051eea62cc52.tar.gz
Add an X11 error trap mechanism
Copied from GDK
Diffstat (limited to 'daemon/gdm-xerrors.h')
-rw-r--r--daemon/gdm-xerrors.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/daemon/gdm-xerrors.h b/daemon/gdm-xerrors.h
new file mode 100644
index 00000000..16efca31
--- /dev/null
+++ b/daemon/gdm-xerrors.h
@@ -0,0 +1,39 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
+
+/* Metacity X error handling */
+
+/*
+ * Copyright (C) 2001 Havoc Pennington
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef GDM_XERRORS_H
+#define GDM_XERRORS_H
+
+#include <glib.h>
+#include <X11/Xlib.h>
+
+typedef void (* GdmXErrorHandler) (Display *dpy,
+ XErrorEvent *error,
+ gpointer data);
+
+void gdm_xerrors_init (void);
+
+void gdm_error_trap_push (void);
+gint gdm_error_trap_pop (void);
+
+#endif