diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-17 15:22:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-17 15:22:19 +0000 |
commit | 45c172ad0af49d2c73ddc3fcd2111718c6a8b19d (patch) | |
tree | 8dd75d91013de0f1f8ea80394056af04d85ce62c /src/libutil/expression.h | |
parent | c77ddf6def7a88a3842f2c78e27fe82bf78ce2fc (diff) | |
download | rspamd-45c172ad0af49d2c73ddc3fcd2111718c6a8b19d.tar.gz rspamd-45c172ad0af49d2c73ddc3fcd2111718c6a8b19d.zip |
Add conversion from expr to string.
Diffstat (limited to 'src/libutil/expression.h')
-rw-r--r-- | src/libutil/expression.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/expression.h b/src/libutil/expression.h index 4179424c6..7d771963d 100644 --- a/src/libutil/expression.h +++ b/src/libutil/expression.h @@ -77,4 +77,11 @@ gboolean rspamd_parse_expression (const gchar *line, gsize len, */ gint rspamd_process_expression (struct rspamd_expression *expr, gpointer data); +/** + * Shows string representation of an expression + * @param expr expression to show + * @return freshly allocated string with expression + */ +GString *rspamd_expression_tostring (struct rspamd_expression *expr); + #endif /* SRC_LIBUTIL_EXPRESSION_H_ */ |