From: Patrik Flykt <[email protected]>

Profile information is used when opening file storage for
reading and writing. Add profile information to provider data
so it is similar in usage as in the service struct.
---
 src/provider.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/provider.c b/src/provider.c
index fb17d77..f5d527e 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -49,6 +49,7 @@ struct connman_provider {
        struct connman_service *vpn_service;
        int index;
        char *identifier;
+       char *profile;
        char *name;
        char *type;
        char *host;
@@ -159,6 +160,7 @@ static void provider_destruct(struct connman_provider 
*provider)
        g_free(provider->type);
        g_free(provider->domain);
        g_free(provider->identifier);
+       g_free(provider->profile);
        g_hash_table_destroy(provider->routes);
        g_hash_table_destroy(provider->setting_strings);
 }
@@ -448,6 +450,7 @@ static struct connman_provider *connman_provider_get(const 
char *identifier)
        DBG("provider %p", provider);
 
        provider->identifier = g_strdup(identifier);
+       provider->profile = g_strdup(__connman_profile_active_ident());
 
        g_hash_table_insert(provider_hash, provider->identifier, provider);
 
-- 
1.7.2.5

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to