From e9d62e613936de7d8402c190321eed7903c093fe Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 25 May 2011 18:04:10 +0400 Subject: * 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 --- src/map.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index de95c1153..0ebd7e466 100644 --- a/src/map.h +++ b/src/map.h @@ -106,6 +106,12 @@ void fin_radix_list (memory_pool_t *pool, struct map_cb_data *data); u_char* read_host_list (memory_pool_t *pool, u_char *chunk, size_t len, struct map_cb_data *data); 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) */ -- cgit v1.2.3