diff options
Diffstat (limited to 'DDK/KernelDev.c')
| -rw-r--r-- | DDK/KernelDev.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/DDK/KernelDev.c b/DDK/KernelDev.c index 6a6aac99..07a64bdd 100644 --- a/DDK/KernelDev.c +++ b/DDK/KernelDev.c @@ -1,8 +1,8 @@ /* ------------------------------------------- - Copyright Zeta Electronics Corporation + Copyright ZKA Technologies - Purpose: Kernel Text I/O. + Purpose: DDK Text I/O. ------------------------------------------- */ @@ -10,21 +10,12 @@ #include <DDK/KernelString.h> /// @brief Open a new binary device from path. -DK_EXTERN kernelDeviceRef kernelOpenBinaryDevice(const char* devicePath) +DK_EXTERN kernelDeviceRef kernelOpenDevice(const char* devicePath) { if (!devicePath) - return NIL; + return nil; - return kernelCall("OpenBinaryDevice", 1, devicePath, kernelStringLength(devicePath)); -} - -/// @brief Open a new character device from path. -DK_EXTERN kernelDeviceRef kernelOpenCharDevice(const char* devicePath) -{ - if (!devicePath) - return NIL; - - return kernelCall("OpenCharDevice", 1, devicePath, kernelStringLength(devicePath)); + return kernelCall("OpenDevice", 1, (void*)devicePath, kernelStringLength(devicePath)); } /// @brief Close any device. |
