summaryrefslogtreecommitdiffstats
path: root/auth/eurephia_authplugin.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2013-03-07 15:46:26 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2013-03-07 15:46:26 +0100
commit91bc7a0a44225d509065c314126645e84b4915a2 (patch)
tree5b813e79d126688bd493ecc15ca40e50ef401507 /auth/eurephia_authplugin.c
parentce3f5c673f62a1ac2ad4bfc39d056f6ea938d597 (diff)
downloadeurephia-91bc7a0a44225d509065c314126645e84b4915a2.tar.gz
eurephia-91bc7a0a44225d509065c314126645e84b4915a2.tar.xz
eurephia-91bc7a0a44225d509065c314126645e84b4915a2.zip
auth plugin: Added a possibility for auth plug-ins to close down properly
This optional function may be declared in the auth-plugins and will be called via the eAuthPlugin_Close() function. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'auth/eurephia_authplugin.c')
-rw-r--r--auth/eurephia_authplugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/auth/eurephia_authplugin.c b/auth/eurephia_authplugin.c
index e67b7e6..5646209 100644
--- a/auth/eurephia_authplugin.c
+++ b/auth/eurephia_authplugin.c
@@ -206,6 +206,10 @@ void _eAuthPlugin_Close(eurephiaCTX *ctx, eAuthPluginCTX *apctx)
next = ptr->next;
ptr->next = NULL;
+ if (ptr->plugin->PluginClose) {
+ ptr->plugin->PluginClose(ctx);
+ }
+
// Close the plug-in handle
if (ptr->dlhandle) {
dlclose(ptr->dlhandle);