summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-08 17:21:37 +0200
committerTom Gundersen <teg@jklm.no>2014-05-08 17:21:37 +0200
commitbbf7c04821a71fec67eaf0e7a34d17afc5913c13 (patch)
treec713e0a13d98e87c2462947c508b025c25dd827c /src/systemd
parente0e5ce237b11f2d97189cd7725bf339b4b8a78de (diff)
sd-network: expose global operational state
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-network.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h
index 40bd75a23..d0b2ea357 100644
--- a/src/systemd/sd-network.h
+++ b/src/systemd/sd-network.h
@@ -67,6 +67,13 @@ int sd_network_get_link_state(unsigned index, char **state);
*/
int sd_network_get_link_operational_state(unsigned index, char **state);
+/* Get overall opeartional state
+ * Possible states: unknown, dormant, carrier
+ * Possible return codes:
+ * -ENODATA: networkd is not aware of any links
+ */
+int sd_network_get_operational_state(char **state);
+
/* Returns true if link exists and is loopback, and false otherwise */
int sd_network_link_is_loopback(unsigned index);