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 | 5b25c491ea10dfa5eae4cbef8b68ba2113128677 (patch) | |
tree | 47a97d62ff91a99f2cf17f5d19db4b0d49cda0bc /navit/cache.c | |
parent | f4e058e2da6a312d532250d6c36a65795df3b2c3 (diff) | |
download | navit-svn-5b25c491ea10dfa5eae4cbef8b68ba2113128677.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 fcf5137a..e3f2f29d 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) { |