summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-11-14 14:48:57 +0100
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-11-23 13:47:24 +0100
commitdde92b7fc8cf2c9bb3eed98deb3be0698315722c (patch)
tree039f339f1bab883ecec6c01f5f433b7379e4dc83 /include
parent562e35614eeb4fb6fde9347c34203e61315846a8 (diff)
downloadconnman-dde92b7fc8cf2c9bb3eed98deb3be0698315722c.tar.gz
connman-dde92b7fc8cf2c9bb3eed98deb3be0698315722c.tar.bz2
connman-dde92b7fc8cf2c9bb3eed98deb3be0698315722c.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/session.h1
1 files changed, 1 insertions, 0 deletions
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);