aboutsummaryrefslogtreecommitdiffstats
path: root/src/map.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-21 18:50:45 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-21 18:50:45 +0400
commitecc3b51cfdd7aecdb7a02791424d8e8cfcd22453 (patch)
tree6ae84e113c6c91b0577242aa4c8d4c0bad78214e /src/map.h
parent1094cced952ce0565dde55c75f318124d0f84f3e (diff)
downloadrspamd-ecc3b51cfdd7aecdb7a02791424d8e8cfcd22453.tar.gz
rspamd-ecc3b51cfdd7aecdb7a02791424d8e8cfcd22453.zip
* Add http maps support
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map.h b/src/map.h
index dfd63a06d..7a207c28e 100644
--- a/src/map.h
+++ b/src/map.h
@@ -29,7 +29,7 @@ struct http_map_data {
time_t last_checked;
};
-typedef void (*map_cb_t)(memory_pool_t *pool, u_char *chunk, size_t len, struct map_cb_data *data);
+typedef u_char* (*map_cb_t)(memory_pool_t *pool, u_char *chunk, size_t len, struct map_cb_data *data);
typedef void (*map_fin_cb_t)(memory_pool_t *pool, struct map_cb_data *data);
struct rspamd_map {
@@ -47,9 +47,9 @@ gboolean add_map (const char *map_line, map_cb_t read_callback, map_fin_cb_t fin
void start_map_watch (void);
/* Common callbacks */
-void read_radix_list (memory_pool_t *pool, u_char *chunk, size_t len, struct map_cb_data *data);
+u_char* read_radix_list (memory_pool_t *pool, u_char *chunk, size_t len, struct map_cb_data *data);
void fin_radix_list (memory_pool_t *pool, struct map_cb_data *data);
-void read_host_list (memory_pool_t *pool, u_char *chunk, size_t len, 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);
#endif