diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-15 17:40:39 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-15 17:40:39 +0000 |
commit | cddd684078c732870fccc086d221c1ac45d8732c (patch) | |
tree | cef5c823c8f248670f668a1f4c25c01e72de6b46 /src/libutil/map.h | |
parent | 747ae55cb67a3951a19d4ed7ea13f9efc4ce74ce (diff) | |
download | rspamd-cddd684078c732870fccc086d221c1ac45d8732c.tar.gz rspamd-cddd684078c732870fccc086d221c1ac45d8732c.zip |
[Feature] Add support for regexp maps
Diffstat (limited to 'src/libutil/map.h')
-rw-r--r-- | src/libutil/map.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/libutil/map.h b/src/libutil/map.h index 6ceb04e14..c37e9024c 100644 --- a/src/libutil/map.h +++ b/src/libutil/map.h @@ -105,9 +105,22 @@ gchar * rspamd_kv_list_read (rspamd_mempool_t *pool, void rspamd_kv_list_fin (rspamd_mempool_t *pool, struct map_cb_data *data); /** + * Regexp list is a list of regular expressions + */ +struct rspamd_regexp_map; + +gchar * rspamd_regexp_list_read (rspamd_mempool_t *pool, + gchar *chunk, + gint len, + struct map_cb_data *data, + gboolean final); +void rspamd_regexp_list_fin (rspamd_mempool_t *pool, struct map_cb_data *data); + +/** * FSM for lists parsing (support comments, blank lines and partial replies) */ -gchar * rspamd_parse_kv_list (rspamd_mempool_t * pool, +gchar * +rspamd_parse_kv_list (rspamd_mempool_t * pool, gchar * chunk, gint len, struct map_cb_data *data, |