Support several session configuration plugins at runtime.
Set the default priority to low for the current policy plugin.
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);
};
static struct connman_session_policy session_policy = {
.name = "session policy configuration",
+ .priority = CONNMAN_SESSION_POLICY_PRIORITY_LOW,
.get_bool = policy_get_bool,
.get_string = policy_get_string,
};