]>
Commit | Line | Data |
---|---|---|
6846aafb GB |
1 | /* |
2 | * viking -- GPS Data and Topo Analyzer, Explorer, and Manager | |
3 | * | |
4 | * Copyright (C) 2005, Evan Battaglia <viking@greentorch.org> | |
5 | * Copyright (C) 2008-2009, Guilhem Bonnefille <guilem.bonnefille@gmail.com> | |
6 | * UTM multi-zone stuff by Kit Transue <notlostyet@didactek.com> | |
7 | * Dynamic map type by Guilhem Bonnefille <guilhem.bonnefille@gmail.com> | |
8 | * | |
9 | * This program is free software; you can redistribute it and/or modify | |
10 | * it under the terms of the GNU General Public License as published by | |
11 | * the Free Software Foundation; either version 2 of the License, or | |
12 | * (at your option) any later version. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU General Public License | |
20 | * along with this program; if not, write to the Free Software | |
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 | * | |
23 | */ | |
24 | ||
25 | #ifdef HAVE_CONFIG_H | |
26 | #include "config.h" | |
27 | #endif | |
28 | ||
29 | #include "vikmapslayer.h" | |
30 | #include "vikmapslayer_compat.h" | |
31 | #include "old-vik-map-type.h" | |
32 | ||
33 | void maps_layer_register_type ( const char *label, guint id, VikMapsLayer_MapType *map_type ) | |
34 | { | |
35 | g_assert(id == map_type->uniq_id); | |
36 | GObject *object = old_vik_map_type_new_with_id (*map_type); | |
37 | maps_layer_register_map_type ( label, VIK_MAP_TYPE (object) ); | |
38 | } |