summaryrefslogtreecommitdiff
path: root/src/network/sd-network.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-11 22:56:52 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-11 22:56:52 +0200
commit6436165dbc500f14abfec738af28f87a71f6a12a (patch)
treee7cd22f27cb3dee8383a00ea86eda27c2b49f5e9 /src/network/sd-network.c
parent44e7b9492617408130d11ffa451c2660942974f6 (diff)
sd-network: rename the per-ifindex calls to sd_network_get_link_xxx()
This way we can introduce system-wide versions of these calls that are called the same way, but without the "link" in the name.
Diffstat (limited to 'src/network/sd-network.c')
-rw-r--r--src/network/sd-network.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/network/sd-network.c b/src/network/sd-network.c
index ed02eccaf1..cc4b160e74 100644
--- a/src/network/sd-network.c
+++ b/src/network/sd-network.c
@@ -107,7 +107,7 @@ _public_ int sd_network_get_link_operational_state(int ifindex, char **state) {
return 0;
}
-_public_ int sd_network_get_llmnr(int ifindex, char **llmnr) {
+_public_ int sd_network_get_link_llmnr(int ifindex, char **llmnr) {
_cleanup_free_ char *s = NULL, *p = NULL;
int r;
@@ -131,7 +131,7 @@ _public_ int sd_network_get_llmnr(int ifindex, char **llmnr) {
return 0;
}
-_public_ int sd_network_get_dhcp_lease(int ifindex, sd_dhcp_lease **ret) {
+_public_ int sd_network_get_link_dhcp_lease(int ifindex, sd_dhcp_lease **ret) {
_cleanup_free_ char *p = NULL, *s = NULL;
sd_dhcp_lease *lease = NULL;
int r;
@@ -158,7 +158,7 @@ _public_ int sd_network_get_dhcp_lease(int ifindex, sd_dhcp_lease **ret) {
return 0;
}
-static int network_get_strv(const char *key, int ifindex, char ***ret) {
+static int network_get_link_strv(const char *key, int ifindex, char ***ret) {
_cleanup_free_ char *p = NULL, *s = NULL;
_cleanup_strv_free_ char **a = NULL;
int r;
@@ -191,12 +191,12 @@ static int network_get_strv(const char *key, int ifindex, char ***ret) {
return r;
}
-_public_ int sd_network_get_dns(int ifindex, char ***ret) {
- return network_get_strv("DNS", ifindex, ret);
+_public_ int sd_network_get_link_dns(int ifindex, char ***ret) {
+ return network_get_link_strv("DNS", ifindex, ret);
}
-_public_ int sd_network_get_ntp(int ifindex, char ***ret) {
- return network_get_strv("NTP", ifindex, ret);
+_public_ int sd_network_get_link_ntp(int ifindex, char ***ret) {
+ return network_get_link_strv("NTP", ifindex, ret);
}
static inline int MONITOR_TO_FD(sd_network_monitor *m) {