From: Emmanuel Rodriguez Date: Tue, 5 May 2009 15:11:39 +0000 (+0200) Subject: Add ChamplainCache X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7505083f50737555a5b83787257ac1adc314f44;p=libchamplain Add ChamplainCache --- 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)