From 580921d2458dd24174d4cd4392e572112d24501f Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Wed, 19 Sep 2012 16:04:51 +0200 Subject: 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. --- include/session.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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); -- cgit v1.2.3