aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/map_private.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-07 12:14:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-07 13:29:26 +0100
commit0a6035cf22027b35a298c8870ab9156f82b5e7a6 (patch)
tree2238f17d326fd386050e8591becf17f2aae5bf7b /src/libutil/map_private.h
parent8027ad688c3d1abd1db32c07bec7761d19d4623c (diff)
downloadrspamd-0a6035cf22027b35a298c8870ab9156f82b5e7a6.tar.gz
rspamd-0a6035cf22027b35a298c8870ab9156f82b5e7a6.zip
[Project] Prepare cached map data
Diffstat (limited to 'src/libutil/map_private.h')
-rw-r--r--src/libutil/map_private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/map_private.h b/src/libutil/map_private.h
index 1b40e8e8a..67b813264 100644
--- a/src/libutil/map_private.h
+++ b/src/libutil/map_private.h
@@ -165,6 +165,16 @@ struct map_periodic_cbdata {
ref_entry_t ref;
};
+static const gchar rspamd_http_cached_magic[] =
+ {'r', 'm', 'c', 'd', '1', '0', '0', '0'};
+
+struct rspamd_http_cached_data {
+ guchar magic[sizeof (rspamd_http_cached_magic)];
+ goffset data_off;
+ gulong mtime;
+ gulong next_check;
+};
+
struct http_callback_data {
struct event_base *ev_base;
struct rspamd_http_connection *conn;