18#ifndef STORE_RO_COMPOSITE_H
19#define STORE_RO_COMPOSITE_H
28#include <cairo/cairo.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_composite(const char *connection_string)
Allocate and initialize a read-only Cairo compositing storage_backend.
Definition store_ro_composite.c:338
Closure state passed to Cairo's cairo_surface_write_to_png_stream() callback.
Definition store_ro_composite.h:71
unsigned int pos
Current write cursor offset (and total bytes written) in data.
Definition store_ro_composite.h:77
unsigned int max_size
Maximum writable byte capacity of data.
Definition store_ro_composite.h:75
char * data
Destination byte buffer receiving encoded PNG chunks.
Definition store_ro_composite.h:73
Per-backend state for the read-only composite storage engine.
Definition store_ro_composite.h:53
int render_size
Target tile width and height in pixels (e.g., 256 or 512).
Definition store_ro_composite.h:65
struct store_ro_composite_tile_cache cache
Single-entry cache storing the last composited tile payload and stat metadata.
Definition store_ro_composite.h:63
char xmlconfig_secondary[41]
Map style name (xmlconfig) passed to store_secondary.
Definition store_ro_composite.h:61
struct storage_backend * store_secondary
Background (base) storage backend composited beneath store_primary.
Definition store_ro_composite.h:59
char xmlconfig_primary[41]
Map style name (xmlconfig) passed to store_primary.
Definition store_ro_composite.h:57
struct storage_backend * store_primary
Foreground (top) storage backend layered over store_secondary.
Definition store_ro_composite.h:55
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
Single-tile cache holding the most recently composited PNG tile and its metadata.
Definition store_ro_composite.h:39
char * tile
Heap-allocated PNG byte buffer (MAX_TILE_SIZE bytes) holding the composited image.
Definition store_ro_composite.h:43
int x
Tile X, Y, and zoom coordinates of the cached tile (-1 when invalid).
Definition store_ro_composite.h:45
struct stat_info st_stat
Combined metadata and expiry status for the cached composited tile.
Definition store_ro_composite.h:41
int y
Definition store_ro_composite.h:45
char xmlname[41]
Logical map style name (xmlname) corresponding to the cached tile.
Definition store_ro_composite.h:47
int z
Definition store_ro_composite.h:45