session: Add destroy function for plugins
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 14 Nov 2012 13:48:57 +0000 (14:48 +0100)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 23 Nov 2012 12:47:24 +0000 (13:47 +0100)
commitdde92b7fc8cf2c9bb3eed98deb3be0698315722c
tree039f339f1bab883ecec6c01f5f433b7379e4dc83
parent562e35614eeb4fb6fde9347c34203e61315846a8
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
src/session.c