summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-08-13 08:40:31 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-30 10:05:27 (GMT)
commit04728bfe16909830ff5d6d27afee172ac07a104a (patch)
treed3eee9a01c07b1727309a356cfe7ab7da65c620d /plugins
parent22daf8dc3f526f9127b64c4270244fb1904a0639 (diff)
downloadconnman-04728bfe16909830ff5d6d27afee172ac07a104a.zip
connman-04728bfe16909830ff5d6d27afee172ac07a104a.tar.gz
connman-04728bfe16909830ff5d6d27afee172ac07a104a.tar.bz2
session: Move RoamingPolicy to configuration plugin
The RoamingPolicy setting which should be set by the platform integrator and not by the application developper is moved the configuration plugin.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/session_default.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/session_default.c b/plugins/session_default.c
index 061c00d..d62a596 100644
--- a/plugins/session_default.c
+++ b/plugins/session_default.c
@@ -51,9 +51,12 @@ static int config_get_string(const char *id, const char *key, char **val)
{
DBG("id %s key %s", id, key);
- *val = NULL;
+ if (g_str_equal(key, "RoamingPolicy") == TRUE)
+ *val = "default";
+ else
+ return -EINVAL;
- return -EINVAL;
+ return 0;
}
static struct connman_session_config session_config = {