X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/9095ea4c1cac46d1d73878f726c62ad0a4d20a9f..05a8e0d352affa5999cf906249aa40c7c44fc4f0:/src/mapcache.h diff --git a/src/mapcache.h b/src/mapcache.h index 25b46f78..debc6933 100644 --- a/src/mapcache.h +++ b/src/mapcache.h @@ -27,10 +27,15 @@ G_BEGIN_DECLS +typedef struct { + gdouble duration; // Mostly for Mapnik Rendering duration - negative values indicate not rendered (i.e. read from disk) +} mapcache_extra_t; + void a_mapcache_init (); -void a_mapcache_add ( GdkPixbuf *pixbuf, gint x, gint y, gint z, guint16 type, gint zoom, guint8 alpha, gdouble xshrinkfactor, gdouble yshrinkfactor, const gchar *name ); +void a_mapcache_add ( GdkPixbuf *pixbuf, mapcache_extra_t extra, gint x, gint y, gint z, guint16 type, gint zoom, guint8 alpha, gdouble xshrinkfactor, gdouble yshrinkfactor, const gchar *name ); GdkPixbuf *a_mapcache_get ( gint x, gint y, gint z, guint16 type, gint zoom, guint8 alpha, gdouble xshrinkfactor, gdouble yshrinkfactor, const gchar *name ); -void a_mapcache_remove_all_shrinkfactors ( gint x, gint y, gint z, guint16 type, gint zoom ); +mapcache_extra_t a_mapcache_get_extra ( gint x, gint y, gint z, guint16 type, gint zoom, guint8 alpha, gdouble xshrinkfactor, gdouble yshrinkfactor, const gchar* name ); +void a_mapcache_remove_all_shrinkfactors ( gint x, gint y, gint z, guint16 type, gint zoom, const gchar* name ); void a_mapcache_flush (); void a_mapcache_flush_type ( guint16 type ); void a_mapcache_uninit ();