NeKernel dev
Loading...
Searching...
No Matches
PowerFactory.h
Go to the documentation of this file.
1/* ========================================
2
3 Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
4
5======================================== */
6
7#pragma once
8
10#include <NeKit/Config.h>
11#include <NeKit/ErrorOr.h>
12#include <NeKit/Ref.h>
13#include <modules/ACPI/ACPI.h>
14
15#define NE_POWER_FACTORY : public PowerFactory
16
17namespace Kernel {
19 public:
20 explicit PowerFactory() = default;
21 virtual ~PowerFactory() = default;
22
24 PowerFactory(const PowerFactory&) = default;
25
26 public:
27 virtual Bool Shutdown() { return NO; } // shutdown
28 virtual Void Reboot() {} // soft-reboot
29};
30} // namespace Kernel
#define NO
virtual Bool Shutdown()
Definition PowerFactory.h:27
PowerFactory & operator=(const PowerFactory &)=default
virtual ~PowerFactory()=default
PowerFactory(const PowerFactory &)=default
virtual Void Reboot()
Definition PowerFactory.h:28
UPS inline definitions.
Definition Device.h:12
void Void
Definition Config.h:87
bool Bool
Definition Config.h:50