X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Fblockcache.h;h=3859fb8eaf54fcaff4b6cf66322393a90f4b37ec;hb=878e6cda26bbf4af5090a01709db026d42c233b4;hp=3b782f47909be6f0e9016e3144e886bc329e9314;hpb=98fa08a56df29aeed65dfbc7697603c90bc66144;p=pcsx_rearmed.git diff --git a/deps/lightrec/blockcache.h b/deps/lightrec/blockcache.h index 3b782f47..3859fb8e 100644 --- a/deps/lightrec/blockcache.h +++ b/deps/lightrec/blockcache.h @@ -21,7 +21,12 @@ void lightrec_unregister_block(struct blockcache *cache, struct block *block); struct blockcache * lightrec_blockcache_init(struct lightrec_state *state); void lightrec_free_block_cache(struct blockcache *cache); +void lightrec_free_all_blocks(struct blockcache *cache); + u32 lightrec_calculate_block_hash(const struct block *block); _Bool lightrec_block_is_outdated(struct lightrec_state *state, struct block *block); +void lightrec_remove_outdated_blocks(struct blockcache *cache, + const struct block *except); + #endif /* __BLOCKCACHE_H__ */