/* ======================================== Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. ======================================== */ /*** Dtor and ctors. */ #ifndef __INC_NETWORK_DEVICE_H__ #include #endif // __INC_NETWORK_DEVICE_H__ namespace Kernel { inline NetworkDevice::NetworkDevice( void (*out)(IDevice*, NetworkDeviceCommand), void (*in)(IDevice*, NetworkDeviceCommand), void (*on_cleanup)(void)) : IDevice(out, in), fCleanup(on_cleanup) { kout << "NetworkDevice initialized.\r"; MUST_PASS(out && in && on_cleanup); } inline NetworkDevice::~NetworkDevice() { kout << "NetworkDevice cleanup.\r"; if (fCleanup) fCleanup(); } } // namespace Kernel