diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2013-03-04 11:55:54 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2013-03-04 11:55:54 +0100 |
commit | 5da59efc978fce7b4da71dc967a22647721f78af (patch) | |
tree | 8d2864dac642e2ec52c5b59f42e9bd900d825f7f /auth/eurephia_authplugin_driver.h | |
parent | c4b5ca206e7d9df745a8e74b54d3e3e2fc8dc048 (diff) | |
download | eurephia-5da59efc978fce7b4da71dc967a22647721f78af.tar.gz eurephia-5da59efc978fce7b4da71dc967a22647721f78af.tar.xz eurephia-5da59efc978fce7b4da71dc967a22647721f78af.zip |
auth plug-in: Extended the API to have a PluginInit() function
This can be used to pass a configuration to the authentication plug-in.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'auth/eurephia_authplugin_driver.h')
-rw-r--r-- | auth/eurephia_authplugin_driver.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/auth/eurephia_authplugin_driver.h b/auth/eurephia_authplugin_driver.h index 69b8f7e..fbceaf8 100644 --- a/auth/eurephia_authplugin_driver.h +++ b/auth/eurephia_authplugin_driver.h @@ -100,6 +100,16 @@ typedef struct __eAuthPlugin { ePluginInfo * (*PluginInfo)(); /** + * Initialisation function for the plug-in. + * + * @param eurephiaCTX* Pointer to the current eurephia context + * @param args String containing the initialisation data + * + * @return Returns 1 on success, otherwise 0 + */ + int (*PluginInit)(eurephiaCTX *ctx, const char *args); + + /** * Mandatory auth plug-in function. Authenticates a user account based * on the given username and password. * |