From bd1598a2b97277e527240f721df14911602cbf11 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 7 Jan 2026 09:51:21 +0100 Subject: chore: kernel: Internal API fixes and improvements. Signed-off-by: Amlal El Mahrouss --- src/kernel/KernelKit/DeviceMgr.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/kernel/KernelKit/DeviceMgr.h') diff --git a/src/kernel/KernelKit/DeviceMgr.h b/src/kernel/KernelKit/DeviceMgr.h index 12f24970..bea5908c 100644 --- a/src/kernel/KernelKit/DeviceMgr.h +++ b/src/kernel/KernelKit/DeviceMgr.h @@ -19,6 +19,7 @@ // Last Rev: Wed, May 27, 2025 6:22 PM namespace Kernel { + template class IDevice; @@ -33,8 +34,7 @@ class IDevice { public: IDevice() = default; - explicit IDevice(void (*Out)(IDevice*, T), void (*In)(IDevice*, T)) : fOut(Out), fIn(In) {} - + IDevice(void (*Out)(IDevice*, T), void (*In)(IDevice*, T)) : fOut(Out), fIn(In) {} virtual ~IDevice() = default; public: @@ -43,8 +43,7 @@ class IDevice { using ConstType = const T&; using TypePtr = T*; - IDevice& operator=(const IDevice&) = default; - IDevice(const IDevice&) = default; + NE_COPY_DEFAULT(IDevice) public: virtual IDevice& operator<<(T Data) { @@ -118,8 +117,11 @@ enum { kDeviceTypePCI, kDeviceTypeVGA, kDeviceTypeGPU, - kDeviceTypeCount, + kDeviceTypeRandom, + kDeviceTypeIPC, + kDeviceTypeCount = kDeviceTypeIPC - kDeviceTypeIDE + 1, }; + } // namespace Kernel #endif -- cgit v1.2.3