aboutsummaryrefslogtreecommitdiffstats
path: root/src/map.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-05 18:18:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-05 18:18:37 +0000
commitafd507caa260c3bf34046331e0971c4f4e0748d1 (patch)
tree075fc3b0f7d132e970889e05592d592c7f7334ce /src/map.h
parentbd126110d8a09888777fefa24382470b8b3d070e (diff)
downloadrspamd-afd507caa260c3bf34046331e0971c4f4e0748d1.tar.gz
rspamd-afd507caa260c3bf34046331e0971c4f4e0748d1.zip
Include checksum in a map struct.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/map.h b/src/map.h
index ec35f8486..ac7338247 100644
--- a/src/map.h
+++ b/src/map.h
@@ -17,15 +17,6 @@ enum fetch_proto {
};
/**
- * Callback data for async load
- */
-struct map_cb_data {
- gint state;
- void *prev_data;
- void *cur_data;
-};
-
-/**
* Data specific to file maps
*/
struct file_map_data {
@@ -49,6 +40,8 @@ struct http_map_data {
guint32 chunk_remain;
};
+struct map_cb_data;
+
/**
* Callback types
*/
@@ -73,11 +66,23 @@ struct rspamd_map {
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;
};
/**
+ * Callback data for async load
+ */
+struct map_cb_data {
+ struct rspamd_map *map;
+ gint state;
+ void *prev_data;
+ void *cur_data;
+};
+
+
+/**
* Check map protocol
*/
gboolean check_map_proto (const gchar *map_line, gint *res, const gchar **pos);