diff options
author | Tom Gundersen <teg@jklm.no> | 2014-08-13 22:37:45 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-08-13 22:37:45 +0200 |
commit | d6731e4c7964ee2860d4f5abdb0b52acd7a66960 (patch) | |
tree | 4907195ea25faf6d3db37aa1f6d2fed4ad5f1ca6 /src/libsystemd/sd-network/sd-network.c | |
parent | 5323ead145304785121b72dcbc1c244303de7575 (diff) |
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.
Diffstat (limited to 'src/libsystemd/sd-network/sd-network.c')
-rw-r--r-- | src/libsystemd/sd-network/sd-network.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |