summaryrefslogtreecommitdiffhomepage
path: root/Private/NetworkKit/NetworkDevice.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-08 12:32:41 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-08 12:32:41 +0200
commit09dd11ddf800898c00ecb04a65fb5cd10fb481fa (patch)
treeeda0b4e23d6a71da7de3a78f0bb76ec3201dd2f9 /Private/NetworkKit/NetworkDevice.hpp
parentca83108fd138cc0398f900e6a6c0a53ad51aee31 (diff)
MHR-23: :boom: changes, reworked project tree.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NetworkKit/NetworkDevice.hpp')
-rw-r--r--Private/NetworkKit/NetworkDevice.hpp65
1 files changed, 0 insertions, 65 deletions
diff --git a/Private/NetworkKit/NetworkDevice.hpp b/Private/NetworkKit/NetworkDevice.hpp
deleted file mode 100644
index c51de978..00000000
--- a/Private/NetworkKit/NetworkDevice.hpp
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -------------------------------------------
-
- Copyright Mahrouss Logic
-
-------------------------------------------- */
-
-#ifndef __NETWORK_DEVICE__
-#define __NETWORK_DEVICE__
-
-#include <KernelKit/DeviceManager.hpp>
-#include <NetworkKit/IP.hpp>
-
-namespace NewOS
-{
- struct NetworkDeviceCommand;
- class NetworkDevice;
-
- /**
-* \brief Network device interface, establishes a connection to the NIC.
-*/
- class NetworkDevice final : public DeviceInterface<NetworkDeviceCommand>
- {
- public:
- NetworkDevice(void (*out)(NetworkDeviceCommand),
- void (*in)(NetworkDeviceCommand),
- void (*onCleanup)(void) = nullptr);
-
- ~NetworkDevice() override;
-
- public:
- NetworkDevice& operator=(const NetworkDevice&) = default;
- NetworkDevice(const NetworkDevice&) = default;
-
- public:
- const char* Name() const override;
-
- private:
- void (*fCleanup)(void);
- };
-
- struct PACKED NetworkDeviceCommand final
- {
- UInt32 CommandName;
- UInt32 CommandType;
- UInt32 CommandFlags;
- VoidPtr CommandBuffer;
- SizeT CommandSizeBuffer;
- };
-
- /// @brief TCP device.
- using TCPNetworkDevice = NetworkDevice;
-
- /// @brief UDP device.
- using UDPNetworkDevice = NetworkDevice;
-
- /// @brief PPP device.
- using PPPNetworkDevice = NetworkDevice;
-
- /// @brief HPC device.
- using HPCNetworkDevice = NetworkDevice;
-} // namespace NewOS
-
-#include <NetworkKit/NetworkDevice.inl>
-
-#endif // !__NETWORK_DEVICE__