summaryrefslogtreecommitdiffhomepage
path: root/src/modules/Power
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/Power')
-rw-r--r--src/modules/Power/PowerFactory.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/modules/Power/PowerFactory.h b/src/modules/Power/PowerFactory.h
new file mode 100644
index 00000000..2e349011
--- /dev/null
+++ b/src/modules/Power/PowerFactory.h
@@ -0,0 +1,30 @@
+/* ========================================
+
+ Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
+
+======================================== */
+
+#pragma once
+
+#include <KernelKit/DebugOutput.h>
+#include <NeKit/Defines.h>
+#include <NeKit/ErrorOr.h>
+#include <NeKit/Ref.h>
+#include <modules/ACPI/ACPI.h>
+
+#define NE_POWER_FACTORY : public PowerFactory
+
+namespace Kernel {
+class PowerFactory {
+ public:
+ explicit PowerFactory() = default;
+ virtual ~PowerFactory() = default;
+
+ PowerFactory& operator=(const PowerFactory&) = default;
+ PowerFactory(const PowerFactory&) = default;
+
+ public:
+ virtual Bool Shutdown() { return NO; } // shutdown
+ virtual Void Reboot() {} // soft-reboot
+};
+} // namespace Kernel \ No newline at end of file