summaryrefslogtreecommitdiff
path: root/navit/maptool
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-05-29 13:35:39 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-05-29 13:35:39 +0000
commitb6412a87ddbc88658e528a0d6cbec41d5c5fc114 (patch)
treeea222ae78f518be2edad7ddd71a459d007446005 /navit/maptool
parentfcc6c858cedd89cdf7a950f7386bc6758c154eaa (diff)
downloadnavit-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.h20
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;
};