diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-15 14:37:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-15 14:37:34 +0000 |
commit | 4b6905c2a2585eaf83cb0d9a7e34d73622add7d3 (patch) | |
tree | 88d33d46a393ea69a8318ae48bf14884ecfc4183 /src/libutil/map.h | |
parent | b2724840ba64df93e38ac4a9d150e887c5f8f15a (diff) | |
download | rspamd-4b6905c2a2585eaf83cb0d9a7e34d73622add7d3.tar.gz rspamd-4b6905c2a2585eaf83cb0d9a7e34d73622add7d3.zip |
Start reworking of maps
Diffstat (limited to 'src/libutil/map.h')
-rw-r--r-- | src/libutil/map.h | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/libutil/map.h b/src/libutil/map.h index 95c7de27b..13590581e 100644 --- a/src/libutil/map.h +++ b/src/libutil/map.h @@ -12,11 +12,6 @@ * It monitor files and HTTP locations for modifications and reload them if they are * modified. */ - -enum fetch_proto { - MAP_PROTO_FILE, - MAP_PROTO_HTTP, -}; struct map_cb_data; /** @@ -30,24 +25,7 @@ typedef void (*map_fin_cb_t)(rspamd_mempool_t *pool, struct map_cb_data *data); * Common map object */ struct rspamd_config; -struct rspamd_map { - rspamd_mempool_t *pool; - struct rspamd_config *cfg; - enum fetch_proto protocol; - map_cb_t read_callback; - map_fin_cb_t fin_callback; - void **user_data; - struct event ev; - struct timeval tv; - struct event_base *ev_base; - void *map_data; - gchar *uri; - gchar *description; - guint32 id; - guint32 checksum; - /* Shared lock for temporary disabling of map reading (e.g. when this map is written by UI) */ - gint *locked; -}; +struct rspamd_map; /** * Callback data for async load @@ -59,11 +37,6 @@ struct map_cb_data { void *cur_data; }; - -/** - * Check map protocol - */ -gboolean rspamd_map_check_proto (const gchar *map_line, gint *res, const gchar **pos); /** * Add map from line */ |