diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-08-13 10:40:25 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-08-30 13:02:51 +0300 |
commit | 5bdf8a28314cd50ac9a8cea8f58f156b114634b1 (patch) | |
tree | 9e2e7ebfaad299495e6be40f4f4854449f0f7291 /plugins | |
parent | 9844cb3d499b654e6d337dab29673513680b6bb5 (diff) | |
download | connman-5bdf8a28314cd50ac9a8cea8f58f156b114634b1.tar.gz connman-5bdf8a28314cd50ac9a8cea8f58f156b114634b1.tar.bz2 connman-5bdf8a28314cd50ac9a8cea8f58f156b114634b1.zip |
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.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/session_default.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 <errno.h> #include <string.h> +#include <glib.h> + #define CONNMAN_API_SUBJECT_TO_CHANGE #include <connman/plugin.h> #include <connman/log.h> @@ -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) |