aboutsummaryrefslogtreecommitdiffstats
path: root/src/map.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-25 18:04:10 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-25 18:04:10 +0400
commite9d62e613936de7d8402c190321eed7903c093fe (patch)
tree69bb91896b7a55ceef90fb51ac16a7f75fc3c2b5 /src/map.h
parent3b0487ad7ca4227133c495f26b3a6ee6a08a5831 (diff)
downloadrspamd-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index de95c1153..0ebd7e466 100644
--- a/src/map.h
+++ b/src/map.h
@@ -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);