From aef1cac108507fcefba54694f46c4f2e8069c31d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 18 Nov 2015 16:01:05 +0000 Subject: Implement refcounting for configuration --- src/libserver/task.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/libserver/task.h') 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 -- cgit v1.2.3