/** The Source ID of the CURL Multi Download timeout. */
guint _curl_sid;
-
CURLM *_curl_multi;
+/** Data used during the asynchronous progress update phase of automatic map downloading. */
+typedef struct _ProgressUpdateInfo ProgressUpdateInfo;
+struct _ProgressUpdateInfo {
+ gchar *src_str;
+ gchar *dest_str;
+ RepoData *repo;
+ guint tilex, tiley, zoom; /* for refresh. */
+ gint retries; /* if equal to zero, it means we're DELETING maps. */
+ guint priority;
+ FILE *file;
+};
+
void map_download_init(void);
void map_initiate_download(guint tilex, guint tiley, guint zoom, gint retries);
gboolean map_download_stop(void);
#include "map-tile-repo.h"
-/** Data used during the asynchronous progress update phase of automatic map downloading. */
-typedef struct _ProgressUpdateInfo ProgressUpdateInfo;
-struct _ProgressUpdateInfo {
- gchar *src_str;
- gchar *dest_str;
- RepoData *repo;
- guint tilex, tiley, zoom; /* for refresh. */
- gint retries; /* if equal to zero, it means we're DELETING maps. */
- guint priority;
- FILE *file;
-};
-
GList *_repo_list;
RepoData *_curr_repo;