write_http_request (map, data, fd);
cbdata.state = 0;
+ cbdata.map = map;
cbdata.prev_data = *map->user_data;
cbdata.cur_data = NULL;
cbdata.state = 0;
cbdata.prev_data = *map->user_data;
cbdata.cur_data = NULL;
+ cbdata.map = map;
rlen = 0;
while ((r = read (fd, buf + rlen, sizeof (buf) - rlen - 1)) > 0) {
cbd->cbdata.state = 0;
cbd->cbdata.prev_data = *cbd->map->user_data;
cbd->cbdata.cur_data = NULL;
+ cbd->cbdata.map = cbd->map;
cbd->data->rlen = 0;
cbd->data->chunk = 0;
cbd->data->chunk_remain = 0;
MAP_PROTO_HTTP,
};
-/**
- * Callback data for async load
- */
-struct map_cb_data {
- gint state;
- void *prev_data;
- void *cur_data;
-};
-
/**
* Data specific to file maps
*/
guint32 chunk_remain;
};
+struct map_cb_data;
+
/**
* Callback types
*/
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
*/