navit 0.5.3-trunk
Loading...
Searching...
No Matches
gar2navit.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2007 Alexander Atanasov <aatanasov@gmail.com>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; version 2 of the License.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 MA 02110-1301 USA
17
18 Garmin and MapSource are registered trademarks or trademarks
19 of Garmin Ltd. or one of its subsidiaries.
20
21*/
22#ifndef __NAVIT_GAR2NAVIT__
23#define __NAVIT_GAR2NAVIT__
24#include "item_type_def.h"
25
26#define GROUP_RGN1 0
27#define GROUP_RGN2 1
28
29struct gar2navit {
30 unsigned short id;
31 unsigned short maxid;
33 unsigned group;
34 char *descr;
35 struct gar2navit *next;
36};
37
38#define G2N_POINT 1
39#define G2N_POLYLINE 2
40#define G2N_POLYGONE 3
41#define G2N_KIND_MASK 0xF0000000
42#define G2N_KIND_SHIFT 28
43#define G2N_RGN1 (GROUP_RGN1 << 29)
44#define G2N_RGN2 (GROUP_RGN2 << 29)
45
51
52struct gar2nav_conv *g2n_conv_load(char *file);
53enum item_type g2n_get_type(struct gar2nav_conv *c, unsigned int type, unsigned short id);
54char *g2n_get_descr(struct gar2nav_conv *c, int type, unsigned short id);
56
57#endif // __NAVIT_GAR2NAVIT__
enum item_type g2n_get_type(struct gar2nav_conv *c, unsigned int type, unsigned short id)
Definition gar2navit.c:152
char * g2n_get_descr(struct gar2nav_conv *c, int type, unsigned short id)
Definition gar2navit.c:184
struct gar2nav_conv * g2n_conv_load(char *file)
Definition gar2navit.c:136
struct gar2nav_conv * g2n_default_conv(void)
char type[3]
Definition garmin_img.c:2
item_type
Definition item_type_def.h:8
static struct pcoord c
Definition popup.c:375
Definition file.h:38
Definition gar2navit.h:46
struct gar2navit * polygons
Definition gar2navit.h:49
struct gar2navit * polylines
Definition gar2navit.h:48
struct gar2navit * points
Definition gar2navit.h:47
Definition gar2navit.h:29
struct gar2navit * next
Definition gar2navit.h:35
char * descr
Definition gar2navit.h:34
unsigned short maxid
Definition gar2navit.h:31
unsigned short id
Definition gar2navit.h:30
unsigned group
Definition gar2navit.h:33
enum item_type ntype
Definition gar2navit.h:32