diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 13:26:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 13:26:51 +0100 |
commit | d6643f35d783784911ad2e2ca754bcfed29eb11d (patch) | |
tree | 55554d57d4439e278788a261eb5ad7e5016a1372 /src/libutil/map.h | |
parent | 7e66b3bd08dbca9356013a3777f786076d1dacea (diff) | |
download | rspamd-d6643f35d783784911ad2e2ca754bcfed29eb11d.tar.gz rspamd-d6643f35d783784911ad2e2ca754bcfed29eb11d.zip |
Refactor config API.
Diffstat (limited to 'src/libutil/map.h')
-rw-r--r-- | src/libutil/map.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libutil/map.h b/src/libutil/map.h index 1f34cdcc0..ddb9882e4 100644 --- a/src/libutil/map.h +++ b/src/libutil/map.h @@ -51,10 +51,10 @@ typedef void (*map_fin_cb_t)(rspamd_mempool_t *pool, struct map_cb_data *data); /** * Common map object */ -struct config_file; +struct rspamd_config; struct rspamd_map { rspamd_mempool_t *pool; - struct config_file *cfg; + struct rspamd_config *cfg; enum fetch_proto protocol; map_cb_t read_callback; map_fin_cb_t fin_callback; @@ -89,18 +89,18 @@ gboolean check_map_proto (const gchar *map_line, gint *res, const gchar **pos); /** * Add map from line */ -gboolean add_map (struct config_file *cfg, const gchar *map_line, const gchar *description, +gboolean add_map (struct rspamd_config *cfg, const gchar *map_line, const gchar *description, map_cb_t read_callback, map_fin_cb_t fin_callback, void **user_data); /** * Start watching of maps by adding events to libevent event loop */ -void start_map_watch (struct config_file *cfg, struct event_base *ev_base); +void start_map_watch (struct rspamd_config *cfg, struct event_base *ev_base); /** * Remove all maps watched (remove events) */ -void remove_all_maps (struct config_file *cfg); +void remove_all_maps (struct rspamd_config *cfg); typedef void (*insert_func) (gpointer st, gconstpointer key, gconstpointer value); |