]> err.no Git - mapper/blob - src/map-download.h
Misc. Renames and code moving.
[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
10 #define INITIAL_DOWNLOAD_RETRIES (3)
11
12 CURLM *_curl_multi;
13 GQueue *_curl_easy_queue;
14 GTree *_pui_tree;
15 GTree *_downloading_tree;
16 GHashTable *_pui_by_easy;
17
18 void map_download_init(void);
19 void map_initiate_download(guint tilex, guint tiley, guint zoom, gint retries);
20 gboolean map_download_timeout();
21 gboolean map_download_idle_refresh(ProgressUpdateInfo * pui);
22
23 #endif