diff options
Diffstat (limited to 'dev/Kernel/src/Storage/AHCIDeviceInterface.cc')
| -rw-r--r-- | dev/Kernel/src/Storage/AHCIDeviceInterface.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dev/Kernel/src/Storage/AHCIDeviceInterface.cc b/dev/Kernel/src/Storage/AHCIDeviceInterface.cc index a6f36731..ff348f57 100644 --- a/dev/Kernel/src/Storage/AHCIDeviceInterface.cc +++ b/dev/Kernel/src/Storage/AHCIDeviceInterface.cc @@ -12,10 +12,10 @@ using namespace NeOS; /// @param Out Drive output /// @param In Drive input /// @param Cleanup Drive cleanup. -AHCIDeviceInterface::AHCIDeviceInterface(void (*Out)(MountpointInterface* outpacket), - void (*In)(MountpointInterface* inpacket), - void (*Cleanup)(void)) - : IDeviceObject(Out, In), fCleanup(Cleanup) +AHCIDeviceInterface::AHCIDeviceInterface(void (*out)(IDeviceObject* self, MountpointInterface* outpacket), + void (*in)(IDeviceObject* self, MountpointInterface* inpacket), + void (*cleanup)(void)) + : IDeviceObject(out, in), fCleanup(cleanup) { } @@ -23,6 +23,7 @@ AHCIDeviceInterface::AHCIDeviceInterface(void (*Out)(MountpointInterface* outpac AHCIDeviceInterface::~AHCIDeviceInterface() { MUST_PASS(fCleanup); + if (fCleanup) fCleanup(); } @@ -31,5 +32,5 @@ AHCIDeviceInterface::~AHCIDeviceInterface() /// @return it's name as a string. const Char* AHCIDeviceInterface::Name() const { - return "AHCIDeviceInterface"; + return "/dev/sda{}"; } |
