diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-28 01:40:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-28 01:40:34 +0300 |
commit | 3fba07dba53ae41d915ba4c3304e31f0b44893fa (patch) | |
tree | b35b7c00e3513146a89f9f0dcf2fba0de3a459b2 | |
parent | d146dc4e25ad62f925fb0870089b63f5d51e98da (diff) | |
download | plus-3fba07dba53ae41d915ba4c3304e31f0b44893fa.tar.gz plus-3fba07dba53ae41d915ba4c3304e31f0b44893fa.tar.bz2 plus-3fba07dba53ae41d915ba4c3304e31f0b44893fa.tar.xz plus-3fba07dba53ae41d915ba4c3304e31f0b44893fa.zip |
Add constructor and final into virtfsfuncs.
-rw-r--r-- | src/fs/virtfsfuncs.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/fs/virtfsfuncs.h b/src/fs/virtfsfuncs.h index 1b17ac5db..8e0629dcf 100644 --- a/src/fs/virtfsfuncs.h +++ b/src/fs/virtfsfuncs.h @@ -29,8 +29,19 @@ struct VirtFile; -struct VirtFsFuncs +struct VirtFsFuncs final { + VirtFsFuncs() : + close(nullptr), + read(nullptr), + write(nullptr), + fileLength(nullptr), + tell(nullptr), + seek(nullptr), + eof(nullptr) + { + } + int (*close) (VirtFile *restrict const file); int64_t (*read) (VirtFile *restrict const file, void *restrict const buffer, |