diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-20 08:48:36 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-20 08:54:57 +0200 |
commit | b565b6950bbd689be453983e3940235003ffcc45 (patch) | |
tree | 81d56258be5371d2b5cdbb088adbceba499632b8 /src/unix_signal.h | |
parent | af293d4059ff1e0873d452d871d41b501ed1636a (diff) | |
download | pa-sink-ctl-b565b6950bbd689be453983e3940235003ffcc45.tar.gz pa-sink-ctl-b565b6950bbd689be453983e3940235003ffcc45.tar.bz2 pa-sink-ctl-b565b6950bbd689be453983e3940235003ffcc45.zip |
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.
Diffstat (limited to 'src/unix_signal.h')
-rw-r--r-- | src/unix_signal.h | 14 |
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 */ |