From 5bdf8a28314cd50ac9a8cea8f58f156b114634b1 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 13 Aug 2012 10:40:25 +0200 Subject: session: Move Priority to configuration plugin The Priority setting which should be set by the platform integrator and not by the application developer is moved the configuration plugin. --- plugins/session_default.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/session_default.c b/plugins/session_default.c index 0c01139e..a087ddf7 100644 --- a/plugins/session_default.c +++ b/plugins/session_default.c @@ -26,6 +26,8 @@ #include #include +#include + #define CONNMAN_API_SUBJECT_TO_CHANGE #include #include @@ -35,9 +37,12 @@ static int config_get_bool(const char *id, const char *key, connman_bool_t *val) { DBG("id %s key %s", id, key); - *val = FALSE; + if (g_str_equal(key, "Priority") == TRUE) + *val = FALSE; + else + return -EINVAL; - return -EINVAL; + return 0; } static int config_get_string(const char *id, const char *key, char **val) -- cgit v1.2.3