summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-10-02 14:04:59 (GMT)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-10-02 14:22:31 (GMT)
commitbb9098e011846fd1985a2b6eda185d8ebf6abb6e (patch)
treea9cf4fd6bd43a04df546f9aa43a30a01d96d3162 /plugins
parent36ab809686c0be354199b9a62619a8c57863e5ee (diff)
downloadconnman-bb9098e011846fd1985a2b6eda185d8ebf6abb6e.zip
connman-bb9098e011846fd1985a2b6eda185d8ebf6abb6e.tar.gz
connman-bb9098e011846fd1985a2b6eda185d8ebf6abb6e.tar.bz2
session: Move the default config create part back to core
Diffstat (limited to 'plugins')
-rw-r--r--plugins/session_policy.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/session_policy.c b/plugins/session_policy.c
index 5c2c418..98d984a 100644
--- a/plugins/session_policy.c
+++ b/plugins/session_policy.c
@@ -42,20 +42,10 @@ static struct connman_session_config *policy_create(
DBG("session %p", session);
- config = g_try_new0(struct connman_session_config, 1);
+ config = connman_session_create_default_config();
if (config == NULL)
return NULL;
- config->priority = FALSE;
- config->roaming_policy = CONNMAN_SESSION_ROAMING_POLICY_DEFAULT;
- config->type = CONNMAN_SESSION_TYPE_ANY;
- config->ecall = FALSE;
- config->allowed_bearers = connman_session_allowed_bearers_any();
- if (config->allowed_bearers == NULL) {
- g_free(config);
- return NULL;
- }
-
g_hash_table_replace(config_hash, session, config);
return config;