diff options
Diffstat (limited to 'Private/NewBoot/BootKit')
| -rw-r--r-- | Private/NewBoot/BootKit/BootKit.hxx | 25 | ||||
| -rw-r--r-- | Private/NewBoot/BootKit/Platform.hxx (renamed from Private/NewBoot/BootKit/Processor.hxx) | 0 | ||||
| -rw-r--r-- | Private/NewBoot/BootKit/compile_flags.txt | 2 |
3 files changed, 21 insertions, 6 deletions
diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index 9c0ec863..e4c14d3a 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -31,16 +31,15 @@ typedef wchar_t CharacterType; /** * @brief BootKit Text Writer class - * Writes to VGA. + * Writes to UEFI StdOut. */ class BTextWriter final { public: - void WriteString(const CharacterType *str); - - void WriteCharacter(CharacterType c); + BTextWriter &WriteString(const CharacterType *str); + BTextWriter &WriteCharacter(CharacterType c); public: - BTextWriter() = default; + explicit BTextWriter() = default; ~BTextWriter() = default; public: @@ -51,9 +50,23 @@ class BTextWriter final { HCore::SizeT BStrLen(const char *ptr); HCore::SizeT BSetMem(char *src, const char byte, const HCore::SizeT len); +/** + * @brief BootKit File Reader class + * Reads using the UEFI Simple File protocol. + */ +class BFileReader final { + public: + explicit BFileReader() = default; + ~BFileReader() = default; + + public: + BFileReader &operator=(const BFileReader &) = default; + BFileReader(const BFileReader &) = default; +}; + /***********************************************************************************/ /// Include other APIs. /***********************************************************************************/ -#include <BootKit/Processor.hxx> +#include <BootKit/Platform.hxx> #include <BootKit/Protocol.hxx> diff --git a/Private/NewBoot/BootKit/Processor.hxx b/Private/NewBoot/BootKit/Platform.hxx index d4143094..d4143094 100644 --- a/Private/NewBoot/BootKit/Processor.hxx +++ b/Private/NewBoot/BootKit/Platform.hxx diff --git a/Private/NewBoot/BootKit/compile_flags.txt b/Private/NewBoot/BootKit/compile_flags.txt new file mode 100644 index 00000000..45e268ea --- /dev/null +++ b/Private/NewBoot/BootKit/compile_flags.txt @@ -0,0 +1,2 @@ +-std=c++20 +-I../ |
