diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-06 16:17:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-06 16:17:34 +0100 |
commit | 43615b27cd83a1bb4b228b7af2e551eaf9a25bba (patch) | |
tree | e88f666014857deea69fdc4476cac1c475b98787 /src/libmime/mime_expressions.h | |
parent | d70fb7a4a7938936295a1ec263eba607adb26f69 (diff) | |
download | rspamd-43615b27cd83a1bb4b228b7af2e551eaf9a25bba.tar.gz rspamd-43615b27cd83a1bb4b228b7af2e551eaf9a25bba.zip |
Fix mime expressions.
Diffstat (limited to 'src/libmime/mime_expressions.h')
-rw-r--r-- | src/libmime/mime_expressions.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libmime/mime_expressions.h b/src/libmime/mime_expressions.h index 41e8b33ac..834f1983f 100644 --- a/src/libmime/mime_expressions.h +++ b/src/libmime/mime_expressions.h @@ -16,12 +16,13 @@ extern const struct rspamd_atom_subr mime_expr_subr; /** * Function's argument */ +enum rspamd_expression_type { + EXPRESSION_ARGUMENT_NORMAL = 0, + EXPRESSION_ARGUMENT_BOOL, + EXPRESSION_ARGUMENT_REGEXP +}; struct expression_argument { - enum { - EXPRESSION_ARGUMENT_NORMAL = 0, - EXPRESSION_ARGUMENT_BOOL, - EXPRESSION_ARGUMENT_REGEXP - } type; /**< type of argument (text or other function) */ + enum rspamd_expression_type type; /**< type of argument (text or other function) */ void *data; /**< pointer to its data */ }; |