aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-02 16:21:18 +0200
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-02 16:21:18 +0200
commitf0b0d219cbeb25cfd6381b21107f507524eae0c4 (patch)
tree4bc4d2dab3b5672dc289f1c7446e3d83e22357ba /src/libserver
parent6b0653316614412638de02476e76cdcf923d009a (diff)
downloadrspamd-f0b0d219cbeb25cfd6381b21107f507524eae0c4.tar.gz
rspamd-f0b0d219cbeb25cfd6381b21107f507524eae0c4.zip
[Minor] Declare function non-static
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/protocol.c2
-rw-r--r--src/libserver/protocol.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index d314d3fdc..fa4f20e09 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -873,7 +873,7 @@ rspamd_metric_result_ucl (struct rspamd_task *task,
return obj;
}
-static void
+void
rspamd_ucl_torspamc_output (struct rspamd_task *task,
ucl_object_t *top,
rspamd_fstring_t **out)
diff --git a/src/libserver/protocol.h b/src/libserver/protocol.h
index 3c8383565..186ed939a 100644
--- a/src/libserver/protocol.h
+++ b/src/libserver/protocol.h
@@ -82,5 +82,14 @@ ucl_object_t * rspamd_protocol_write_ucl (struct rspamd_task *task);
*/
void rspamd_protocol_write_reply (struct rspamd_task *task);
+/**
+ * Convert rspamd output to legacy protocol reply
+ * @param task
+ * @param top
+ * @param out
+ */
+void rspamd_ucl_torspamc_output (struct rspamd_task *task,
+ ucl_object_t *top,
+ rspamd_fstring_t **out);
#endif