]> err.no Git - mapper/blob - src/map-download.h
Merge branch 'master' of ssh://git.tal.org/home/git/mapper
[mapper] / src / map-download.h
1 #include "config.h"
2
3 #ifndef _MAPPER_MAP_DOWNLOAD_H
4 #define _MAPPER_MAP_DOWNLOAD_H
5
6 #include <curl/multi.h>
7 #include <glib.h>
8 #include "mapper-types.h"
9 #include "map-repo.h"
10
11 #define INITIAL_DOWNLOAD_RETRIES (3)
12
13 /** The Source ID of the CURL Multi Download timeout. */
14 guint _curl_sid;
15
16 CURLM *_curl_multi;
17
18 void map_download_init(void);
19 void map_initiate_download(guint tilex, guint tiley, guint zoom, gint retries);
20 gboolean map_download_stop(void);
21 gboolean map_download_timeout();
22 gboolean map_download_idle_refresh(ProgressUpdateInfo * pui);
23
24 #endif