summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2021-09-08 06:44:05 +0000
committerGerrit Code Review <gerrit@review>2021-09-08 06:44:05 +0000
commit7ef7e96fc2f3eb620fffb6f277339214efe83747 (patch)
treecadff8fb0495059c61a37d465325cccebe33a0bc
parent2779b65d2c65d20ef001fa8f2db0ee3b20fdeeca (diff)
parentd2986e451a7f747bf042a613faf58e51e9dc24a3 (diff)
downloadconnman-7ef7e96fc2f3eb620fffb6f277339214efe83747.tar.gz
connman-7ef7e96fc2f3eb620fffb6f277339214efe83747.tar.bz2
connman-7ef7e96fc2f3eb620fffb6f277339214efe83747.zip
Merge "vpn: Export vpn_ipconfig_foreach as linker symbol" into tizen
-rw-r--r--vpn/plugins/wireguard.c2
-rwxr-xr-xvpn/vpn-ipconfig.c2
-rwxr-xr-xvpn/vpn-rtnl.c2
-rwxr-xr-xvpn/vpn.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/vpn/plugins/wireguard.c b/vpn/plugins/wireguard.c
index 7541dd6e..ec57c93d 100644
--- a/vpn/plugins/wireguard.c
+++ b/vpn/plugins/wireguard.c
@@ -243,7 +243,7 @@ static char *get_ifname(void)
for (i = 0; i < 256; i++) {
data.ifname = g_strdup_printf("wg%d", i);
data.found = false;
- __vpn_ipconfig_foreach(ifname_check_cb, &data);
+ vpn_ipconfig_foreach(ifname_check_cb, &data);
if (!data.found)
return data.ifname;
diff --git a/vpn/vpn-ipconfig.c b/vpn/vpn-ipconfig.c
index c096fa37..c4fa5482 100755
--- a/vpn/vpn-ipconfig.c
+++ b/vpn/vpn-ipconfig.c
@@ -108,7 +108,7 @@ unsigned int __vpn_ipconfig_get_flags_from_index(int index)
return ipdevice->flags;
}
-void __vpn_ipconfig_foreach(void (*function) (int index,
+void vpn_ipconfig_foreach(void (*function) (int index,
void *user_data), void *user_data)
{
GList *list, *keys;
diff --git a/vpn/vpn-rtnl.c b/vpn/vpn-rtnl.c
index 6ddfd832..295c05ce 100755
--- a/vpn/vpn-rtnl.c
+++ b/vpn/vpn-rtnl.c
@@ -184,7 +184,7 @@ int vpn_rtnl_register(struct vpn_rtnl *rtnl)
rtnl_list = g_slist_insert_sorted(rtnl_list, rtnl,
compare_priority);
- __vpn_ipconfig_foreach(trigger_rtnl, rtnl);
+ vpn_ipconfig_foreach(trigger_rtnl, rtnl);
return 0;
}
diff --git a/vpn/vpn.h b/vpn/vpn.h
index 125450b5..e68b8ada 100755
--- a/vpn/vpn.h
+++ b/vpn/vpn.h
@@ -35,7 +35,7 @@ struct vpn_ipconfig;
struct connman_ipaddress *__vpn_ipconfig_get_address(struct vpn_ipconfig *ipconfig);
unsigned short __vpn_ipconfig_get_type_from_index(int index);
unsigned int __vpn_ipconfig_get_flags_from_index(int index);
-void __vpn_ipconfig_foreach(void (*function) (int index,
+void vpn_ipconfig_foreach(void (*function) (int index,
void *user_data), void *user_data);
void __vpn_ipconfig_set_local(struct vpn_ipconfig *ipconfig,
const char *address);