diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-29 17:16:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-29 17:16:27 +0300 |
commit | d9c0d1c3b2800b0c995393426b65a031203ca2f0 (patch) | |
tree | ae5a5bab4a7a2ef5fbb9229fa5ce153f0178d011 /src/fs/virtfs/virtfile.h | |
parent | d1fb04c1d91596706ebf402acfdab24dabad19f4 (diff) | |
download | plus-d9c0d1c3b2800b0c995393426b65a031203ca2f0.tar.gz plus-d9c0d1c3b2800b0c995393426b65a031203ca2f0.tar.bz2 plus-d9c0d1c3b2800b0c995393426b65a031203ca2f0.tar.xz plus-d9c0d1c3b2800b0c995393426b65a031203ca2f0.zip |
Merge virtfileprivate with virtfile.
Because now physfs is gone and nothing to hide from other code.
Diffstat (limited to 'src/fs/virtfs/virtfile.h')
-rw-r--r-- | src/fs/virtfs/virtfile.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/fs/virtfs/virtfile.h b/src/fs/virtfs/virtfile.h index 1cb819a6a..7896c848f 100644 --- a/src/fs/virtfs/virtfile.h +++ b/src/fs/virtfs/virtfile.h @@ -23,19 +23,34 @@ #include "localconsts.h" -struct VirtFilePrivate; +#include "fs/virtfs/fileapi.h" + struct VirtFsFuncs; struct VirtFile final { - explicit VirtFile(const VirtFsFuncs *restrict const funcs0); + VirtFile(const VirtFsFuncs *restrict const funcs0, + const uint8_t *restrict const buf, + const size_t sz); + + VirtFile(const VirtFsFuncs *restrict const funcs0, + FILEHTYPE fd); A_DELETE_COPY(VirtFile) ~VirtFile(); const VirtFsFuncs *funcs; - VirtFilePrivate *mPrivate; + + // zipfs fields + const uint8_t *mBuf; + + // zipfs fields + size_t mPos; + size_t mSize; + + // dirfs fields + FILEHTYPE mFd; }; #endif // UTILS_VIRTFILE_H |