diff options
Diffstat (limited to 'Private/KernelKit/PEFCodeManager.hxx')
| -rw-r--r-- | Private/KernelKit/PEFCodeManager.hxx | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/Private/KernelKit/PEFCodeManager.hxx b/Private/KernelKit/PEFCodeManager.hxx deleted file mode 100644 index 1b8b7847..00000000 --- a/Private/KernelKit/PEFCodeManager.hxx +++ /dev/null @@ -1,60 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#ifndef _INC_CODE_MANAGER_PEF_ -#define _INC_CODE_MANAGER_PEF_ - -#include <KernelKit/PEF.hpp> -#include <NewKit/ErrorOr.hpp> -#include <NewKit/String.hpp> - -#define kPefApplicationMime "application/x-newos-exec" - -namespace NewOS -{ - /// - /// \name PEFLoader - /// \brief PEF loader class. - /// - class PEFLoader : public LoaderInterface - { - private: - explicit PEFLoader() = delete; - - public: - explicit PEFLoader(const VoidPtr blob); - explicit PEFLoader(const Char* path); - ~PEFLoader() override; - - public: - NEWOS_COPY_DEFAULT(PEFLoader); - - public: - const char* Path() override; - const char* FormatAsString() override; - const char* MIME() override; - - public: - ErrorOr<VoidPtr> FindStart() override; - VoidPtr FindSymbol(const char* name, Int32 kind) override; - - public: - bool IsLoaded() noexcept; - - private: - Ref<StringView> fPath; - VoidPtr fCachedBlob; - bool fFatBinary; - bool fBad; - }; - - namespace Utils - { - bool execute_from_image(PEFLoader& exec, const Int32& procKind) noexcept; - } // namespace Utils -} // namespace NewOS - -#endif // ifndef _INC_CODE_MANAGER_PEF_ |
