diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-21 18:50:45 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-21 18:50:45 +0400 |
commit | ecc3b51cfdd7aecdb7a02791424d8e8cfcd22453 (patch) | |
tree | 6ae84e113c6c91b0577242aa4c8d4c0bad78214e /src/map.h | |
parent | 1094cced952ce0565dde55c75f318124d0f84f3e (diff) | |
download | rspamd-ecc3b51cfdd7aecdb7a02791424d8e8cfcd22453.tar.gz rspamd-ecc3b51cfdd7aecdb7a02791424d8e8cfcd22453.zip |
* Add http maps support
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |