diff options
author | chris <chris> | 2006-09-20 16:44:53 +0000 |
---|---|---|
committer | chris <chris> | 2006-09-20 16:44:53 +0000 |
commit | cf82cfb91e9474cd3154793e3f55c6ebb1dee258 (patch) | |
tree | 6b1e01d324cb011a7b7717d1d43fa8fb26201d5c | |
parent | d000028a9713d98763c21dde80cebf7ef0843e21 (diff) |
Accessor method for path of tileset (maybe useful if we want to cache open
tilesets).
-rw-r--r-- | tileserver/tileset.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tileserver/tileset.c b/tileserver/tileset.c index c11c4ea8f..866125e30 100644 --- a/tileserver/tileset.c +++ b/tileserver/tileset.c @@ -7,7 +7,7 @@ * */ -static const char rcsid[] = "$Id: tileset.c,v 1.5 2006-09-20 15:45:44 chris Exp $"; +static const char rcsid[] = "$Id: tileset.c,v 1.6 2006-09-20 16:44:53 chris Exp $"; /* * Tile sets are stored in directory trees which contain indices of tile @@ -103,6 +103,12 @@ void tileset_close(tileset T) { xfree(T); } +/* tileset_path T + * Return the path used to open T. */ +char *tileset_path(tileset T) { + return T->t_path; +} + static size_t blockmap_bitmap_len(const unsigned blocking) { return (blocking * blocking + 8) / 8; } |