From bb83659cf509f659cf1dd2e4ad239a32ad9ce119 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 3 Feb 2024 10:07:06 +0100 Subject: 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 --- Private/NewBoot/BootKit/BootKit.hxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Private/NewBoot/BootKit') 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}; -- cgit v1.2.3