summaryrefslogtreecommitdiffstats
path: root/src/defs.h
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2021-03-10 15:04:13 +0200
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2021-03-10 15:33:58 +0200
commit8788b9b33ec46e3f96170fb35a70a03addbf9671 (patch)
tree44b620061ca427f436e89c7beb80022febde1e58 /src/defs.h
parentd7e2af2582660e3ed4ce824c33a21ffbf9ed4c6f (diff)
downloadalgos-ld1-8788b9b33ec46e3f96170fb35a70a03addbf9671.tar.gz
algos-ld1-8788b9b33ec46e3f96170fb35a70a03addbf9671.tar.bz2
algos-ld1-8788b9b33ec46e3f96170fb35a70a03addbf9671.zip
refactor && improve.
Make code more reusable and generic while preparing to add uncached ops. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/defs.h')
-rw-r--r--src/defs.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/defs.h b/src/defs.h
index 20621ef..522eed4 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -140,10 +140,8 @@ struct stream {
struct entry_l *cnode; /* "current" node */
union cachewrap;
struct settings *settings;
- struct entry_l *(*get)(struct stream * const);
+ struct entry_l *(*get)(struct stream * const, struct entry_l * const);
int (*put)(struct stream * const, struct entry_l const * const);
- int (*split)(struct stream * const, struct stream * const, struct stream * const);
- int (*rewind)(struct stream * restrict const);
int (*copy)(struct stream * restrict const, struct stream * restrict const);
};