diff options
Diffstat (limited to 'DDK/KernelDev.c')
| -rw-r--r-- | DDK/KernelDev.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/DDK/KernelDev.c b/DDK/KernelDev.c index 6a6aac99..ff67fbe9 100644 --- a/DDK/KernelDev.c +++ b/DDK/KernelDev.c @@ -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. |
