chiark / gitweb /
networkd: netdev - split NetDev struct into per-kind structs
[elogind.git] / src / network / networkd-netdev-bond.h
index 03ef08167c1163877c2614a3b60e216ea1f19672..09731b73e297e5523b5cbfc62e4c98c329d08a4f 100644 (file)
@@ -21,9 +21,9 @@
 
 #pragma once
 
-#include "networkd-netdev.h"
+typedef struct Bond Bond;
 
-extern const NetDevVTable bond_vtable;
+#include "networkd-netdev.h"
 
 typedef enum BondMode {
         NETDEV_BOND_MODE_BALANCE_RR,
@@ -37,6 +37,14 @@ typedef enum BondMode {
         _NETDEV_BOND_MODE_INVALID = -1
 } BondMode;
 
+struct Bond {
+        NetDev meta;
+
+        BondMode mode;
+};
+
+extern const NetDevVTable bond_vtable;
+
 const char *bond_mode_to_string(BondMode d) _const_;
 BondMode bond_mode_from_string(const char *d) _pure_;