aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-05 16:24:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-05 16:24:44 +0100
commit5cb2fe96545d019d9a457f9be307eea165790b09 (patch)
tree09c7c97a00328adc25be5d87b6530eaff3f7def4 /src/libserver/protocol.h
parentd00b49ff64146d8d06d62592aaa4f6c409584e9b (diff)
downloadrspamd-5cb2fe96545d019d9a457f9be307eea165790b09.tar.gz
rspamd-5cb2fe96545d019d9a457f9be307eea165790b09.zip
[Feature] Extend log structure
Diffstat (limited to 'src/libserver/protocol.h')
-rw-r--r--src/libserver/protocol.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libserver/protocol.h b/src/libserver/protocol.h
index 15705c19a..9ba1d67ca 100644
--- a/src/libserver/protocol.h
+++ b/src/libserver/protocol.h
@@ -18,9 +18,15 @@
#define RSPAMD_LENGTH_ERROR RSPAMD_BASE_ERROR + 4
#define RSPAMD_STATFILE_ERROR RSPAMD_BASE_ERROR + 5
+struct rspamd_protocol_log_symbol_result {
+ guint32 id;
+ gdouble score;
+};
struct rspamd_protocol_log_message_sum {
guint32 nresults;
- guint32 results[];
+ gdouble score;
+ gdouble required_score;
+ struct rspamd_protocol_log_symbol_result results[];
};
struct metric;