summaryrefslogtreecommitdiff
path: root/src/unix_signal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/unix_signal.h')
-rw-r--r--src/unix_signal.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/unix_signal.h b/src/unix_signal.h
new file mode 100644
index 0000000..2e1aab6
--- /dev/null
+++ b/src/unix_signal.h
@@ -0,0 +1,14 @@
+#ifndef UNIX_SIGNAL_H
+#define UNIX_SIGNAL_H
+
+#include <glib.h>
+
+GSource *
+unix_signal_source_new(gint signum);
+guint
+unix_signal_add(gint signum, GSourceFunc function, gpointer data);
+guint
+unix_signal_add_full(gint priority, gint signum, GSourceFunc function,
+ gpointer data, GDestroyNotify notify);
+
+#endif /* UNIX_SIGNAL_H */