18#ifndef STORE_RO_HTTP_PROXY_H
19#define STORE_RO_HTTP_PROXY_H
#define XMLCONFIG_MAX
Maximum buffer size (including NUL terminator) for map style names, MIME types, and options.
Definition protocol.h:60
struct storage_backend * init_storage_ro_http_proxy(const char *connection_string)
Allocate and initialize a read-only HTTP proxy storage_backend.
Definition store_ro_http_proxy.c:408
Dynamically resized memory buffer used by libcurl's write callback to accumulate HTTP response bodies...
Definition store_ro_http_proxy.h:65
char * memory
Heap-allocated response payload buffer.
Definition store_ro_http_proxy.h:67
size_t size
Current number of valid bytes stored in memory.
Definition store_ro_http_proxy.h:69
Per-backend state for the read-only HTTP proxy storage engine.
Definition store_ro_http_proxy.h:53
struct ro_http_proxy_tile_cache cache
Single-entry cache storing the last fetched tile payload and stat metadata.
Definition store_ro_http_proxy.h:59
CURL * ctx
Reusable libcurl easy handle configured for upstream tile requests.
Definition store_ro_http_proxy.h:55
char * baseurl
Base URL template/prefix of the upstream tile server.
Definition store_ro_http_proxy.h:57
Single-tile cache holding the most recently fetched remote tile and its metadata.
Definition store_ro_http_proxy.h:39
int z
Definition store_ro_http_proxy.h:45
int y
Definition store_ro_http_proxy.h:45
struct stat_info st_stat
Metadata and expiry status derived from the upstream HTTP response headers.
Definition store_ro_http_proxy.h:41
char xmlname[41]
Logical map style name (xmlname) corresponding to the cached tile.
Definition store_ro_http_proxy.h:47
int x
Tile X, Y, and zoom coordinates of the cached tile (-1 when invalid).
Definition store_ro_http_proxy.h:45
char * tile
Heap-allocated buffer holding the fetched tile payload bytes.
Definition store_ro_http_proxy.h:43
Metadata and expiry state returned when querying a stored tile or metatile.
Definition store.h:32
Virtual dispatch table and context handle for a pluggable tile/metatile storage backend.
Definition store.h:48