|
mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
|
#include <glib.h>#include <limits.h>#include <stdio.h>#include <stdlib.h>#include "g_logger.h"#include "store.h"#include "store_null.h"Functions | |
| static int | tile_read (struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z, char *buf, size_t sz, int *compressed, char *log_msg) |
| Simulate a failed tile read from the no-op null storage backend. | |
| static struct stat_info | tile_stat (struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z) |
| Return metadata indicating that the requested tile does not exist and is expired. | |
| static int | metatile_write (struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z, const char *buf, int sz) |
| Discard a serialized metatile buffer while reporting a successful write. | |
| static int | metatile_delete (struct storage_backend *store, const char *xmlconfig, int x, int y, int z) |
| No-op metatile deletion handler for the null storage backend. | |
| static int | metatile_expire (struct storage_backend *store, const char *xmlconfig, int x, int y, int z) |
| No-op metatile expiry handler for the null storage backend. | |
| static char * | tile_storage_id (struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z, char *string) |
| Format the static "null://" storage identifier URI. | |
| static int | close_storage (struct storage_backend *store) |
| Close the null storage backend (no resources to release). | |
| struct storage_backend * | init_storage_null () |
| Allocate and initialize a no-op null storage_backend. | |
|
static |
Close the null storage backend (no resources to release).
| store | Null storage_backend instance (unused). |
| struct storage_backend * init_storage_null | ( | ) |
Allocate and initialize a no-op null storage_backend.
Sets storage_ctx to NULL and wires all backend operation function pointers to the no-op handlers defined in this file.
|
static |
No-op metatile deletion handler for the null storage backend.
| store | Null storage_backend instance (unused). |
| xmlconfig | Logical map style name (unused). |
| x | Tile X coordinate (unused). |
| y | Tile Y coordinate (unused). |
| z | Tile zoom level (unused). |
|
static |
No-op metatile expiry handler for the null storage backend.
| store | Null storage_backend instance (unused). |
| xmlconfig | Logical map style name (unused). |
| x | Tile X coordinate (unused). |
| y | Tile Y coordinate (unused). |
| z | Tile zoom level (unused). |
|
static |
Discard a serialized metatile buffer while reporting a successful write.
| store | Null storage_backend instance (unused). |
| xmlconfig | Logical map style name (unused). |
| options | Style parameterization options string (unused). |
| x | Top-left tile X coordinate of the metatile (unused). |
| y | Top-left tile Y coordinate of the metatile (unused). |
| z | Tile zoom level (unused). |
| buf | Serialized metatile buffer (ignored). |
| sz | Byte length of buf. |
|
static |
Simulate a failed tile read from the no-op null storage backend.
Always writes "Cannot read from NULL storage." into log_msg and returns -1.
| store | Null storage_backend instance (unused). |
| xmlconfig | Logical map style name (unused). |
| options | Style parameterization options string (unused). |
| x | Tile X coordinate (unused). |
| y | Tile Y coordinate (unused). |
| z | Tile zoom level (unused). |
| buf | Output buffer (untouched). |
| sz | Capacity of buf in bytes (unused). |
| compressed | Compression flag output pointer (untouched). |
| log_msg | Caller-supplied buffer receiving an error message on failure. |
|
static |
Return metadata indicating that the requested tile does not exist and is expired.
| store | Null storage_backend instance (unused). |
| xmlconfig | Logical map style name (unused). |
| options | Style parameterization options string (unused). |
| x | Tile X coordinate (unused). |
| y | Tile Y coordinate (unused). |
| z | Tile zoom level (unused). |
|
static |
Format the static "null://" storage identifier URI.
| store | Null storage_backend instance (unused). |
| xmlconfig | Logical map style name (unused). |
| options | Style parameterization options string (unused). |
| x | Tile X coordinate (unused). |
| y | Tile Y coordinate (unused). |
| z | Tile zoom level (unused). |
| string | Caller-supplied output buffer (PATH_MAX bytes) receiving "null://". |