179 unsigned char *
p=(
unsigned char *)str->
c;
262 #define BT_STACK_SIZE 32
attr_type
Definition: attr.h:34
static unsigned int get_u32(unsigned char **p)
Definition: data.h:75
static unsigned int get_u32_unal(unsigned char **p)
Definition: data.h:87
static unsigned short get_u16_unal(unsigned char **p)
Definition: data.h:48
struct timestamp ts
Definition: garmin_img.c:13
char filename[8]
Definition: garmin_img.c:1
int offset
Definition: garmin_img.c:0
Contains exported functions / structures for map.c.
struct street_header_type __attribute__
static unsigned int street_str_get_nameid(struct street_str *str)
Definition: mg.h:137
int poly_get(struct map_rect_priv *mr, struct poly_priv *poly, struct item *item)
Definition: poly.c:101
#define BT_STACK_SIZE
Definition: mg.h:262
static unsigned char street_str_get_unknown3(struct street_str *str)
Definition: mg.h:135
static void block_get_r(struct block *blk, struct coord_rect *r)
Definition: mg.h:45
int block_get_byindex(struct file *file, int idx, struct block_priv *blk)
Definition: block.c:90
void tree_search_free(struct tree_search *ts)
Definition: tree.c:304
static unsigned char street_str_get_limit(struct street_str *str)
Definition: mg.h:133
static int block_get_blocks(struct block *blk)
Definition: mg.h:41
int street_name_get_byid(struct map_rect_priv *mr, struct street_priv *street, int id_hi, int id_lo, struct item *item)
Definition: street.c:730
static int street_header_get_count(struct street_header *str)
Definition: mg.h:107
static unsigned char street_str_get_unknown2(struct street_str *str)
Definition: mg.h:134
int town_get(struct map_rect_priv *mr, struct town_priv *poly, struct item *item)
Definition: town.c:136
int mg_country_from_isonum(int isonum)
Definition: map.c:125
int poly_get_byid(struct map_rect_priv *mr, struct poly_priv *poly, int id_hi, int id_lo, struct item *item)
Definition: poly.c:243
static unsigned char street_str_get_type(struct street_str *str)
Definition: mg.h:136
int mg_country_to_isonum(int country)
Definition: map.c:133
struct map_rect_priv * map_rect_new_mg(struct map_priv *map, struct map_selection *sel)
Definition: map.c:222
file_index
Definition: mg.h:229
@ file_border_ply
Definition: mg.h:230
@ file_street_bti
Definition: mg.h:240
@ file_build_ply
Definition: mg.h:232
@ file_tunnel_ply
Definition: mg.h:244
@ file_town_twn_alt2
Definition: mg.h:249
@ file_natpark_ply
Definition: mg.h:235
@ file_water_ply
Definition: mg.h:245
@ file_rail_ply
Definition: mg.h:238
@ file_town_twn
Definition: mg.h:243
@ file_nature_ply
Definition: mg.h:236
@ file_street_str_alt3
Definition: mg.h:252
@ file_street_str_alt4
Definition: mg.h:253
@ file_sea_ply
Definition: mg.h:239
@ file_street_str
Definition: mg.h:241
@ file_end
Definition: mg.h:247
@ file_golf_ply
Definition: mg.h:233
@ file_town_twn_alt1
Definition: mg.h:248
@ file_bridge_ply
Definition: mg.h:231
@ file_height_ply
Definition: mg.h:234
@ file_woodland_ply
Definition: mg.h:246
@ file_street_str_alt2
Definition: mg.h:251
@ file_strname_stn
Definition: mg.h:242
@ file_street_str_alt1
Definition: mg.h:250
@ file_other_ply
Definition: mg.h:237
static void street_name_numbers_get_coord(struct street_name_numbers *str, struct coord *c)
Definition: mg.h:178
static int street_str_get_segid(struct street_str *str)
Definition: mg.h:132
void tree_search_init(char *dirname, char *filename, struct tree_search *ts, int offset)
Definition: tree.c:293
int block_init(struct map_rect_priv *mr)
Definition: block.c:154
struct item * map_rect_get_item_byid_mg(struct map_rect_priv *mr, int id_hi, int id_lo)
Definition: map.c:291
static unsigned char street_type_get_order(struct street_type *str)
Definition: mg.h:114
struct item * town_search_get_item(struct map_rect_priv *mr)
Definition: town.c:229
struct item * street_search_get_item(struct map_rect_priv *mr)
Definition: street.c:811
int tree_search_next_lin(struct tree_search *ts, unsigned char **p)
Definition: tree.c:263
int housenumber_search_setup(struct map_rect_priv *mr)
Definition: street.c:890
static unsigned short street_type_get_country(struct street_type *str)
Definition: mg.h:115
struct item * housenumber_search_get_item(struct map_rect_priv *mr)
Definition: street.c:948
void map_rect_destroy_mg(struct map_rect_priv *mr)
Definition: map.c:315
unsigned char p[5]
Definition: mg.h:2
static unsigned char street_header_get_order(struct street_header *str)
Definition: mg.h:106
static int block_get_next(struct block *blk)
Definition: mg.h:43
int tree_search_hv(char *dirname, char *filename, unsigned int search1, unsigned int search2, int *result)
Definition: tree.c:174
int town_get_byid(struct map_rect_priv *mr, struct town_priv *twn, int id_hi, int id_lo, struct item *item)
Definition: town.c:184
int street_get(struct map_rect_priv *mr, struct street_priv *street, struct item *item)
Definition: street.c:366
static int block_get_size(struct block *blk)
Definition: mg.h:42
int block_next(struct map_rect_priv *mr)
Definition: block.c:203
static unsigned short block_offset_get_block(struct block_offset *blk)
Definition: mg.h:294
int tree_search_next(struct tree_search *ts, unsigned char **p, int dir)
Definition: tree.c:223
int mg_country_postal_len(int country)
Definition: map.c:141
static int block_get_count(struct block *blk)
Definition: mg.h:44
int street_get_byid(struct map_rect_priv *mr, struct street_priv *street, int id_hi, int id_lo, struct item *item)
Definition: street.c:492
int block_next_lin(struct map_rect_priv *mr)
Definition: block.c:170
static unsigned short block_offset_get_offset(struct block_offset *blk)
Definition: mg.h:293
unsigned char * p
Definition: mg.h:272
int next
Definition: mg.h:267
struct coord_rect stack[BT_STACK_SIZE]
Definition: mg.h:269
struct block * b
Definition: mg.h:265
int block_count
Definition: mg.h:268
int stackp
Definition: mg.h:270
struct coord_rect r r_curr
Definition: mg.h:266
int order
Definition: mg.h:271
unsigned char * end
Definition: mg.h:273
struct file * file
Definition: mg.h:30
unsigned char p[4]
Definition: mg.h:291
unsigned char * end
Definition: mg.h:282
int binarytree
Definition: mg.h:284
unsigned char * p
Definition: mg.h:281
int block_num
Definition: mg.h:277
unsigned char * block_start
Definition: mg.h:279
struct coord_rect b_rect
Definition: mg.h:278
struct block_bt_priv bt
Definition: mg.h:285
unsigned char * p_start
Definition: mg.h:283
struct block * b
Definition: mg.h:280
unsigned char p[32]
Definition: mg.h:39
struct coord rl
Definition: coord.h:60
struct coord lu
Definition: coord.h:59
int y
Definition: coord.h:36
int x
Definition: coord.h:35
char * suffix
Definition: mg.h:160
int number
Definition: mg.h:159
Implementation-specific item data for traffic map items.
Definition: mg.h:47
enum attr_type attr_last
Definition: mg.h:52
unsigned char * aend
Definition: mg.h:51
unsigned char * cp
Definition: mg.h:50
unsigned char * astart
Definition: mg.h:51
unsigned char * cend
Definition: mg.h:50
int aidx
Definition: mg.h:49
unsigned char * ap
Definition: mg.h:51
struct map_rect_priv * mr
Definition: traffic.c:178
int cidx
Definition: mg.h:48
unsigned char * cstart
Definition: mg.h:50
enum attr_type attr_next
Definition: mg.h:53
Represents an object on a map.
Definition: item.h:115
int id_hi
Definition: item.h:117
int id_lo
Definition: item.h:118
Represents the map from a single binfile.
Definition: binfile.c:105
int id
Definition: binfile.c:106
char * dirname
Definition: mg.h:259
Implementation-specific map rect data.
Definition: binfile.c:137
struct map_selection * sel
Definition: binfile.c:143
struct tree_search ts
Definition: mg.h:327
struct block_priv b
Definition: mg.h:322
struct attr * search_attr
Definition: mg.h:330
int search_country
Definition: mg.h:328
struct street_priv street
Definition: mg.h:326
struct town_priv town
Definition: mg.h:324
struct map_selection * xsel
Definition: mg.h:316
int search_partial
Definition: mg.h:332
enum file_index current_file
Definition: mg.h:320
struct item * search_item_tmp
Definition: mg.h:338
struct block_offset * search_blk_off
Definition: mg.h:339
int search_blk_count
Definition: mg.h:335
enum attr_type search_type search_type_next
Definition: mg.h:336
struct file * file
Definition: mg.h:321
struct item_priv item3
Definition: mg.h:342
GHashTable * block_hash[file_end]
Definition: mg.h:341
struct map_selection * cur_sel
Definition: mg.h:317
struct map_rect_priv * search_mr_tmp
Definition: mg.h:337
struct item search_item
Definition: mg.h:329
char * search_str
Definition: mg.h:331
struct map_priv * m
Definition: binfile.c:144
unsigned char * search_p
Definition: mg.h:334
struct poly_priv poly
Definition: mg.h:325
int search_block
Definition: mg.h:340
int search_linear
Definition: mg.h:333
Used to select data from a map.
Definition: map.h:58
int y
Definition: coord.h:55
int x
Definition: coord.h:54
int aidx
Definition: mg.h:97
unsigned char order
Definition: mg.h:91
int subpoly_num_all
Definition: mg.h:85
unsigned int * count
Definition: mg.h:94
unsigned char type
Definition: mg.h:92
enum attr_type attr_next
Definition: mg.h:98
unsigned int count_sum
Definition: mg.h:95
char * name
Definition: mg.h:90
int subpoly_num
Definition: mg.h:84
int poly_num
Definition: mg.h:82
unsigned char * poly_next
Definition: mg.h:83
unsigned int polys
Definition: mg.h:93
unsigned char * subpoly_next
Definition: mg.h:86
unsigned char * subpoly_start
Definition: mg.h:87
struct coord c[2]
Definition: mg.h:89
unsigned char * p
Definition: mg.h:88
int tag
Definition: mg.h:186
int len
Definition: mg.h:185
struct housenumber first
Definition: mg.h:188
struct street_name_segment * segment
Definition: mg.h:190
struct housenumber last
Definition: mg.h:189
struct coord * c
Definition: mg.h:187
int aux_len
Definition: mg.h:173
int tmp_len
Definition: mg.h:175
int dist
Definition: mg.h:166
struct street_name_segment * segments
Definition: mg.h:172
int segment_count
Definition: mg.h:171
struct housenumber last
Definition: mg.h:170
int tag
Definition: mg.h:165
struct coord * c
Definition: mg.h:168
unsigned char * aux_data
Definition: mg.h:174
int len
Definition: mg.h:164
struct housenumber first
Definition: mg.h:169
unsigned char * tmp_data
Definition: mg.h:176
int country
Definition: mg.h:167
int segid
Definition: mg.h:140
int country
Definition: mg.h:141
int len
Definition: mg.h:145
int townassoc
Definition: mg.h:147
int aux_len
Definition: mg.h:152
int country
Definition: mg.h:146
char * name1
Definition: mg.h:148
unsigned char * tmp_data
Definition: mg.h:155
int segment_count
Definition: mg.h:150
char * name2
Definition: mg.h:149
unsigned char * aux_data
Definition: mg.h:153
struct street_name_segment * segments
Definition: mg.h:151
int tmp_len
Definition: mg.h:154
GHashTable * streetname_hash
Definition: mg.h:226
struct coord_rect ref
Definition: mg.h:209
int more
Definition: mg.h:211
char first_number[32]
Definition: mg.h:223
struct housenumber hn[100]
Definition: mg.h:216
int type_count
Definition: mg.h:198
struct coord hnc[100]
Definition: mg.h:215
int bytes
Definition: mg.h:210
unsigned char * p
Definition: mg.h:203
int status
Definition: mg.h:207
int housenumber
Definition: mg.h:213
unsigned char * end
Definition: mg.h:205
enum attr_type attr_next
Definition: mg.h:221
struct street_name_numbers name_numbers
Definition: mg.h:219
struct street_type * type
Definition: mg.h:199
struct file * name_file
Definition: mg.h:196
int cidx
Definition: mg.h:214
int status_rewind
Definition: mg.h:208
struct street_str * str_start
Definition: mg.h:201
int flags
Definition: mg.h:212
struct street_name name
Definition: mg.h:218
unsigned char * p_rewind
Definition: mg.h:204
unsigned char * coord_begin
Definition: mg.h:202
struct street_str * str
Definition: mg.h:200
char last_number[32]
Definition: mg.h:224
char debug[256]
Definition: mg.h:222
struct street_name_number name_number
Definition: mg.h:220
int hn_count
Definition: mg.h:217
unsigned char * next
Definition: mg.h:206
char current_number[32]
Definition: mg.h:225
struct street_header * header
Definition: mg.h:197
unsigned char p[12]
Definition: mg.h:130
unsigned char p[3]
Definition: mg.h:112
struct coord c
Definition: mg.h:59
int cidx
Definition: mg.h:73
char * name
Definition: mg.h:60
int aidx
Definition: mg.h:74
unsigned int id
Definition: mg.h:58
unsigned int unknown2
Definition: mg.h:66
unsigned char size
Definition: mg.h:67
unsigned short country
Definition: mg.h:65
char * district
Definition: mg.h:61
unsigned char unknown3
Definition: mg.h:69
enum attr_type attr_next
Definition: mg.h:75
char * postal_code1
Definition: mg.h:62
unsigned char order
Definition: mg.h:63
char postal[32]
Definition: mg.h:77
struct item town_attr_item
Definition: mg.h:78
char * postal_code2
Definition: mg.h:70
char debug[256]
Definition: mg.h:76
unsigned int street_assoc
Definition: mg.h:68
unsigned int unknown4
Definition: mg.h:71
unsigned char type
Definition: mg.h:64
struct tree_hdr * hdr
Definition: mg.h:297
unsigned char * last
Definition: mg.h:299
int high
Definition: mg.h:302
int last_high
Definition: mg.h:304
unsigned char * end
Definition: mg.h:300
unsigned char * p
Definition: mg.h:298
int low
Definition: mg.h:301
int last_low
Definition: mg.h:303
struct tree_search_node nodes[5]
Definition: mg.h:311
int curr_node
Definition: mg.h:310
int last_node
Definition: mg.h:309
struct file * f
Definition: mg.h:308