summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vpn/vpn-provider.c15
-rw-r--r--vpn/vpn-provider.h4
2 files changed, 19 insertions, 0 deletions
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index 1630dad6..a5980e6f 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -2153,6 +2153,21 @@ void __vpn_provider_check_connections(void)
g_timeout_add(1000, check_vpn_count, NULL);
}
+const char *vpn_provider_get_name(struct vpn_provider *provider)
+{
+ return provider->name;
+}
+
+const char *vpn_provider_get_host(struct vpn_provider *provider)
+{
+ return provider->host;
+}
+
+const char *vpn_provider_get_path(struct vpn_provider *provider)
+{
+ return provider->path;
+}
+
int __vpn_provider_init(gboolean do_routes)
{
DBG("");
diff --git a/vpn/vpn-provider.h b/vpn/vpn-provider.h
index b462042d..b3c10483 100644
--- a/vpn/vpn-provider.h
+++ b/vpn/vpn-provider.h
@@ -101,6 +101,10 @@ int vpn_provider_append_route(struct vpn_provider *provider,
const char *vpn_provider_get_driver_name(struct vpn_provider *provider);
const char *vpn_provider_get_save_group(struct vpn_provider *provider);
+const char *vpn_provider_get_name(struct vpn_provider *provider);
+const char *vpn_provider_get_host(struct vpn_provider *provider);
+const char *vpn_provider_get_path(struct vpn_provider *provider);
+
typedef void (* vpn_provider_connect_cb_t) (struct vpn_provider *provider,
void *user_data, int error);