diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2013-03-03 22:55:13 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2013-03-04 10:11:41 +0100 |
commit | d89079acf5d418df849c7f89ff5784963de70b07 (patch) | |
tree | 4d505af654032f47f54fe55dda6357ce4a3f01bf /auth/eurephia_authplugin.c | |
parent | 4436104929fb437fd0e323fcc6e542323db1aed6 (diff) | |
download | eurephia-d89079acf5d418df849c7f89ff5784963de70b07.tar.gz eurephia-d89079acf5d418df849c7f89ff5784963de70b07.tar.xz eurephia-d89079acf5d418df849c7f89ff5784963de70b07.zip |
auth plug-in: Made the PluginInfo() function more informative
This new PluginInfo() will return a struct instead, containing all the
needed plug-in info. It also replaces the APIversion() function completely.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'auth/eurephia_authplugin.c')
-rw-r--r-- | auth/eurephia_authplugin.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/auth/eurephia_authplugin.c b/auth/eurephia_authplugin.c index 996e6ba..f459e7b 100644 --- a/auth/eurephia_authplugin.c +++ b/auth/eurephia_authplugin.c @@ -26,6 +26,7 @@ */ #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <dlfcn.h> @@ -77,9 +78,12 @@ eAuthPluginCTX * eAuthPlugin_Init(eurephiaCTX * ctx) // If we got a handle to the plug-in, it up apctx->plugin = __eAuthPlugin_Setup(ctx, apctx->filename, apctx->dlhandle); if (apctx->plugin != NULL) { + ePluginInfo *plginfo = apctx->plugin->PluginInfo(); + eurephia_log(ctx, LOG_INFO, 1, - "Loaded eurephia plugin %s", - apctx->plugin->PluginInfo()); + "Loaded eurephia %s plugin: %s (v%s) %s", + ePluginTypeString(plginfo), + plginfo->name, plginfo->version, plginfo->copyright); // On success, add this plug-in to the context chain if( apctxhead != NULL ) { apctx->next = apctxhead; |