Mercurial > dovecot > core-2.2
view src/lib/lib-signals.h @ 3863:55df57c028d4 HEAD
Added "bool" type and changed all ints that were used as booleans to bool.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Jan 2006 22:25:57 +0200 |
parents | 3360cc019737 |
children | 5bc987dc62a8 |
line wrap: on
line source
#ifndef __LIB_SIGNALS_H #define __LIB_SIGNALS_H #include <signal.h> typedef void signal_handler_t(int signo, void *context); /* Set signal handler for specific signal. If delayed is TRUE, the handler will be called later, ie. not as a real signal handler. If handler is NULL, the signal is ignored. */ void lib_signals_set_handler(int signo, bool delayed, signal_handler_t *handler, void *context); void lib_signals_unset_handler(int signo, signal_handler_t *handler, void *context); void lib_signals_init(void); void lib_signals_deinit(void); #endif