From b7505083f50737555a5b83787257ac1adc314f44 Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Tue, 5 May 2009 17:11:39 +0200 Subject: [PATCH] Add ChamplainCache --- bindings/perl/Champlain/xs/ChamplainCache.xs | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 bindings/perl/Champlain/xs/ChamplainCache.xs diff --git a/bindings/perl/Champlain/xs/ChamplainCache.xs b/bindings/perl/Champlain/xs/ChamplainCache.xs new file mode 100644 index 0000000..04ae356 --- /dev/null +++ b/bindings/perl/Champlain/xs/ChamplainCache.xs @@ -0,0 +1,36 @@ +#include "champlain-perl.h" + + +MODULE = Champlain::Cache PACKAGE = Champlain::Cache PREFIX = champlain_cache_ + + +ChamplainCache* +champlain_cache_get_default (class) + C_ARGS: /* No args */ + + +void +champlain_cache_update_tile (ChamplainCache *self, ChamplainTile *tile, guint filesize) + + +gboolean +champlain_cache_fill_tile (ChamplainCache *self, ChamplainTile *tile) + + +gboolean +champlain_cache_tile_is_expired (ChamplainCache *self, ChamplainTile *tile) + + +void +champlain_cache_set_size_limit (ChamplainCache *self, guint size_limit) + + +guint +champlain_cache_get_size_limit (ChamplainCache *self) + +void +champlain_cache_purge (ChamplainCache *self) + + +void +champlain_cache_purge_on_idle (ChamplainCache *self) -- 2.39.5