]> err.no Git - mapper/blobdiff - src/map-download.h
Add header and cast properly.
[mapper] / src / map-download.h
index 1fe6b8368033c9e61b4ef8eda16319c37963e5eb..f5634e1898dbcba8fa6b7a9256a95bc44254236a 100644 (file)
@@ -6,18 +6,18 @@
 #include <curl/multi.h>
 #include <glib.h>
 #include "mapper-types.h"
+#include "map-repo.h"
 
-CURLM *_curl_multi;
-GQueue *_curl_easy_queue;
-GTree *_pui_tree;
-GTree *_downloading_tree;
-GHashTable *_pui_by_easy;
+#define INITIAL_DOWNLOAD_RETRIES (3)
+
+/** The Source ID of the CURL Multi Download timeout. */
+guint _curl_sid;
 
-guint _num_downloads;
-guint _curr_download;
+CURLM *_curl_multi;
 
 void map_download_init(void);
 void map_initiate_download(guint tilex, guint tiley, guint zoom, gint retries);
+gboolean map_download_stop(void);
 gboolean map_download_timeout();
 gboolean map_download_idle_refresh(ProgressUpdateInfo * pui);