aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-26 21:07:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-26 21:07:37 +0000
commit24ae78bec47b6c27e428542dfc94a5aeb1026962 (patch)
tree201a0636cdc7cec1a28d5948f3467a7e7700a59b /src/libserver/task.h
parent6b73e307d3befd298cb25c179201663c801aa6eb (diff)
downloadrspamd-24ae78bec47b6c27e428542dfc94a5aeb1026962.tar.gz
rspamd-24ae78bec47b6c27e428542dfc94a5aeb1026962.zip
[Minor] Remove legacy interface
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r--src/libserver/task.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libserver/task.h b/src/libserver/task.h
index f293ef10f..c27d4bcb5 100644
--- a/src/libserver/task.h
+++ b/src/libserver/task.h
@@ -109,19 +109,11 @@ enum rspamd_task_stage {
#define RSPAMD_TASK_IS_PROCESSED(task) (((task)->processed_stages & RSPAMD_TASK_STAGE_DONE))
#define RSPAMD_TASK_IS_CLASSIFIED(task) (((task)->processed_stages & RSPAMD_TASK_STAGE_CLASSIFIERS))
-typedef gint (*protocol_reply_func)(struct rspamd_task *task);
-
-struct custom_command {
- const gchar *name;
- protocol_reply_func func;
-};
-
/**
* Worker task structure
*/
struct rspamd_task {
struct rspamd_worker *worker; /**< pointer to worker object */
- struct custom_command *custom_cmd; /**< custom command if any */
guint processed_stages; /**< bits of stages that are processed */
enum rspamd_command cmd; /**< command */
gint sock; /**< socket descriptor */