diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-10-02 16:04:59 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-10-02 16:22:31 +0200 |
commit | bb9098e011846fd1985a2b6eda185d8ebf6abb6e (patch) | |
tree | a9cf4fd6bd43a04df546f9aa43a30a01d96d3162 /plugins | |
parent | 36ab809686c0be354199b9a62619a8c57863e5ee (diff) | |
download | connman-bb9098e011846fd1985a2b6eda185d8ebf6abb6e.tar.gz connman-bb9098e011846fd1985a2b6eda185d8ebf6abb6e.tar.bz2 connman-bb9098e011846fd1985a2b6eda185d8ebf6abb6e.zip |
session: Move the default config create part back to core
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/session_policy.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/session_policy.c b/plugins/session_policy.c index 5c2c418f..98d984ac 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; |