diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-25 13:37:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-25 13:37:07 +0100 |
commit | fcd60ee107f7529e50bb6eab4e92cd5de41b6bd0 (patch) | |
tree | eef21331686a9f20c7a43ec670c8487a11d2d192 /src/libutil/map_private.h | |
parent | 250388149c8d634d58a7d9996e560ebddcbe49aa (diff) | |
download | rspamd-fcd60ee107f7529e50bb6eab4e92cd5de41b6bd0.tar.gz rspamd-fcd60ee107f7529e50bb6eab4e92cd5de41b6bd0.zip |
[Minor] Implement traverse functor in maps
Diffstat (limited to 'src/libutil/map_private.h')
-rw-r--r-- | src/libutil/map_private.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libutil/map_private.h b/src/libutil/map_private.h index 1de6fb942..fb1e609bd 100644 --- a/src/libutil/map_private.h +++ b/src/libutil/map_private.h @@ -114,18 +114,19 @@ struct rspamd_map { gchar *name; guint32 id; gboolean scheduled_check; + rspamd_map_dtor dtor; + gpointer dtor_data; + rspamd_map_traverse_function traverse_function; /* Should we check HTTP or just load cached data */ - gboolean active_http; struct timeval tv; gdouble poll_timeout; time_t next_check; + gboolean active_http; /* Shared lock for temporary disabling of map reading (e.g. when this map is written by UI) */ gint *locked; /* Shared cache data */ struct rspamd_map_cachepoint *cache; gchar tag[MEMPOOL_UID_LEN]; - rspamd_map_dtor dtor; - gpointer dtor_data; }; enum rspamd_map_http_stage { |