aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-08 18:45:08 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-08 18:45:08 +0000
commit3c870de8e3a3ea5640127ef45584cdbc6b1d3840 (patch)
tree2f1cb9f35c96341aed4ea20e93584f0738d63c4f /src/libutil/str_util.c
parentff660e595fb04857e73e1f84d1e13d412fb980ef (diff)
downloadrspamd-3c870de8e3a3ea5640127ef45584cdbc6b1d3840.tar.gz
rspamd-3c870de8e3a3ea5640127ef45584cdbc6b1d3840.zip
Fix for the new libucl API
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index f4bd75d69..6daf83993 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -1511,9 +1511,10 @@ rspamd_gstring_append_double (double val, void *ud)
}
void
-rspamd_ucl_emit_gstring (const ucl_object_t *obj,
+rspamd_ucl_emit_gstring_comments (const ucl_object_t *obj,
enum ucl_emitter emit_type,
- GString *target)
+ GString *target,
+ const ucl_object_t *comments)
{
struct ucl_emitter_functions func = {
.ucl_emitter_append_character = rspamd_gstring_append_character,
@@ -1523,7 +1524,7 @@ rspamd_ucl_emit_gstring (const ucl_object_t *obj,
};
func.ud = target;
- ucl_object_emit_full (obj, emit_type, &func);
+ ucl_object_emit_full (obj, emit_type, &func, comments);
}
/*
@@ -1579,9 +1580,10 @@ rspamd_fstring_emit_append_double (double val, void *ud)
}
void
-rspamd_ucl_emit_fstring (const ucl_object_t *obj,
+rspamd_ucl_emit_fstring_comments (const ucl_object_t *obj,
enum ucl_emitter emit_type,
- rspamd_fstring_t **buf)
+ rspamd_fstring_t **buf,
+ const ucl_object_t *comments)
{
struct ucl_emitter_functions func = {
.ucl_emitter_append_character = rspamd_fstring_emit_append_character,
@@ -1591,5 +1593,5 @@ rspamd_ucl_emit_fstring (const ucl_object_t *obj,
};
func.ud = buf;
- ucl_object_emit_full (obj, emit_type, &func);
+ ucl_object_emit_full (obj, emit_type, &func, comments);
}