aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-19 00:27:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-19 00:27:54 +0000
commit7e4a21dc554d42d31afc611fd92aaddd7da1bb6c (patch)
tree1a423d9ca90425eed230aca69d1193a3a511bf0a /src/protocol.h
parente2f2eed337ecdb17c897fe7e04626dfffe32f2a2 (diff)
downloadrspamd-7e4a21dc554d42d31afc611fd92aaddd7da1bb6c.tar.gz
rspamd-7e4a21dc554d42d31afc611fd92aaddd7da1bb6c.zip
Simplify states of task. Disable broken code.
Diffstat (limited to 'src/protocol.h')
-rw-r--r--src/protocol.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/protocol.h b/src/protocol.h
index 4b62fdfb2..30d3c51db 100644
--- a/src/protocol.h
+++ b/src/protocol.h
@@ -10,11 +10,12 @@
#include "filter.h"
#include "http.h"
-#define RSPAMD_FILTER_ERROR 1
-#define RSPAMD_NETWORK_ERROR 2
-#define RSPAMD_PROTOCOL_ERROR 3
-#define RSPAMD_LENGTH_ERROR 4
-#define RSPAMD_STATFILE_ERROR 5
+#define RSPAMD_BASE_ERROR 500
+#define RSPAMD_FILTER_ERROR RSPAMD_BASE_ERROR + 1
+#define RSPAMD_NETWORK_ERROR RSPAMD_BASE_ERROR + 2
+#define RSPAMD_PROTOCOL_ERROR RSPAMD_BASE_ERROR + 3
+#define RSPAMD_LENGTH_ERROR RSPAMD_BASE_ERROR + 4
+#define RSPAMD_STATFILE_ERROR RSPAMD_BASE_ERROR + 5
struct worker_task;
struct metric;
@@ -52,7 +53,7 @@ gboolean rspamd_protocol_handle_request (struct worker_task *task, struct rspamd
* @param task task object
* @return 0 if we wrote reply and -1 if there was some error
*/
-gboolean rspamd_protocol_write_reply (struct worker_task *task);
+void rspamd_protocol_write_reply (struct worker_task *task);
/**