mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
store.h File Reference
#include "render_config.h"
#include <stdlib.h>
#include <sys/types.h>

Go to the source code of this file.

Classes

struct  stat_info
 Metadata and expiry state returned when querying a stored tile or metatile. More...
struct  storage_backend
 Virtual dispatch table and context handle for a pluggable tile/metatile storage backend. More...

Functions

struct storage_backend * init_storage_backend (const char *options)
 Instantiate and initialize a storage backend from a path or URI specification.

Function Documentation

◆ init_storage_backend()

struct storage_backend * init_storage_backend ( const char * options)

Instantiate and initialize a storage backend from a path or URI specification.

Dispatches to the appropriate backend constructor based on the prefix of options:

In mod_tile (Apache HTTPD), this function is invoked once per worker thread so each thread owns an independent storage_backend context.

Parameters
optionsFilesystem directory path (starting with '/') or backend URI string.
Returns
Initialized struct storage_backend handle on success, or NULL if options is empty, invalid, or backend initialization fails.