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/stream.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/stream.h') diff --git a/src/stream.h b/src/stream.h index d208bdb..6288d32 100644 --- a/src/stream.h +++ b/src/stream.h @@ -10,11 +10,11 @@ int stream_open(struct stream * const in); int stream_close(struct stream * const in); -int direct_get_array(struct stream * const restrict in, ssize_t idx, struct entry_l * const data); -int direct_get_list(struct stream * const restrict in, ssize_t idx, struct entry_l * const data); -int direct_put_array(struct stream * const restrict in, ssize_t idx, const struct entry_l * const data); -int direct_put_list(struct stream * const restrict in, ssize_t idx, const struct entry_l * const data); +/* uncached blockmanip */ +int stream_copy_range(struct stream * const restrict src, struct stream * const restrict dest); + +/* misc */ int stream_shallow_copy(struct stream const * const restrict src, struct stream * const dest); #endif /* ALGOS_IO_H_INCLUDED */ -- cgit v1.2.3