diff options
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index 7ff76afb3..59a5f3c30 100644 --- a/src/main.h +++ b/src/main.h @@ -292,6 +292,24 @@ gpointer init_workers_ctx (enum process_type type); */ extern struct rspamd_main *rspamd_main; +/* Worker task manipulations */ + +/** + * Construct new task for worker + */ +struct worker_task* construct_task (struct rspamd_worker *worker); +/** + * Destroy task object and remove its IO dispatcher if it exists + */ +void free_task (struct worker_task *task, gboolean is_soft); +void free_task_hard (gpointer ud); +void free_task_soft (gpointer ud); + +/** + * Set counter for a symbol + */ +double set_counter (const gchar *name, guint32 value); + #endif /* |