summaryrefslogtreecommitdiff
path: root/src/network/networkd-netdev-bond.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-netdev-bond.h')
-rw-r--r--src/network/networkd-netdev-bond.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/network/networkd-netdev-bond.h b/src/network/networkd-netdev-bond.h
index 03ef08167c..09731b73e2 100644
--- a/src/network/networkd-netdev-bond.h
+++ b/src/network/networkd-netdev-bond.h
@@ -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_;