diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-03 10:07:06 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-03 10:07:06 +0100 |
| commit | bb83659cf509f659cf1dd2e4ad239a32ad9ce119 (patch) | |
| tree | 9ed0cd541fd4ad7738ea3b3a5c108f9f6e32cadc /Private/NewBoot/BootKit/BootKit.hxx | |
| parent | 275c162c7c270499408ee4cbdd8f24b6d0240117 (diff) | |
WiP: See below.
- GetDevicePathSize
- IsDevicePathValid
- DuplicateDevicePath
- Fix kernel build on MinGW-gcc.
- Will also work on kernel disk bootstrap drivers (ATA, NVME).
- Add compile_flags.txt for drivers to lint correctly.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/BootKit/BootKit.hxx')
| -rw-r--r-- | Private/NewBoot/BootKit/BootKit.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index 50b14928..0cbddfab 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -56,15 +56,15 @@ HCore::SizeT BSetMem(CharacterType *src, const CharacterType byte, const HCore::SizeT len); /** - * @brief BootKit File Reader class + * @brief BootKit Image Reader class * Reads using the UEFI Simple File protocol. */ -class BFileReader final { +class BImageReader final { public: - explicit BFileReader(const CharacterType *path); - ~BFileReader() = default; + explicit BImageReader(const CharacterType *path); + ~BImageReader() = default; - HCore::VoidPtr ReadAll(SizeT &size); + HCore::VoidPtr Fetch(SizeT &size); enum { kOperationOkay, @@ -78,8 +78,8 @@ class BFileReader final { Int32 &Error() { return mErrorCode; } public: - BFileReader &operator=(const BFileReader &) = default; - BFileReader(const BFileReader &) = default; + BImageReader &operator=(const BImageReader &) = default; + BImageReader(const BImageReader &) = default; private: Int32 mErrorCode{kOperationOkay}; |
