projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase read/write performances; add some comments.
[bertos.git]
/
bertos
/
io
/
kblock_file.h
diff --git
a/bertos/io/kblock_file.h
b/bertos/io/kblock_file.h
index 8f83f40bdacd78778ab5c4244a2a647aa2f4e04e..77e52756331acf38baacf42c778e44049a5e9784 100644
(file)
--- a/
bertos/io/kblock_file.h
+++ b/
bertos/io/kblock_file.h
@@
-46,7
+46,6
@@
typedef struct KBlockFile
{
KBlock b;
FILE *fp;
{
KBlock b;
FILE *fp;
- uint8_t *pagebuf;
} KBlockFile;
#define KBT_KBLOCKFILE MAKE_ID('K', 'B', 'F', 'L')
} KBlockFile;
#define KBT_KBLOCKFILE MAKE_ID('K', 'B', 'F', 'L')
@@
-58,6
+57,6
@@
INLINE KBlockFile *KBLOCKFILE_CAST(KBlock *b)
return (KBlockFile *)b;
}
return (KBlockFile *)b;
}
-void kblockfile_init(KBlockFile *f, FILE *fp, void *buf, size_t block_size, block_idx_t block_count);
+void kblockfile_init(KBlockFile *f, FILE *fp,
bool hwbuf,
void *buf, size_t block_size, block_idx_t block_count);
#endif /* KBLOCK_FILE_H */
#endif /* KBLOCK_FILE_H */