aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-28 16:22:17 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-28 16:22:17 +0000
commit149fad4a73a71ef670be9a01741a52efd76e35e6 (patch)
treed0dff47a6eec7b0193a26252135280f0426b9bcd /src/util.h
parent26ede9ee72ced3e2b40123ab50bd0a518a8a6288 (diff)
downloadrspamd-149fad4a73a71ef670be9a01741a52efd76e35e6.tar.gz
rspamd-149fad4a73a71ef670be9a01741a52efd76e35e6.zip
Make gstring emitting generic.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 9b7891c05..2f33e91ee 100644
--- a/src/util.h
+++ b/src/util.h
@@ -7,6 +7,7 @@
#include "statfile.h"
#include "printf.h"
#include "fstring.h"
+#include "ucl.h"
struct config_file;
struct rspamd_main;
@@ -457,4 +458,12 @@ void rspamd_random_bytes (gchar *buf, gsize buflen);
*/
gboolean rspamd_ip_is_valid (void *ptr, int af);
+/**
+ * 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);
+
#endif