mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
store.c File Reference
#include <errno.h>
#include <glib.h>
#include <string.h>
#include <sys/stat.h>
#include "g_logger.h"
#include "store.h"
#include "store_file.h"
#include "store_memcached.h"
#include "store_null.h"
#include "store_rados.h"
#include "store_ro_composite.h"
#include "store_ro_http_proxy.h"

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.