diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-26 19:17:00 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-26 19:17:00 +0100 |
| commit | dd192787a70a973f2474720aea49af3f6ddabb7a (patch) | |
| tree | 6405e001c3b8eaf65e2b964d9917de0767914c0e /KernelKit/Device.hpp | |
| parent | 5b972c4818f5bbcff5537c1fc3866f548647a3ef (diff) | |
h-core: Breaking kernel changes, IDevice becomes DeviceInterface, the
UPT is Read Only by default.
DebugManager allocates space for users by default (for a debug message)
Update PEF enum kPefArch.
Move Seeker into the /Services directory.
Complete merge of SupportKit to KernelKit.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'KernelKit/Device.hpp')
| -rw-r--r-- | KernelKit/Device.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/KernelKit/Device.hpp b/KernelKit/Device.hpp index e407f4e9..b117cf7f 100644 --- a/KernelKit/Device.hpp +++ b/KernelKit/Device.hpp @@ -19,37 +19,37 @@ namespace hCore { template<typename T> - class IDevice; + class DeviceInterface; template<typename T> - class IDevice + class DeviceInterface { public: - IDevice(void (*Out)(T), void (*In)(T)) + explicit DeviceInterface(void (*Out)(T), void (*In)(T)) : m_Out(Out), m_In(In) {} - virtual ~IDevice() = default; + virtual ~DeviceInterface() = default; public: - IDevice &operator=(const IDevice<T> &) = default; - IDevice(const IDevice<T> &) = default; + DeviceInterface &operator=(const DeviceInterface<T> &) = default; + DeviceInterface(const DeviceInterface<T> &) = default; public: - IDevice<T> &operator<<(T Data) + DeviceInterface<T> &operator<<(T Data) { m_Out(Data); return *this; } - IDevice<T> &operator>>(T Data) + DeviceInterface<T> &operator>>(T Data) { m_In(Data); return *this; } - virtual const char *Name() const + virtual const char* Name() const { - return ("IDevice"); + return ("DeviceInterface"); } operator bool() { return m_Out && m_In; } |
