From: Kaj-Michael Lang Date: Fri, 1 Aug 2008 12:06:01 +0000 (+0300) Subject: Repo: misc X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1d47b5f2912a2fb60cca33797fbeb6adb468408;p=mapper Repo: misc --- diff --git a/src/map-tile-repo.c b/src/map-tile-repo.c index 5442612..11099bc 100644 --- a/src/map-tile-repo.c +++ b/src/map-tile-repo.c @@ -26,12 +26,29 @@ #include "map-tile-repo.h" +/** + * map_tile_repo_new: + * + * Create a new empty Map image tile repository structure. + * + */ RepoData * map_tile_repo_new(void) { -return g_new0(RepoData, 1); +RepoData *rd; +rd=g_new0(RepoData, 1); +rd->min_zoom=0; +rd->max_zoom=17; +return rd; } +/** + * map_tile_repo_new_from_string: + * @str + * + * Create a new Map image tile repository structure by filling in values from given configuration string. + * + */ RepoData * map_tile_repo_new_from_string(gchar *str) { @@ -87,7 +104,12 @@ map_tile_repo_set_type(rd); return rd; } - +/** + * map_tile_repo_free: + * @rd + * + * Free a map image tile repository + */ void map_tile_repo_free(RepoData *rd) { @@ -131,4 +153,3 @@ if (g_mkdir_with_parents(rd->cache_dir, 0755)) return FALSE; return g_file_test(rd->cache_dir, G_FILE_TEST_EXISTS); } -