2 * Copyright (C) 2006, 2007 John Costigan.
4 * POI and GPS-Info code originally written by Cezary Jackiewicz.
6 * Default map data provided by http://www.openstreetmap.org/
8 * This file is part of Maemo Mapper.
10 * Maemo Mapper is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * Maemo Mapper is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with Maemo Mapper. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef MAEMO_MAPPER_MAPS_H
25 #define MAEMO_MAPPER_MAPS_H
27 void map_cache_init(size_t cache_size);
28 size_t map_cache_resize(size_t cache_size);
29 void map_cache_destroy(void);
31 gboolean mapdb_exists(RepoData *repo, gint zoom, gint tilex, gint tiley);
32 GdkPixbuf* mapdb_get(RepoData *repo, gint zoom, gint tilex, gint tiley);
34 void set_repo_type(RepoData *repo);
35 gboolean repo_set_curr(RepoData *rd);
37 gboolean mapdb_initiate_update(RepoData *repo, gint zoom, gint tilex,
38 gint tiley, gint update_type, gint batch_id, gint priority,
39 ThreadLatch *refresh_latch);
41 guint mut_exists_hashfunc(const MapUpdateTask *a);
42 gboolean mut_exists_equalfunc(const MapUpdateTask *a, const MapUpdateTask *b);
43 gint mut_priority_comparefunc(const MapUpdateTask *a, const MapUpdateTask *b);
44 gboolean thread_proc_mut(void);
46 gboolean repoman_dialog(void);
48 gboolean mapman_dialog(void);
50 #endif /* ifndef MAEMO_MAPPER_MAPS_H */