diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-18 16:01:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-18 16:01:05 +0000 |
commit | aef1cac108507fcefba54694f46c4f2e8069c31d (patch) | |
tree | 5944bb32de8f4ded1cc972bf101f8846338418f2 /src/libserver/task.h | |
parent | 9b31d260b9bee44456fd2f37eee6c4ba2c8aba60 (diff) | |
download | rspamd-aef1cac108507fcefba54694f46c4f2e8069c31d.tar.gz rspamd-aef1cac108507fcefba54694f46c4f2e8069c31d.zip |
Implement refcounting for configuration
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r-- | src/libserver/task.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libserver/task.h b/src/libserver/task.h index 8a9e913a4..b29bcebf6 100644 --- a/src/libserver/task.h +++ b/src/libserver/task.h @@ -180,13 +180,12 @@ struct rspamd_task { /** * Construct new task for worker */ -struct rspamd_task * rspamd_task_new (struct rspamd_worker *worker); +struct rspamd_task * rspamd_task_new (struct rspamd_worker *worker, + struct rspamd_config *cfg); /** * Destroy task object and remove its IO dispatcher if it exists */ -void rspamd_task_free (struct rspamd_task *task, gboolean is_soft); -void rspamd_task_free_hard (gpointer ud); -void rspamd_task_free_soft (gpointer ud); +void rspamd_task_free (struct rspamd_task *task); /** * Called if session was restored inside fin callback |