summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-manager-bus.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-09 22:22:25 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-06-16 16:17:28 +0200
commit7f3c07ada6fce33e8cac141da40f2f5bd5ff2170 (patch)
tree948ed5298974f4a9707bbedf2d4123dd3b813d14 /src/network/networkd-manager-bus.c
parentnetwork: expose carrier and address states over dbus (diff)
downloadsystemd-7f3c07ada6fce33e8cac141da40f2f5bd5ff2170.tar.xz
systemd-7f3c07ada6fce33e8cac141da40f2f5bd5ff2170.zip
network: also introduce two new manager states
Diffstat (limited to 'src/network/networkd-manager-bus.c')
-rw-r--r--src/network/networkd-manager-bus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/networkd-manager-bus.c b/src/network/networkd-manager-bus.c
index e339c9ce8f..622bfa01d2 100644
--- a/src/network/networkd-manager-bus.c
+++ b/src/network/networkd-manager-bus.c
@@ -2,15 +2,16 @@
#include "alloc-util.h"
#include "bus-util.h"
+#include "networkd-link-bus.h"
#include "networkd-manager.h"
#include "strv.h"
-static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_operational_state, link_operstate, LinkOperationalState);
-
const sd_bus_vtable manager_vtable[] = {
SD_BUS_VTABLE_START(0),
SD_BUS_PROPERTY("OperationalState", "s", property_get_operational_state, offsetof(Manager, operational_state), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
+ SD_BUS_PROPERTY("CarrierState", "s", property_get_carrier_state, offsetof(Manager, carrier_state), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
+ SD_BUS_PROPERTY("AddressState", "s", property_get_address_state, offsetof(Manager, address_state), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
SD_BUS_VTABLE_END
};