diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-05-25 18:04:10 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-05-25 18:04:10 +0400 |
commit | e9d62e613936de7d8402c190321eed7903c093fe (patch) | |
tree | 69bb91896b7a55ceef90fb51ac16a7f75fc3c2b5 /src/map.h | |
parent | 3b0487ad7ca4227133c495f26b3a6ee6a08a5831 (diff) | |
download | rspamd-e9d62e613936de7d8402c190321eed7903c093fe.tar.gz rspamd-e9d62e613936de7d8402c190321eed7903c093fe.zip |
* Add new key-value map
* Add lua api support for key-value map
* Fix problem in lua configuration initialization to allow `rspamd_config' global work properly
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -107,6 +107,12 @@ u_char* read_host_list (memory_pool_t *pool, u_char *chunk, size_t len, struct m void fin_host_list (memory_pool_t *pool, struct map_cb_data *data); /** + * Kv list is an ordinal list of keys and values separated by whitespace + */ +u_char* read_kv_list (memory_pool_t *pool, u_char *chunk, size_t len, struct map_cb_data *data); +void fin_kv_list (memory_pool_t *pool, struct map_cb_data *data); + +/** * FSM for lists parsing (support comments, blank lines and partial replies) */ u_char * abstract_parse_list (memory_pool_t * pool, u_char * chunk, size_t len, struct map_cb_data *data, insert_func func); |