summaryrefslogtreecommitdiffstats
path: root/src/stream.h
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2021-02-25 17:51:54 +0200
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2021-02-25 17:51:54 +0200
commit984e9216da19dead3fe2c4669c2163c82687dbf5 (patch)
treed2d5b84f7440a3b5507a9c1fdec8c6b1b07d3a36 /src/stream.h
parent99c8e4b341d886595fedf0a7c03dfd95b16c01ad (diff)
downloadalgos-ld1-984e9216da19dead3fe2c4669c2163c82687dbf5.tar.gz
algos-ld1-984e9216da19dead3fe2c4669c2163c82687dbf5.tar.bz2
algos-ld1-984e9216da19dead3fe2c4669c2163c82687dbf5.zip
move readfile implementation to cache.
Reading and entire file in is only done for caching, uncached streams will never do that, so it makes sense to move it from stream function collection to cache functions, making it static along the way. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/stream.h')
-rw-r--r--src/stream.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stream.h b/src/stream.h
index 7a429a4..d208bdb 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
-/* Copyright (C) 2020 Gediminas Jakutis */
+/* Copyright (C) 2020-2021 Gediminas Jakutis */
#ifndef ALGOS_IO_H_INCLUDED
#define ALGOS_IO_H_INCLUDED
@@ -9,7 +9,6 @@
int stream_open(struct stream * const in);
int stream_close(struct stream * const in);
-int stream_readfile(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);