diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-05-29 13:35:39 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-05-29 13:35:39 +0000 |
commit | b6412a87ddbc88658e528a0d6cbec41d5c5fc114 (patch) | |
tree | ea222ae78f518be2edad7ddd71a459d007446005 /navit/maptool | |
parent | fcc6c858cedd89cdf7a950f7386bc6758c154eaa (diff) | |
download | navit-svn-b6412a87ddbc88658e528a0d6cbec41d5c5fc114.tar.gz |
Refactor:core:Add some Doxygen comments.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5781 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/maptool')
-rw-r--r-- | navit/maptool/maptool.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/navit/maptool/maptool.h b/navit/maptool/maptool.h index 9977e03d..79101d63 100644 --- a/navit/maptool/maptool.h +++ b/navit/maptool/maptool.h @@ -69,10 +69,22 @@ extern struct tile_head { } *tile_head_root; - +/** + * A map item (street, POI, border etc.) as it is stored in a Navit binfile. + * Note that this struct only has fields for the header of the item. The + * actual data (coordinates and attributes) is stored in memory after + * this struct as two arrays of type struct coord and struct attr_bin + * respectively. + * See also http://wiki.navit-project.org/index.php/Navit%27s_binary_map_driver . + * @see struct coord + * @see struct attr_bin + */ struct item_bin { + /** Length of this item (not including this length field) in 32-bit ints. */ int len; + /** Item type. */ enum item_type type; + /** Length of the following coordinate array in 32-bit ints. */ int clen; }; @@ -135,10 +147,16 @@ GList *boundary_find_matches(GList *bl, struct coord *c); void free_boundaries(GList *l); /* buffer.c */ + +/** A buffer that can be grown as needed. */ struct buffer { + /** Number of bytes to extend the buffer by when it must grow. */ int malloced_step; + /** Current allocated size (bytes). */ long long malloced; + /** Base address of this buffer. */ unsigned char *base; + /** Size of currently used part of the buffer. */ long long size; }; |