summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-30 11:30:36 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-30 15:01:18 +0200
commit6cca0f6840abec55b330a55b08364aa7f2840305 (patch)
tree9f523fc0eaca011077d83a2cb6ae1c66e38bd5bb /vpn
parenta4c8f6b74733d0cf1d8c730aabd2ff5a7be0c124 (diff)
downloadconnman-6cca0f6840abec55b330a55b08364aa7f2840305.tar.gz
connman-6cca0f6840abec55b330a55b08364aa7f2840305.tar.bz2
connman-6cca0f6840abec55b330a55b08364aa7f2840305.zip
vpn-provider: Add getter functions
Diffstat (limited to 'vpn')
-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);