summaryrefslogtreecommitdiff
path: root/include/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/session.h')
-rw-r--r--include/session.h5
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);
};