diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2011-10-31 15:31:38 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-11-07 17:40:08 +0100 |
commit | 07482e08a6493db0078eff5c227d8b219a85960a (patch) | |
tree | 9ccdf87f30863acad9c56c6a06182621a355efd8 /src/provider.c | |
parent | 85608f359a2b1a50fc29fa4953735681bcd82a41 (diff) | |
download | connman-07482e08a6493db0078eff5c227d8b219a85960a.tar.gz connman-07482e08a6493db0078eff5c227d8b219a85960a.tar.bz2 connman-07482e08a6493db0078eff5c227d8b219a85960a.zip |
provider: Define a save function for provider drivers
Define a save function for connman provider driver
specific settings. No corresponding load function
is defined since all saved settings are already loaded
by connman_provider_load().
Diffstat (limited to 'src/provider.c')
-rw-r--r-- | src/provider.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/provider.c b/src/provider.c index 487c7cdb..321bfcc5 100644 --- a/src/provider.c +++ b/src/provider.c @@ -134,6 +134,9 @@ static int connman_provider_save(struct connman_provider *provider) g_key_file_set_string(keyfile, provider->identifier, "VPN.Domain", provider->domain); + if (provider->driver != NULL && provider->driver->save != NULL) + provider->driver->save(provider, keyfile); + __connman_storage_save_provider(keyfile, provider->identifier); g_key_file_free(keyfile); |