From c68444ff76eff88fbfa63a3ddbd6b9ce72337159 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Sat, 13 Mar 2021 21:26:49 +0200 Subject: complete core featureset with linked list files. Signed-off-by: Gediminas Jakutis --- src/defs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/defs.h') diff --git a/src/defs.h b/src/defs.h index 522eed4..878823f 100644 --- a/src/defs.h +++ b/src/defs.h @@ -86,6 +86,7 @@ union nextoff { struct entry_l *next; void *nextaddr; ptrdiff_t offset; + off_t file_offset; int64_t spacer; /* make sure it is 8-byte-alligned on 32 bit pointer systems */ }; @@ -137,7 +138,8 @@ struct stream { enum streamtype type; char *name; size_t index; - struct entry_l *cnode; /* "current" node */ + struct entry_l *cnode; /* cached access */ + struct entry_l cnode_f; /* file access */ union cachewrap; struct settings *settings; struct entry_l *(*get)(struct stream * const, struct entry_l * const); -- cgit v1.2.3