summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-network/sd-network.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-15 16:02:14 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-15 16:02:14 +0200
commit8612e9365333d35773a08509b1d80a98911acb44 (patch)
tree5708d87c4df1b60fb638fbd0720ef7a5321d8c38 /src/libsystemd/sd-network/sd-network.c
parentd5314fff96221c1b32e4d7c21eba9798dab58764 (diff)
sd-network: add system-wide sd_network_get_domains() API
Diffstat (limited to 'src/libsystemd/sd-network/sd-network.c')
-rw-r--r--src/libsystemd/sd-network/sd-network.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd/sd-network/sd-network.c b/src/libsystemd/sd-network/sd-network.c
index 5d28af0344..3a3f53576f 100644
--- a/src/libsystemd/sd-network/sd-network.c
+++ b/src/libsystemd/sd-network/sd-network.c
@@ -92,6 +92,10 @@ _public_ int sd_network_get_ntp(char ***ret) {
return network_get_strv("NTP", ret);
}
+_public_ int sd_network_get_domains(char ***ret) {
+ return network_get_strv("DOMAINS", ret);
+}
+
_public_ int sd_network_link_get_setup_state(int ifindex, char **state) {
_cleanup_free_ char *s = NULL, *p = NULL;
int r;