diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-27 19:01:53 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-27 19:01:53 +0200 |
| commit | bdc831c1df0dd2af95f09fd1b86b4472c40d12b7 (patch) | |
| tree | e405f725c784ddf2ee7d2ef5f34f85705339ca41 /dev/kernel/KernelKit/IDylibObject.h | |
| parent | cba3d0b854a1a9fbb0b0c82efb858fa9086b7284 (diff) | |
feat: Assign ThreadID to APIC's ProcessID when initialzing APs.
refactor: Cleanup copyright headers and source code.
feat: Add PrinterNetworkDevice, and DBGNetworkDevice.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/IDylibObject.h')
| -rw-r--r-- | dev/kernel/KernelKit/IDylibObject.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/dev/kernel/KernelKit/IDylibObject.h b/dev/kernel/KernelKit/IDylibObject.h index da6c3a7a..b673766c 100644 --- a/dev/kernel/KernelKit/IDylibObject.h +++ b/dev/kernel/KernelKit/IDylibObject.h @@ -15,26 +15,29 @@ #define NE_DYLIB_OBJECT : public IDylibObject namespace Kernel { +class IDylibObject; + /// @brief Dylib class object. A handle to a shared library. class IDylibObject { public: explicit IDylibObject() = default; virtual ~IDylibObject() = default; - struct DLL_TRAITS final { + struct DylibTraits final { VoidPtr ImageObject{nullptr}; VoidPtr ImageEntrypointOffset{nullptr}; - Bool IsValid() { return ImageObject && ImageEntrypointOffset; } + VoidPtr Image() const { return ImageObject; } + Bool IsValid() const { return ImageObject && ImageEntrypointOffset; } }; NE_COPY_DEFAULT(IDylibObject) - virtual DLL_TRAITS** GetAddressOf() = 0; - virtual DLL_TRAITS* Get() = 0; + virtual DylibTraits** GetAddressOf() = 0; + virtual DylibTraits* Get() = 0; - virtual Void Mount(DLL_TRAITS* to_mount) = 0; - virtual Void Unmount() = 0; + virtual Void Mount(DylibTraits* to_mount) = 0; + virtual Void Unmount() = 0; }; /// @brief Pure implementation, missing method/function handler. |
