diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-07 09:18:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-07 09:18:09 +0000 |
commit | 8a22018b6e16ab471adf1e24f38d72968e637d52 (patch) | |
tree | b031620dc5d4d0620c2425112fcd698fc1070c2e /src/libserver/re_cache.h | |
parent | fc9338984d86334d76d6618944201349e13bbc49 (diff) | |
download | rspamd-8a22018b6e16ab471adf1e24f38d72968e637d52.tar.gz rspamd-8a22018b6e16ab471adf1e24f38d72968e637d52.zip |
Add routine to convert string to re_class type
Diffstat (limited to 'src/libserver/re_cache.h')
-rw-r--r-- | src/libserver/re_cache.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libserver/re_cache.h b/src/libserver/re_cache.h index c4ec3b2cf..65a8bd392 100644 --- a/src/libserver/re_cache.h +++ b/src/libserver/re_cache.h @@ -37,7 +37,8 @@ enum rspamd_re_type { RSPAMD_RE_ALLHEADER, RSPAMD_RE_MIME, RSPAMD_RE_URL, - RSPAMD_RE_BODY + RSPAMD_RE_BODY, + RSPAMD_RE_MAX }; /** @@ -120,4 +121,9 @@ guint rspamd_re_cache_set_limit (struct rspamd_re_cache *cache, guint limit); */ const gchar * rspamd_re_cache_type_to_string (enum rspamd_re_type type); +/** + * Convert re type string to the type enum + */ +enum rspamd_re_type rspamd_re_cache_type_from_string (const char *str); + #endif |