summaryrefslogtreecommitdiff
path: root/src/systemd/sd-network.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-06-20 13:36:30 +0200
committerGitHub <noreply@github.com>2019-06-20 13:36:30 +0200
commit762267cdc117895dd2b50657ebd6ea085a1aff8a (patch)
treecbd71c950ef890af675adc266f6b2e3ed7cd80d2 /src/systemd/sd-network.h
parent64ef83139cf84a700b95e8150a458b0bb9f720de (diff)
parent1a65093774862728d1eed1411d692101581c0db8 (diff)
downloadsystemd-762267cdc117895dd2b50657ebd6ea085a1aff8a.tar.gz
Merge pull request #12762 from yuwata/network-introduce-carrier-and-network-state-12752
network: introduce carrier and address state to fix network_is_online()
Diffstat (limited to 'src/systemd/sd-network.h')
-rw-r--r--src/systemd/sd-network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h
index 9ab4426b8b..c78f7c86bb 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: