diff options
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 13 |
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); /** |