summaryrefslogtreecommitdiff
path: root/src/glibext/signal.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-07-28 21:12:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-07-28 21:12:51 (GMT)
commitee9bbfc34d86bfcf9384ed93e4300f6464528b9b (patch)
tree3efcb8bf919198126c80eae0532c731e25703cc7 /src/glibext/signal.h
parent250d2773aa372434b721a4e72bff5da7b4f3fb4e (diff)
Provided a way to receive a signal in the main thread.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@383 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/glibext/signal.h')
-rw-r--r--src/glibext/signal.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/glibext/signal.h b/src/glibext/signal.h
new file mode 100644
index 0000000..8d139a7
--- /dev/null
+++ b/src/glibext/signal.h
@@ -0,0 +1,37 @@
+
+/* Chrysalide - Outil d'analyse de fichiers binaires
+ * signal.h - prototypes pour un encadrement des signaux supplémentaire par rapport à celui de la GLib
+ *
+ * Copyright (C) 2009-2012 Cyrille Bagard
+ *
+ * This file is part of Chrysalide.
+ *
+ * OpenIDA 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * OpenIDA 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 Foobar. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef _GLIBEXT_SIGNAL_H
+#define _GLIBEXT_SIGNAL_H
+
+
+#include <glib-object.h>
+
+
+
+/* Reproduit le comportement de la fonction g_signal_connect(). */
+gulong g_signal_connect_to_main(gpointer, const gchar *, GCallback, gpointer);
+
+
+
+#endif /* _GLIBEXT_SIGNAL_H */