From d6731e4c7964ee2860d4f5abdb0b52acd7a66960 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 13 Aug 2014 22:37:45 +0200 Subject: sd-network: /_get_link_/_link_get_/ The link is the 'object', so make this in line with our usual naming convention. Suggested by Kay and Lennart. --- src/libsystemd/sd-network/sd-network.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libsystemd/sd-network') diff --git a/src/libsystemd/sd-network/sd-network.c b/src/libsystemd/sd-network/sd-network.c index 1039a2c48c..f8f48b0ddf 100644 --- a/src/libsystemd/sd-network/sd-network.c +++ b/src/libsystemd/sd-network/sd-network.c @@ -92,7 +92,7 @@ _public_ int sd_network_get_ntp(char ***ret) { return network_get_strv("NTP", ret); } -_public_ int sd_network_get_link_state(int ifindex, char **state) { +_public_ int sd_network_link_get_state(int ifindex, char **state) { _cleanup_free_ char *s = NULL, *p = NULL; int r; @@ -116,7 +116,7 @@ _public_ int sd_network_get_link_state(int ifindex, char **state) { return 0; } -_public_ int sd_network_get_link_operational_state(int ifindex, char **state) { +_public_ int sd_network_link_get_operational_state(int ifindex, char **state) { _cleanup_free_ char *s = NULL, *p = NULL; int r; @@ -140,7 +140,7 @@ _public_ int sd_network_get_link_operational_state(int ifindex, char **state) { return 0; } -_public_ int sd_network_get_link_llmnr(int ifindex, char **llmnr) { +_public_ int sd_network_link_get_llmnr(int ifindex, char **llmnr) { _cleanup_free_ char *s = NULL, *p = NULL; int r; @@ -198,11 +198,11 @@ static int network_get_link_strv(const char *key, int ifindex, char ***ret) { return r; } -_public_ int sd_network_get_link_dns(int ifindex, char ***ret) { +_public_ int sd_network_link_get_dns(int ifindex, char ***ret) { return network_get_link_strv("DNS", ifindex, ret); } -_public_ int sd_network_get_link_ntp(int ifindex, char ***ret) { +_public_ int sd_network_link_get_ntp(int ifindex, char ***ret) { return network_get_link_strv("NTP", ifindex, ret); } -- cgit v1.2.3-54-g00ecf