From d5f33ac36eff7857083786e9daf076c4101cbd3c Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 5 Mar 2024 16:38:50 +0000 Subject: Kernel: bump. --- Private/NetworkKit/NetworkDevice.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Private/NetworkKit/NetworkDevice.hpp') diff --git a/Private/NetworkKit/NetworkDevice.hpp b/Private/NetworkKit/NetworkDevice.hpp index 94f17bb9..1550afd1 100644 --- a/Private/NetworkKit/NetworkDevice.hpp +++ b/Private/NetworkKit/NetworkDevice.hpp @@ -12,12 +12,16 @@ namespace HCore { struct NetworkDeviceCommand; +class NetworkDevice; +/** +* \brief Network device interface, establishes a connection to the NIC. +*/ class NetworkDevice final : public DeviceInterface { public: NetworkDevice(void (*out)(NetworkDeviceCommand), void (*in)(NetworkDeviceCommand), - void (*on_cleanup)(void) = nullptr); + void (*onCleanup)(void) = nullptr); ~NetworkDevice() override; @@ -26,13 +30,13 @@ class NetworkDevice final : public DeviceInterface { NetworkDevice(const NetworkDevice &) = default; public: - const char *Name() const override { return ("NetworkDevice"); } + const char *Name() const override { return "NetworkDevice"; } private: void (*fCleanup)(void); }; -struct NetworkDeviceCommand { +struct PACKED NetworkDeviceCommand final { UInt32 Command; UInt32 VLan; UInt32 DmaLow; @@ -44,4 +48,6 @@ using UDPNetworkDevice = NetworkDevice; using PPPNetworkDevice = NetworkDevice; } // namespace HCore +#include + #endif // !_INC_NETWORKDEVICE_HPP__ -- cgit v1.2.3