summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/NetworkKit/NetworkDevice.inl
diff options
context:
space:
mode:
Diffstat (limited to 'dev/kernel/NetworkKit/NetworkDevice.inl')
-rw-r--r--dev/kernel/NetworkKit/NetworkDevice.inl17
1 files changed, 10 insertions, 7 deletions
diff --git a/dev/kernel/NetworkKit/NetworkDevice.inl b/dev/kernel/NetworkKit/NetworkDevice.inl
index 797b8adc..84ec9edc 100644
--- a/dev/kernel/NetworkKit/NetworkDevice.inl
+++ b/dev/kernel/NetworkKit/NetworkDevice.inl
@@ -8,20 +8,23 @@
Dtor and ctors.
*/
+#ifndef __INC_NETWORK_DEVICE_H__
+#include <NetworkKit/NetworkDevice.h>
+#endif // __INC_NETWORK_DEVICE_H__
+
namespace Kernel {
-NetworkDevice::NetworkDevice(void (*out)(IDeviceObject<NetworkDeviceCommand>*,
- NetworkDeviceCommand),
- void (*in)(IDeviceObject<NetworkDeviceCommand>*, NetworkDeviceCommand),
- void (*on_cleanup)(void))
+inline NetworkDevice::NetworkDevice(void (*out)(IDeviceObject<NetworkDeviceCommand>*,
+ NetworkDeviceCommand),
+ void (*in)(IDeviceObject<NetworkDeviceCommand>*,
+ NetworkDeviceCommand),
+ void (*on_cleanup)(void))
: IDeviceObject<NetworkDeviceCommand>(out, in), fCleanup(on_cleanup) {
kout << "NetworkDevice initialized.\r";
MUST_PASS(out && in && on_cleanup);
}
-NetworkDevice::~NetworkDevice() {
- MUST_PASS(fCleanup);
-
+inline NetworkDevice::~NetworkDevice() {
kout << "NetworkDevice cleanup.\r";
if (fCleanup) fCleanup();