From: Vsevolod Stakhov Date: Thu, 2 Jun 2016 14:21:18 +0000 (+0200) Subject: [Minor] Declare function non-static X-Git-Tag: 1.3.0~411 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f0b0d219cbeb25cfd6381b21107f507524eae0c4;p=rspamd.git [Minor] Declare function non-static --- 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