From 7754455c48c50764ad7291ea508109c53b60517f Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Fri, 27 Mar 2020 14:40:33 +0200 Subject: cache I/O implementation and fixes. Signed-off-by: Gediminas Jakutis --- src/cache.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/cache.h') diff --git a/src/cache.h b/src/cache.h index 0607112..45215d4 100644 --- a/src/cache.h +++ b/src/cache.h @@ -12,5 +12,12 @@ int cache_create(struct stream * const restrict in, const struct settings * cons int cache_populate(struct stream * const restrict in); int cache_flush(struct stream * const in); int cache_destroy(struct stream * const in); +int cache_transfer(struct stream * const from, struct stream * const to); + +int cached_get_array(struct stream * const in, ssize_t idx, struct entry_l * const data); +int cached_get_list(struct stream * const restrict in, ssize_t idx, struct entry_l * const data); + +int cached_put_array(struct stream * const in, ssize_t idx, const struct entry_l * const data); +int cached_put_list(struct stream * const restrict in, ssize_t idx, const struct entry_l * const data); #endif /* ALGOS_CACHE_H_INCLUDED */ -- cgit v1.2.3