diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-09-26 11:05:46 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-09-27 10:28:28 +0200 |
commit | b290553dc8bca423d971a3dd314057fe03fe2ada (patch) | |
tree | 4b87c30ac02789aabafe6709061c36325a4ee5a5 /include/session.h | |
parent | 58e242e952d7ca59ef937adbccc71c504287b8f6 (diff) | |
download | connman-b290553dc8bca423d971a3dd314057fe03fe2ada.tar.gz connman-b290553dc8bca423d971a3dd314057fe03fe2ada.tar.bz2 connman-b290553dc8bca423d971a3dd314057fe03fe2ada.zip |
session: Add plugin priority
Support several session configuration plugins at runtime.
Set the default priority to low for the current policy plugin.
Diffstat (limited to 'include/session.h')
-rw-r--r-- | include/session.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/session.h b/include/session.h index fb2f3909..deff0fc5 100644 --- a/include/session.h +++ b/include/session.h @@ -28,11 +28,16 @@ extern "C" { #endif +#define CONNMAN_SESSION_POLICY_PRIORITY_LOW -100 +#define CONNMAN_SESSION_POLICY_PRIORITY_DEFAULT 0 +#define CONNMAN_SESSION_POLICY_PRIORITY_HIGH 100 + /* * The session are identified through the pid is only a temporary solution */ struct connman_session_policy { const char *name; + int priority; int (*get_bool) (const char *id, const char *key, connman_bool_t *val); int (*get_string) (const char *id, const char *key, char **val); }; |