From 8719b4570a2d10dd49a0d3a47e24f5c55bdda85e Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 22 Sep 2024 17:46:11 +0200 Subject: :boom: A big refactor on the filesystem structure. Signed-off-by: Amlal --- dev/zka/KernelKit/LoaderInterface.hxx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dev/zka/KernelKit/LoaderInterface.hxx (limited to 'dev/zka/KernelKit/LoaderInterface.hxx') diff --git a/dev/zka/KernelKit/LoaderInterface.hxx b/dev/zka/KernelKit/LoaderInterface.hxx new file mode 100644 index 00000000..ab251bec --- /dev/null +++ b/dev/zka/KernelKit/LoaderInterface.hxx @@ -0,0 +1,33 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + +------------------------------------------- */ + +#pragma once + +#include +#include +#include +#include + +namespace Kernel +{ + /// @brief This interface is used to make loader contracts (MSCOFF, PEF). + /// @author @Amlal-El-Mahrouss + class LoaderInterface + { + public: + explicit LoaderInterface() = default; + virtual ~LoaderInterface() = default; + + ZKA_COPY_DEFAULT(LoaderInterface); + + public: + virtual _Output const Char* AsString() = 0; + virtual _Output const Char* MIME() = 0; + virtual _Output const Char* Path() = 0; + virtual _Output ErrorOr FindStart() = 0; + virtual _Output VoidPtr FindSymbol(_Input const Char* name, _Input Int32 kind) = 0; + }; +} // namespace Kernel -- cgit v1.2.3