diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-22 08:45:43 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-22 08:45:43 +0100 |
| commit | 34f62ae2dd8c77cee1f0f3680caf407b1be6b350 (patch) | |
| tree | 0985426a5d3baf2ae398a3f27ee4faca5d879f2e /dev/Kernel/KernelKit | |
| parent | 917938db87fee3a905a78c499d2fe1dc2f0b5ca5 (diff) | |
New DeviceMgr, other APIs have been reworked as a result.
AHCI becomes the first module to be available in StorageKit.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/KernelKit')
| -rw-r--r-- | dev/Kernel/KernelKit/DebugOutput.h | 2 | ||||
| -rw-r--r-- | dev/Kernel/KernelKit/DeviceMgr.h | 12 | ||||
| -rw-r--r-- | dev/Kernel/KernelKit/User.h | 1 |
3 files changed, 8 insertions, 7 deletions
diff --git a/dev/Kernel/KernelKit/DebugOutput.h b/dev/Kernel/KernelKit/DebugOutput.h index 498b2b6b..84a2d514 100644 --- a/dev/Kernel/KernelKit/DebugOutput.h +++ b/dev/Kernel/KernelKit/DebugOutput.h @@ -38,7 +38,7 @@ namespace NeOS class TerminalDevice final NE_DEVICE<const Char*> { public: - TerminalDevice(void (*print)(const Char*), void (*gets)(const Char*)) + TerminalDevice(void (*print)(IDeviceObject*, const Char*), void (*gets)(IDeviceObject*, const Char*)) : IDeviceObject<const Char*>(print, gets) { } diff --git a/dev/Kernel/KernelKit/DeviceMgr.h b/dev/Kernel/KernelKit/DeviceMgr.h index 34ca2957..a81a6586 100644 --- a/dev/Kernel/KernelKit/DeviceMgr.h +++ b/dev/Kernel/KernelKit/DeviceMgr.h @@ -40,7 +40,7 @@ namespace NeOS class IDeviceObject { public: - explicit IDeviceObject(void (*Out)(T), void (*In)(T)) + explicit IDeviceObject(void (*Out)(IDeviceObject<T>*, T), void (*In)(IDeviceObject<T>*, T)) : fOut(Out), fIn(In) { } @@ -54,19 +54,19 @@ namespace NeOS public: virtual IDeviceObject<T>& operator<<(T Data) { - fOut(Data); + fOut(this, Data); return *this; } virtual IDeviceObject<T>& operator>>(T Data) { - fIn(Data); + fIn(this, Data); return *this; } virtual const char* Name() const { - return "IDeviceObject"; + return "/dev/null"; } operator bool() @@ -80,8 +80,8 @@ namespace NeOS } protected: - Void (*fOut)(T Data) = {nullptr}; - Void (*fIn)(T Data) = {nullptr}; + Void (*fOut)(IDeviceObject<T>*, T Data) = {nullptr}; + Void (*fIn)(IDeviceObject<T>*, T Data) = {nullptr}; }; /// diff --git a/dev/Kernel/KernelKit/User.h b/dev/Kernel/KernelKit/User.h index 41cf57e2..76493224 100644 --- a/dev/Kernel/KernelKit/User.h +++ b/dev/Kernel/KernelKit/User.h @@ -37,6 +37,7 @@ namespace NeOS }; typedef Char* UserPublicKey; + typedef Char UserPublicKeyType; /// @brief User class. class User final |
