summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-08-13 08:40:29 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-30 10:04:52 (GMT)
commitd634d36e87c82a6030bfff08736e241f718a5a70 (patch)
tree8c4c834985313ce6672dec1623e14fc158d19c86 /plugins
parent2b55c51eb7cd4b9a6c34aa01d07b448d3ffe4db7 (diff)
downloadconnman-d634d36e87c82a6030bfff08736e241f718a5a70.zip
connman-d634d36e87c82a6030bfff08736e241f718a5a70.tar.gz
connman-d634d36e87c82a6030bfff08736e241f718a5a70.tar.bz2
session: Move EmergencyCall to configuration plugin
Instead fallback using the configuration plugin for selecting the emergency application. Now we don't have to update all other sessions which makes the whole code logic more straight forward. If a session is marked as an emergency call and this application calls Connect()/Disconnect() it will succedd and block all other sessions when they try to call Connect() or Disconnect().
Diffstat (limited to 'plugins')
-rw-r--r--plugins/session_default.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/session_default.c b/plugins/session_default.c
index a087ddf..061c00d 100644
--- a/plugins/session_default.c
+++ b/plugins/session_default.c
@@ -39,6 +39,8 @@ static int config_get_bool(const char *id, const char *key, connman_bool_t *val)
if (g_str_equal(key, "Priority") == TRUE)
*val = FALSE;
+ else if (g_str_equal(key, "EmergencyCall") == TRUE)
+ *val = FALSE;
else
return -EINVAL;