summaryrefslogtreecommitdiffhomepage
path: root/src/modules/Power/PowerFactory.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 03:02:43 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 03:02:43 +0100
commit83d870e58457a1d335a1d9b9966a6a1887cc297b (patch)
tree72888f88c7728c82f3f6df1f4f70591de15eab36 /src/modules/Power/PowerFactory.h
parentab37adbacf0f33845804c788b39680cd754752a8 (diff)
feat! breaking changes on kernel sources.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/modules/Power/PowerFactory.h')
-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