summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-19 16:04:51 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-27 10:28:28 +0200
commit580921d2458dd24174d4cd4392e572112d24501f (patch)
tree6d69fe4fa91f8b4a0fcd2d7997119634749d0c92 /include
parent3d5cacf9cbf52fb704e2a180c283499f9ff54adf (diff)
downloadconnman-580921d2458dd24174d4cd4392e572112d24501f.tar.gz
connman-580921d2458dd24174d4cd4392e572112d24501f.tar.bz2
connman-580921d2458dd24174d4cd4392e572112d24501f.zip
session: Add callbacks for config creation and distruction
Whenever a new session is created, the core will ask the plugin the create the config. This config can then be used by the core to enforce the user settings. The owner ship of this config stays in the plugin. Therefore, the plugin will destroy is later.
Diffstat (limited to 'include')
-rw-r--r--include/session.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/session.h b/include/session.h
index 2f5c80b0..34ed25d2 100644
--- a/include/session.h
+++ b/include/session.h
@@ -71,6 +71,9 @@ struct connman_session_policy {
const char *key, connman_bool_t *val);
int (*get_string) (struct connman_session *session,
const char *key, char **val);
+ struct connman_session_config *(*create)(
+ struct connman_session *session);
+ void (*destroy)(struct connman_session *session);
};
int connman_session_policy_register(struct connman_session_policy *config);