aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-12 12:35:13 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-12 12:35:13 +0100
commitd4d921a97e5a8548fb506ed8bc747d9a2bc37561 (patch)
treeb3647b472e4e08680d0ce4464a353a5cbc05a35a /src/libserver/protocol.c
parent22ef30cfeca05d3eaa6fc570959232798cc82de3 (diff)
downloadrspamd-d4d921a97e5a8548fb506ed8bc747d9a2bc37561.tar.gz
rspamd-d4d921a97e5a8548fb506ed8bc747d9a2bc37561.zip
[Rework] Rename filter.h to a more sane name
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index dd840284a..e62333262 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -20,7 +20,7 @@
#include "http_private.h"
#include "worker_private.h"
#include "libserver/cfg_file_private.h"
-#include "libmime/filter_private.h"
+#include "libmime/scan_result_private.h"
#include "contrib/zstd/zstd.h"
#include "lua/lua_common.h"
#include "unix-std.h"
@@ -1126,8 +1126,8 @@ rspamd_metric_symbol_ucl (struct rspamd_task *task, struct rspamd_symbol_result
}
static ucl_object_t *
-rspamd_metric_result_ucl (struct rspamd_task *task,
- struct rspamd_metric_result *mres, ucl_object_t *top)
+rspamd_scan_result_ucl (struct rspamd_task *task,
+ struct rspamd_scan_result *mres, ucl_object_t *top)
{
struct rspamd_symbol_result *sym;
gboolean is_spam;
@@ -1349,7 +1349,7 @@ rspamd_protocol_write_ucl (struct rspamd_task *task,
(rspamd_mempool_destruct_t)ucl_object_unref, top);
if (flags & RSPAMD_PROTOCOL_METRICS) {
- rspamd_metric_result_ucl (task, task->result, top);
+ rspamd_scan_result_ucl (task, task->result, top);
}
if (flags & RSPAMD_PROTOCOL_MESSAGES) {
@@ -1488,7 +1488,7 @@ void
rspamd_protocol_http_reply (struct rspamd_http_message *msg,
struct rspamd_task *task, ucl_object_t **pobj)
{
- struct rspamd_metric_result *metric_res;
+ struct rspamd_scan_result *metric_res;
const struct rspamd_re_cache_stat *restat;
ucl_object_t *top = NULL;
@@ -1723,7 +1723,7 @@ rspamd_protocol_write_log_pipe (struct rspamd_task *task)
struct rspamd_worker_log_pipe *lp;
struct rspamd_protocol_log_message_sum *ls;
lua_State *L = task->cfg->lua_state;
- struct rspamd_metric_result *mres;
+ struct rspamd_scan_result *mres;
struct rspamd_symbol_result *sym;
gint id, i;
guint32 n = 0, nextra = 0;