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/fstring.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/fstring.h')
-rw-r--r-- | src/libutil/fstring.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h index 5ca74f457..d3b51821f 100644 --- a/src/libutil/fstring.h +++ b/src/libutil/fstring.h @@ -80,6 +80,11 @@ void rspamd_fstring_free (rspamd_fstring_t *str); rspamd_fstring_t* rspamd_fstring_append (rspamd_fstring_t *str, const char *in, gsize len) G_GNUC_WARN_UNUSED_RESULT; +/** + * Append `len` repeated chars `c` to string `str` + */ +rspamd_fstring_t *rspamd_fstring_append_chars (rspamd_fstring_t *str, + char c, gsize len) G_GNUC_WARN_UNUSED_RESULT; /** * Erase `len` characters at postion `pos` @@ -138,4 +143,9 @@ gint rspamd_ftok_cmp (const rspamd_ftok_t *s1, */ void rspamd_fstring_mapped_ftok_free (gpointer p); +/** + * Map token to a specified string. Token must be freed using g_slice_free1 + */ +rspamd_ftok_t *rspamd_ftok_map (const rspamd_fstring_t *s); + #endif |