diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-05-19 19:13:03 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-05-19 19:13:03 +0200 |
| commit | aad2c069563a3e7318b575216db6deb313445f2c (patch) | |
| tree | 2ba42b767473bebdca9d2538d120f0b4d82194e4 /Kernel/NetworkKit/NetworkDevice.inl | |
| parent | c0428f8e5feba9573e572a1a1b3c66cfa1f29108 (diff) | |
MHR-23: Fix run_format.sh, inl files needs to be formated as well.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Kernel/NetworkKit/NetworkDevice.inl')
| -rw-r--r-- | Kernel/NetworkKit/NetworkDevice.inl | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/Kernel/NetworkKit/NetworkDevice.inl b/Kernel/NetworkKit/NetworkDevice.inl index 0b927d0e..614ccadf 100644 --- a/Kernel/NetworkKit/NetworkDevice.inl +++ b/Kernel/NetworkKit/NetworkDevice.inl @@ -1,27 +1,31 @@ /* ------------------------------------------- - Copyright SoftwareLabs + Copyright SoftwareLabs ------------------------------------------- */ /*** - Dtor and ctors. + Dtor and ctors. */ -namespace NewOS { -NetworkDevice::NetworkDevice(void (*out)(NetworkDeviceCommand), - void (*in)(NetworkDeviceCommand), - void (*on_cleanup)(void)) - : DeviceInterface<NetworkDeviceCommand>(out, in), fCleanup(on_cleanup) { - kcout << "NK: NetworkDevice initialize.\r"; +namespace NewOS +{ + NetworkDevice::NetworkDevice(void (*out)(NetworkDeviceCommand), + void (*in)(NetworkDeviceCommand), + void (*on_cleanup)(void)) + : DeviceInterface<NetworkDeviceCommand>(out, in), fCleanup(on_cleanup) + { + kcout << "New OS: NetworkDevice initialized.\r"; - MUST_PASS(out && in && on_cleanup); -} + MUST_PASS(out && in && on_cleanup); + } -NetworkDevice::~NetworkDevice() { - MUST_PASS(fCleanup); + NetworkDevice::~NetworkDevice() + { + MUST_PASS(fCleanup); - kcout << "NK: NetworkDevice cleanup.\r"; - if (fCleanup) fCleanup(); -} + kcout << "New OS: NetworkDevice cleanup.\r"; + if (fCleanup) + fCleanup(); + } } // namespace NewOS |
