diff options
Diffstat (limited to 'src/signal.h')
-rw-r--r-- | src/signal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/signal.h b/src/signal.h index 4f1c280..e3f5897 100644 --- a/src/signal.h +++ b/src/signal.h @@ -8,6 +8,8 @@ #ifndef __SIGNAL_H__ #define __SIGNAL_H__ +#include "event_loop.h" + #include <signal.h> extern volatile sig_atomic_t global_stop_flag; @@ -18,4 +20,11 @@ int signal_block_stops(void); int signal_restore(const sigset_t *new); +int signalfd_create(const sigset_t *); +void signalfd_destroy(int fd); + +int signalfd_add_to_event_loop(int fd, struct event_loop *, event_loop_handler handler, void *arg); + +int signalfd_listen_for_stops(void); + #endif |