aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/fstring.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 18:15:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 18:15:56 +0100
commit163f058f1fdf93c7b557d6eb95f4d245337c8350 (patch)
treec7152d54a0f229e18287818945cffec5a8c029ad /src/libutil/fstring.h
parentc15fd65bc3e7f447a816e9539afa92f444f53480 (diff)
downloadrspamd-163f058f1fdf93c7b557d6eb95f4d245337c8350.tar.gz
rspamd-163f058f1fdf93c7b557d6eb95f4d245337c8350.zip
[Feature] Add function to convert fstring_t to c string
Diffstat (limited to 'src/libutil/fstring.h')
-rw-r--r--src/libutil/fstring.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h
index 10916d876..db8b49085 100644
--- a/src/libutil/fstring.h
+++ b/src/libutil/fstring.h
@@ -160,5 +160,10 @@ rspamd_fstring_t * rspamd_fstring_grow (rspamd_fstring_t *str,
*/
gchar *rspamd_ftokdup (const rspamd_ftok_t *src) G_GNUC_WARN_UNUSED_RESULT;
-
+/**
+ * Copies fstring to zero terminated string (must be freed using g_free)
+ * @param src
+ * @return
+ */
+gchar *rspamd_fstringdup (const rspamd_fstring_t *src) G_GNUC_WARN_UNUSED_RESULT;
#endif