1 |
#ifndef IMAGE_MAP_FILE_H |
2 |
#define IMAGE_MAP_FILE_H |
3 |
|
4 |
#include "charlist.h" |
5 |
|
6 |
#define MATCH_NO_WILD_CHARS ((unsigned short)0x0000) |
7 |
#define MATCH_WILD_CHARS ((unsigned short)0x0002) |
8 |
|
9 |
|
10 |
typedef struct _gridmap_line_s { |
11 |
char * match; |
12 |
charlist_t * mappings; |
13 |
} gridmap_line_t; |
14 |
|
15 |
typedef struct _gridmap_list { |
16 |
gridmap_line_t * line; |
17 |
struct _gridmap_list * next; |
18 |
} gridmap_list_t; |
19 |
|
20 |
void gridmap_list_free(gridmap_list_t * list); |
21 |
int parseImageMapFile(const char * image_map_file, gridmap_list_t ** list); |
22 |
gridmap_line_t * find_mapping(const gridmap_list_t * list, const char * to_match, unsigned short matching_type); |
23 |
#endif /* IMAGE_MAP_FILE_H */ |