18#ifndef STORE_FILE_UTILS_H
19#define STORE_FILE_UTILS_H
35 int mkdirp(
const char *path);
41 int path_to_xyz(
const char *tilepath,
const char *path,
char *xmlconfig,
int *px,
int *py,
int *pz);
44 int xyzo_to_meta(
char *path,
size_t len,
const char *tile_dir,
const char *xmlconfig,
const char *options,
int x,
int y,
int z);
45 int xyz_to_meta(
char *path,
size_t len,
const char *tile_dir,
const char *xmlconfig,
int x,
int y,
int z);
int path_to_xyz(const char *tilepath, const char *path, char *xmlconfig, int *px, int *py, int *pz)
Parse a metatile or tile filesystem path back into (xmlconfig, px, py, pz).
Definition store_file_utils.c:202
int mkdirp(const char *path)
Recursively create all parent directories required for a target file path.
Definition store_file_utils.c:81
int xyzo_to_meta(char *path, size_t len, const char *tile_dir, const char *xmlconfig, const char *options, int x, int y, int z)
Compute the .meta file path and sub-tile index for (xmlconfig, options, x, y, z).
Definition store_file_utils.c:298
int xyz_to_meta(char *path, size_t len, const char *tile_dir, const char *xmlconfig, int x, int y, int z)
Compute the .meta file path and sub-tile index for unparameterized (xmlconfig, x, y,...
Definition store_file_utils.c:352
time_t get_planet_time(const char *tile_dir, const char *xmlname)
Retrieve the planet database import timestamp used to determine tile expiry.
Definition store_file_utils.c:43