summaryrefslogtreecommitdiffstats
path: root/src/rspamd.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-22 20:35:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-22 20:35:06 +0100
commit02f3d42c14e272b6afaf791e59523dfbc58b0221 (patch)
tree11886633dad8d35fdcdf06f8f3b8c999c9608927 /src/rspamd.h
parente460a6dc4b48f3bb31b072ee058475f08b6432d1 (diff)
downloadrspamd-02f3d42c14e272b6afaf791e59523dfbc58b0221.tar.gz
rspamd-02f3d42c14e272b6afaf791e59523dfbc58b0221.zip
[Feature] Allow to reuse signal handlers chains
Diffstat (limited to 'src/rspamd.h')
-rw-r--r--src/rspamd.h4
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;
};