diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-20 18:24:58 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-20 18:25:02 +0100 |
| commit | f48c5b2cda43241919d3ea1b263bef01e014c537 (patch) | |
| tree | 5bf74621fcff0a98163b3908d35cef2a6339bfb7 /Private/StorageKit | |
| parent | 4ba02280f19b8a2beb1ad8445be7df6b7f9e1805 (diff) | |
Kernel: See below.
- Fix: Kernel page alloc. Inside HalPageAlloc.cpp.
- Made NewFSJournalRunner fields private.
- Rework StorageKit for current ticket 14.
- :boom: Breaking changes to virtual memory api.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/StorageKit')
| -rw-r--r-- | Private/StorageKit/StorageCore.inl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Private/StorageKit/StorageCore.inl b/Private/StorageKit/StorageCore.inl index 2a621ac5..3288b4a2 100644 --- a/Private/StorageKit/StorageCore.inl +++ b/Private/StorageKit/StorageCore.inl @@ -16,25 +16,25 @@ namespace HCore { typedef Char* SKStr; ///! @brief Storage context, reads and write file according to the descriptor -///! layout. -class StorageContext { +///layout. +class StorageInterface { public: - explicit StorageContext() = default; - ~StorageContext() = default; + explicit StorageInterface() = default; + virtual ~StorageInterface() = default; - StorageContext& operator=(const StorageContext&) = default; - StorageContext(const StorageContext&) = default; + StorageInterface& operator=(const StorageInterface&) = default; + StorageInterface(const StorageInterface&) = default; public: - bool Write(VoidPtr fileDescriptor, SizeT sizeFileDescriptor); - struct PacketDescriptor final { VoidPtr fFilePtr; SizeT fFilePtrSz; + Lba fBase; + UInt32 fDriveId; }; - PacketDescriptor* Read(const SKStr name); - Int32 Write(PacketDescriptor* packet, const SKStr name); + virtual PacketDescriptor* Read(const SKStr name) = 0; + virtual Int32 Write(PacketDescriptor* packet, const SKStr name) = 0; }; } // namespace HCore |
