Fix:maptool:Another name for faroe islands
[navit-package] / navit / map_data.h
1 /**
2  * Navit, a modular navigation system.
3  * Copyright (C) 2005-2008 Navit Team
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public License
7  * version 2 as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA  02110-1301, USA.
18  */
19
20 #ifndef NAVIT_MAP_DATA_H
21 #define NAVIT_MAP_DATA_H
22
23 enum file_index {
24         file_border_ply=0,
25         file_bridge_ply,
26         file_height_ply,
27         file_other_ply,
28         file_rail_ply,
29         file_sea_ply,
30         file_street_bti,
31         file_street_str,
32         file_strname_stn,
33         file_town_twn,
34         file_tunnel_ply,
35         file_water_ply,
36         file_woodland_ply,
37         file_end
38 };
39
40 struct map_data {
41         struct file *file[file_end];
42         struct map_data *next;
43 };
44
45 struct map_data *load_maps(char *map);
46
47 struct transformation;
48 struct block_info;
49
50 void map_data_foreach(struct map_data *mdata, int file, struct transformation *t, int limit,
51      void(*func)(struct block_info *, unsigned char *, unsigned char *, void *), void *data);
52
53 #endif
54