From 45c172ad0af49d2c73ddc3fcd2111718c6a8b19d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 17 Mar 2015 15:22:19 +0000 Subject: Add conversion from expr to string. --- src/libutil/expression.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libutil/expression.h') 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_ */ -- cgit v1.2.3