diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-10-16 11:58:48 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-10-16 11:58:48 +0200 |
| commit | d48b2faedce25990b83076cfd71e713b222da25a (patch) | |
| tree | bf3dacfe5979588b371c15e06282c40eb9ba2951 /dev/libDDK/src/ddk_dev.c | |
| parent | faec0dd3a9eda081052753f260133d10b2cdbfe7 (diff) | |
feat: `ne_launch`: cli application - and new framework.
feat: `ddk`: feat: api! breaking api changes - for v0.0.7 NeKernel.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/libDDK/src/ddk_dev.c')
| -rw-r--r-- | dev/libDDK/src/ddk_dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/libDDK/src/ddk_dev.c b/dev/libDDK/src/ddk_dev.c index d20684aa..c0396eb5 100644 --- a/dev/libDDK/src/ddk_dev.c +++ b/dev/libDDK/src/ddk_dev.c @@ -10,15 +10,15 @@ #include <DriverKit/str.h> /// @brief Open a new binary device from path. -DDK_EXTERN DDK_DEVICE_PTR open(const char* devicePath) { +DDK_EXTERN DDK_DEVICE_PTR kopen_dev(const char* devicePath) { if (nil == devicePath) return nil; - return ke_call_dispatch("dk_open_dev", 1, (void*) devicePath, kstrlen(devicePath)); + return (DDK_DEVICE_PTR)ke_call_dispatch("dk_open_dev", 1, (void*) devicePath, kstrlen(devicePath)); } /// @brief Close any device. /// @param device valid device. -DDK_EXTERN BOOL close(DDK_DEVICE_PTR device) { +DDK_EXTERN BOOL kclose_dev(DDK_DEVICE_PTR device) { if (nil == device) return NO; ke_call_dispatch("dk_close_dev", 1, device, sizeof(DDK_DEVICE)); |
