X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/a25c4c508425a98c4aba9b5d72c6e57c985f9da2..3adb68271b3969f524ebbba61ec49d6661e8979d:/src/mapcache.h diff --git a/src/mapcache.h b/src/mapcache.h index a102fba4..debc6933 100644 --- a/src/mapcache.h +++ b/src/mapcache.h @@ -25,10 +25,24 @@ #include #include +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, guint8 type, guint zoom, guint8 alpha, gdouble xshrinkfactor, gdouble yshrinkfactor ); -GdkPixbuf *a_mapcache_get ( gint x, gint y, gint z, guint8 type, guint zoom, guint8 alpha, gdouble xshrinkfactor, gdouble yshrinkfactor ); -void a_mapcache_remove_all_shrinkfactors ( guint16 x, guint16 y, guint16 z, guint8 type, guint zoom ); +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 ); +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 (); +gint a_mapcache_get_size (); +gint a_mapcache_get_count (); + +G_END_DECLS + #endif