diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-10 04:56:03 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-16 23:17:28 +0900 |
commit | ac999bf07dcc9ed628115eacfcc7d94f582b5ad7 (patch) | |
tree | 9d592b26df340a587c7c75f6fc8042b35902eab6 /src/systemd | |
parent | 3cf7a9807e7165af1e76e5e04cad70e49883ec24 (diff) | |
download | systemd-ac999bf07dcc9ed628115eacfcc7d94f582b5ad7.tar.gz |
sd-network: introduce functions for new link and manager states
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/sd-network.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h index 166c30185a..478e170588 100644 --- a/src/systemd/sd-network.h +++ b/src/systemd/sd-network.h @@ -49,6 +49,8 @@ _SD_BEGIN_DECLARATIONS; * -ENODATA: networkd is not aware of any links */ int sd_network_get_operational_state(char **state); +int sd_network_get_carrier_state(char **state); +int sd_network_get_address_state(char **state); /* Get DNS entries for all links. These are string representations of * IP addresses */ @@ -90,6 +92,8 @@ int sd_network_link_get_setup_state(int ifindex, char **state); */ int sd_network_link_get_operational_state(int ifindex, char **state); int sd_network_link_get_required_operstate_for_online(int ifindex, char **state); +int sd_network_link_get_carrier_state(int ifindex, char **state); +int sd_network_link_get_address_state(int ifindex, char **state); /* Indicates whether the network is relevant to being online. * Possible return codes: |