diff options
author | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-13 05:26:06 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-13 05:45:39 +0100 |
commit | 3d0e6d54029713b158a9c53ed7956a49074db9bf (patch) | |
tree | b4ef30da4fb2b99f9de2f4bb7851f2039e27aa0d /src/unix_signal.h | |
parent | cfe267835813b684b9c8ef81b096c2c25263f544 (diff) | |
download | pa-sink-ctl-3d0e6d54029713b158a9c53ed7956a49074db9bf.tar.gz pa-sink-ctl-3d0e6d54029713b158a9c53ed7956a49074db9bf.tar.bz2 pa-sink-ctl-3d0e6d54029713b158a9c53ed7956a49074db9bf.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 */ |