diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-03-04 09:54:48 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-09-21 13:27:36 +0200 |
commit | ae65d7dbe3fec6f6c0d10915f415675df5ed1967 (patch) | |
tree | e6a193c8b43f81346ff94a116ddd40af67b29d06 /src/network/networkd-manager-bus.c | |
parent | dhcp: introduce sd_dhcp_client_send_renew() (diff) | |
download | systemd-ae65d7dbe3fec6f6c0d10915f415675df5ed1967.tar.xz systemd-ae65d7dbe3fec6f6c0d10915f415675df5ed1967.zip |
network: introduce new bus method Renew() and RenewLink()
Diffstat (limited to 'src/network/networkd-manager-bus.c')
-rw-r--r-- | src/network/networkd-manager-bus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/networkd-manager-bus.c b/src/network/networkd-manager-bus.c index 37b04ce556..7484fcfa12 100644 --- a/src/network/networkd-manager-bus.c +++ b/src/network/networkd-manager-bus.c @@ -183,6 +183,10 @@ static int bus_method_revert_link_dns(sd_bus_message *message, void *userdata, s return call_link_method(userdata, message, bus_link_method_revert_dns, error); } +static int bus_method_renew_link(sd_bus_message *message, void *userdata, sd_bus_error *error) { + return call_link_method(userdata, message, bus_link_method_renew, error); +} + const sd_bus_vtable manager_vtable[] = { SD_BUS_VTABLE_START(0), @@ -204,6 +208,7 @@ const sd_bus_vtable manager_vtable[] = { SD_BUS_METHOD("SetLinkDNSSECNegativeTrustAnchors", "ias", NULL, bus_method_set_link_dnssec_negative_trust_anchors, SD_BUS_VTABLE_UNPRIVILEGED), SD_BUS_METHOD("RevertLinkNTP", "i", NULL, bus_method_revert_link_ntp, SD_BUS_VTABLE_UNPRIVILEGED), SD_BUS_METHOD("RevertLinkDNS", "i", NULL, bus_method_revert_link_dns, SD_BUS_VTABLE_UNPRIVILEGED), + SD_BUS_METHOD("RenewLink", "i", NULL, bus_method_renew_link, SD_BUS_VTABLE_UNPRIVILEGED), SD_BUS_VTABLE_END }; |