summaryrefslogtreecommitdiffhomepage
path: root/KernelKit/Loader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'KernelKit/Loader.hpp')
-rw-r--r--KernelKit/Loader.hpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/KernelKit/Loader.hpp b/KernelKit/Loader.hpp
new file mode 100644
index 00000000..80166189
--- /dev/null
+++ b/KernelKit/Loader.hpp
@@ -0,0 +1,34 @@
+/*
+ * ========================================================
+ *
+ * hCore
+ * Copyright Mahrouss Logic, all rights reserved.
+ *
+ * ========================================================
+ */
+
+#pragma once
+
+#include <NewKit/ErrorOr.hpp>
+#include <NewKit/Defines.hpp>
+#include <CompilerKit/Compiler.hpp>
+
+namespace hCore
+{
+ class Loader
+ {
+ public:
+ Loader() = default;
+ virtual ~Loader() = default;
+
+ HCORE_COPY_DEFAULT(Loader);
+
+ public:
+ virtual const char* Format() = 0;
+ virtual const char* MIME() = 0;
+ virtual const char* Path() = 0;
+ virtual ErrorOr<VoidPtr> LoadStart() = 0;
+ virtual VoidPtr FindSymbol(const char* name, Int32 kind) = 0;
+
+ };
+}