navit  0.5.3-trunk
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 
23 #define GROUP_RGN1 0
24 #define GROUP_RGN2 1
25 
26 struct gar2navit {
27  unsigned short id;
28  unsigned short maxid;
29  enum item_type ntype;
30  unsigned group;
31  char *descr;
32  struct gar2navit *next;
33 };
34 
35 #define G2N_POINT 1
36 #define G2N_POLYLINE 2
37 #define G2N_POLYGONE 3
38 #define G2N_KIND_MASK 0xF0000000
39 #define G2N_KIND_SHIFT 28
40 #define G2N_RGN1 (GROUP_RGN1<<29)
41 #define G2N_RGN2 (GROUP_RGN2<<29)
42 
43 struct gar2nav_conv {
44  struct gar2navit *points;
47 };
48 
49 struct gar2nav_conv *g2n_conv_load(char *file);
50 enum item_type g2n_get_type(struct gar2nav_conv *c, unsigned int type, unsigned short id);
51 char *g2n_get_descr(struct gar2nav_conv *c, int type, unsigned short id);
struct gar2nav_conv * g2n_default_conv(void)
enum item_type g2n_get_type(struct gar2nav_conv *c, unsigned int type, unsigned short id)
Definition: gar2navit.c:152
struct gar2nav_conv * g2n_conv_load(char *file)
Definition: gar2navit.c:136
char * g2n_get_descr(struct gar2nav_conv *c, int type, unsigned short id)
Definition: gar2navit.c:184
char type[3]
Definition: garmin_img.c:2
item_type
Definition: item.h:29
static struct pcoord c
Definition: popup.c:375
Definition: file.h:36
Definition: gar2navit.h:43
struct gar2navit * polygons
Definition: gar2navit.h:46
struct gar2navit * polylines
Definition: gar2navit.h:45
struct gar2navit * points
Definition: gar2navit.h:44
Definition: gar2navit.h:26
struct gar2navit * next
Definition: gar2navit.h:32
char * descr
Definition: gar2navit.h:31
unsigned short maxid
Definition: gar2navit.h:28
unsigned short id
Definition: gar2navit.h:27
unsigned group
Definition: gar2navit.h:30
enum item_type ntype
Definition: gar2navit.h:29