From dde92b7fc8cf2c9bb3eed98deb3be0698315722c Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Wed, 14 Nov 2012 14:48:57 +0100 Subject: session: Add destroy function for plugins The error handling can get easily get pretty hairy, e.g. reallocating memory for allowed_bearers. If we hit this situation we allow the plugin to shutdown the session. That is consistent with what we do when there is a problem while creating a new session. --- include/session.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/session.h b/include/session.h index f75b7516..c56c73ba 100644 --- a/include/session.h +++ b/include/session.h @@ -76,6 +76,7 @@ int connman_session_policy_register(struct connman_session_policy *config); void connman_session_policy_unregister(struct connman_session_policy *config); int connman_session_config_update(struct connman_session *session); +void connman_session_destroy(struct connman_session *session); struct connman_session_config *connman_session_create_default_config(void); -- cgit v1.2.3