diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2013-03-07 15:46:26 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2013-03-07 15:46:26 +0100 |
commit | 91bc7a0a44225d509065c314126645e84b4915a2 (patch) | |
tree | 5b813e79d126688bd493ecc15ca40e50ef401507 /auth/eurephia_authplugin.c | |
parent | ce3f5c673f62a1ac2ad4bfc39d056f6ea938d597 (diff) | |
download | eurephia-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.c | 4 |
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); |