diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2013-03-05 16:06:21 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-03-08 13:09:33 +0200 |
commit | a2c589d2702e27249588f066be922357c8665829 (patch) | |
tree | cb2da6933d79f587cc00c5d2543a70014c772980 /vpn/vpn-provider.c | |
parent | 48d2457887a2733c712112408886688864b76ff0 (diff) | |
download | connman-a2c589d2702e27249588f066be922357c8665829.tar.gz connman-a2c589d2702e27249588f066be922357c8665829.tar.bz2 connman-a2c589d2702e27249588f066be922357c8665829.zip |
vpn-provider: Introduce immutable flag to provider data
Diffstat (limited to 'vpn/vpn-provider.c')
-rw-r--r-- | vpn/vpn-provider.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c index 12c341b4..7bb3d81f 100644 --- a/vpn/vpn-provider.c +++ b/vpn/vpn-provider.c @@ -83,6 +83,7 @@ struct vpn_provider { guint notify_id; char *config_file; char *config_entry; + connman_bool_t immutable; }; static void append_properties(DBusMessageIter *iter, @@ -1340,6 +1341,9 @@ static void append_properties(DBusMessageIter *iter, connman_dbus_dict_append_basic(&dict, "Domain", DBUS_TYPE_STRING, &provider->domain); + connman_dbus_dict_append_basic(&dict, "Immutable", DBUS_TYPE_BOOLEAN, + &provider->immutable); + if (provider->family == AF_INET) connman_dbus_dict_append_dict(&dict, "IPv4", append_ipv4, provider); @@ -1581,6 +1585,7 @@ static void provider_initialize(struct vpn_provider *provider) provider->type = NULL; provider->domain = NULL; provider->identifier = NULL; + provider->immutable = FALSE; provider->user_networks = NULL; provider->routes = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, free_route); |