From b565b6950bbd689be453983e3940235003ffcc45 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 20 Oct 2011 08:48:36 +0200 Subject: g_unix_signal: Remove g_ prefix to not collide with glib There is a g_unix_signal_new function in glib as well now, but that is only allowed to be used for SIGINT, SIGHUP and SIGTERM, so we have to stay with our own. --- src/unix_signal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/unix_signal.h (limited to 'src/unix_signal.h') 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 + +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 */ -- cgit