From 8788b9b33ec46e3f96170fb35a70a03addbf9671 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Wed, 10 Mar 2021 15:04:13 +0200 Subject: refactor && improve. Make code more reusable and generic while preparing to add uncached ops. Signed-off-by: Gediminas Jakutis --- src/cache.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/cache.h') diff --git a/src/cache.h b/src/cache.h index 6255122..8c61bc3 100644 --- a/src/cache.h +++ b/src/cache.h @@ -16,13 +16,10 @@ int cache_destroy(struct stream * const in); /* BLOCKMANIP */ int cache_transfer(struct stream * const src, struct stream * const dest); int cache_block_copy(struct stream * const restrict src, struct stream * const restrict dest); -int cache_list_copy(struct stream * const restrict src, struct stream * const restrict dest); -int cache_split(struct stream * const src, struct stream * const A, struct stream * const B); -int cache_rewind(struct stream * const restrict in); /* GET */ -struct entry_l *cached_get_array(struct stream * const in); -struct entry_l *cached_get_list(struct stream * const in); +struct entry_l *cached_get_array(struct stream * const in, struct entry_l * const store); +struct entry_l *cached_get_list(struct stream * const in, struct entry_l * const store); /* PUT */ int cached_put_array(struct stream * const in, const struct entry_l * const data); -- cgit v1.2.3