diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-02-26 08:53:43 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-02-26 08:53:43 +0000 |
commit | a3823d70ec0fa3ff6cbe5f529ad9d2ab51d0580c (patch) | |
tree | 47a97d62ff91a99f2cf17f5d19db4b0d49cda0bc /navit/cache.c | |
parent | c5b13ab4c85b74490feeb0fd3154dec00c862bc0 (diff) | |
download | navit-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.c | 6 |
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) { |