summaryrefslogtreecommitdiff
path: root/navit/cache.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-02-26 08:53:43 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-02-26 08:53:43 +0000
commita3823d70ec0fa3ff6cbe5f529ad9d2ab51d0580c (patch)
tree47a97d62ff91a99f2cf17f5d19db4b0d49cda0bc /navit/cache.c
parentc5b13ab4c85b74490feeb0fd3154dec00c862bc0 (diff)
downloadnavit-a3823d70ec0fa3ff6cbe5f529ad9d2ab51d0580c.tar.gz
Add:Core:Possibility to configure cache size
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5393 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/cache.c')
-rw-r--r--navit/cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/navit/cache.c b/navit/cache.c
index fcf5137a4..e3f2f29d3 100644
--- a/navit/cache.c
+++ b/navit/cache.c
@@ -113,6 +113,12 @@ cache_new(int id_size, int size)
return cache;
}
+void
+cache_resize(struct cache *cache, int size)
+{
+ cache->size=size;
+}
+
static void
cache_insert_mru(struct cache *cache, struct cache_entry_list *list, struct cache_entry *entry)
{