]> err.no Git - libchamplain/commitdiff
Add ChamplainCache
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Tue, 5 May 2009 15:11:39 +0000 (17:11 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 6 May 2009 03:16:03 +0000 (23:16 -0400)
bindings/perl/Champlain/xs/ChamplainCache.xs [new file with mode: 0644]

diff --git a/bindings/perl/Champlain/xs/ChamplainCache.xs b/bindings/perl/Champlain/xs/ChamplainCache.xs
new file mode 100644 (file)
index 0000000..04ae356
--- /dev/null
@@ -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)