/* ------------------------------------------- Copyright ZKA Technologies. ------------------------------------------- */ /*** Dtor and ctors. */ namespace Kernel { NetworkDevice::NetworkDevice(void (*out)(NetworkDeviceCommand), void (*in)(NetworkDeviceCommand), void (*on_cleanup)(void)) : DeviceInterface(out, in), fCleanup(on_cleanup) { kcout << "newoskrnl: NetworkDevice initialized.\r"; MUST_PASS(out && in && on_cleanup); } NetworkDevice::~NetworkDevice() { MUST_PASS(fCleanup); kcout << "newoskrnl: NetworkDevice cleanup.\r"; if (fCleanup) fCleanup(); } } // namespace Kernel