From 6bf215215e1ebaa9613b51500031e6963c12d33b Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Mon, 31 Aug 2009 12:35:14 +0200 Subject: Added a few commands to built-in shell, and made a few scrshots. --- Source/Kernel/DeviceManager/Dev.ns.cpp | 2 +- Source/Kernel/DeviceManager/Dev.ns.h | 2 +- Source/Kernel/DeviceManager/Kbd.ns.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Kernel/DeviceManager') diff --git a/Source/Kernel/DeviceManager/Dev.ns.cpp b/Source/Kernel/DeviceManager/Dev.ns.cpp index 9556c6c..b2f8a70 100644 --- a/Source/Kernel/DeviceManager/Dev.ns.cpp +++ b/Source/Kernel/DeviceManager/Dev.ns.cpp @@ -34,7 +34,7 @@ bool requestIRQ(Device* dev, int irq) { } } -Vector findDevice(String _class) { +Vector findDevices(String _class) { if (_class.empty()) return devices; Vector ret; for (u32int i = 0; i < devices.size(); i++) { diff --git a/Source/Kernel/DeviceManager/Dev.ns.h b/Source/Kernel/DeviceManager/Dev.ns.h index c54abca..389fe3e 100644 --- a/Source/Kernel/DeviceManager/Dev.ns.h +++ b/Source/Kernel/DeviceManager/Dev.ns.h @@ -12,7 +12,7 @@ namespace Dev { bool requestIRQ(Device* dev, int irq); - Vector findDevice(String _class = ""); + Vector findDevices(String _class = ""); } #endif diff --git a/Source/Kernel/DeviceManager/Kbd.ns.cpp b/Source/Kernel/DeviceManager/Kbd.ns.cpp index 1743e0c..256037b 100644 --- a/Source/Kernel/DeviceManager/Kbd.ns.cpp +++ b/Source/Kernel/DeviceManager/Kbd.ns.cpp @@ -66,7 +66,7 @@ void setKeymap(wchar* kmNormal, wchar* kmShift, wchar* kmAltgr, wchar* kmShiftAl } void updateLeds() { - Vector kbds = Dev::findDevice("keyboard"); + Vector kbds = Dev::findDevices("keyboard"); for (u32int i = 0; i < kbds.size(); i++) { ((Keyboard*)(kbds[i]))->updateLeds(kbdstatus); } -- cgit v1.2.3