diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-22 20:35:06 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-22 20:35:06 +0100 |
commit | 02f3d42c14e272b6afaf791e59523dfbc58b0221 (patch) | |
tree | 11886633dad8d35fdcdf06f8f3b8c999c9608927 /src/rspamd.h | |
parent | e460a6dc4b48f3bb31b072ee058475f08b6432d1 (diff) | |
download | rspamd-02f3d42c14e272b6afaf791e59523dfbc58b0221.tar.gz rspamd-02f3d42c14e272b6afaf791e59523dfbc58b0221.zip |
[Feature] Allow to reuse signal handlers chains
Diffstat (limited to 'src/rspamd.h')
-rw-r--r-- | src/rspamd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rspamd.h b/src/rspamd.h index a716c3788..b2157bd3e 100644 --- a/src/rspamd.h +++ b/src/rspamd.h @@ -88,9 +88,11 @@ struct rspamd_abstract_worker_ctx { }; struct rspamd_worker_signal_handler; +typedef gboolean (*rspamd_worker_signal_handler) ( + struct rspamd_worker_signal_handler *, void *ud); struct rspamd_worker_signal_cb { - void (*handler) (struct rspamd_worker_signal_handler *, void *ud); + rspamd_worker_signal_handler handler; void *handler_data; struct rspamd_worker_signal_cb *next, *prev; }; |