diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 14:24:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 14:24:15 +0100 |
commit | 4af2ef67e91974144de793be97b8866d2a63c658 (patch) | |
tree | df3027d94959e08623b64190f25dafb5456ad4c1 /src/libutil/str_util.h | |
parent | ee9def66ca6120fdaa9acc623b8c8e49b1b2ea93 (diff) | |
download | rspamd-4af2ef67e91974144de793be97b8866d2a63c658.tar.gz rspamd-4af2ef67e91974144de793be97b8866d2a63c658.zip |
Add emitting of ucl object to rspamd_fstring_t.
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r-- | src/libutil/str_util.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index 801bcc109..2f822d97c 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -197,4 +197,24 @@ goffset rspamd_substring_search (const gchar *in, gsize inlen, */ goffset rspamd_string_find_eoh (GString *input); +/** + * Emit UCL object to gstring + * @param obj object to emit + * @param emit_type emitter type + * @param target target string + */ +void rspamd_ucl_emit_gstring (ucl_object_t *obj, + enum ucl_emitter emit_type, + GString *target); + +/** + * Emit UCL object to fstring + * @param obj object to emit + * @param emit_type emitter type + * @param target target string + */ +void rspamd_ucl_emit_fstring (ucl_object_t *obj, + enum ucl_emitter emit_type, + rspamd_fstring_t **target); + #endif /* SRC_LIBUTIL_STR_UTIL_H_ */ |