diff options
author | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-13 05:26:06 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-15 11:07:11 +0100 |
commit | 4aa2b7230439dd1c5c357b685365e915f3171aa2 (patch) | |
tree | 0535dda8d1ebf3ebfa84ccee534e4524afb77b8e /src/unix_signal.h | |
parent | f67fa6dbefc2de64ed31b77fc49b6c3f67c53705 (diff) | |
download | pa-sink-ctl-4aa2b7230439dd1c5c357b685365e915f3171aa2.tar.gz pa-sink-ctl-4aa2b7230439dd1c5c357b685365e915f3171aa2.tar.bz2 pa-sink-ctl-4aa2b7230439dd1c5c357b685365e915f3171aa2.zip |
Replace our custom signalfd() fallback with glib one (available as of 2.54)
Back in 2011 SIGWINCH couldn't be used with
g_unix_signal_add. This has changed in 2.54 (released Sep. 2017).
That means we can drop our wrapper now.
Diffstat (limited to 'src/unix_signal.h')
-rw-r--r-- | src/unix_signal.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/unix_signal.h b/src/unix_signal.h deleted file mode 100644 index da47a99..0000000 --- a/src/unix_signal.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * pa-sink-ctl - NCurses based Pulseaudio control client - * Copyright (C) 2011 Benjamin Franzke <benjaminfranzke@googlemail.com> - * - * 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 3 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, see <http://www.gnu.org/licenses/>. - */ - -#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 */ |