Commit | Line | Data |
---|---|---|
1 | // internals: stuff lightrec's public API doesn't provide | |
2 | #include <assert.h> | |
3 | #include "lightrec-private.h" | |
4 | #include "blockcache.h" | |
5 | #include "internals.h" | |
6 | ||
7 | void lightrec_plugin_clear_block_caches(struct lightrec_state *state) | |
8 | { | |
9 | if (state == NULL) | |
10 | return; | |
11 | ||
12 | lightrec_invalidate_all(state); | |
13 | lightrec_free_block_cache(state->block_cache); | |
14 | state->block_cache = lightrec_blockcache_init(state); | |
15 | assert(state->block_cache); | |
16 | } |