blob: cc7312943b06c9b97f938849217739c86b927a4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/* eurephia_authplugin_context.h
*
* Copyright (C) 2013 David Sommerseth <dazo@users.sourceforge.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* @file eurephia_authplugin_context.h
* @author David Sommerseth <dazo@users.sourceforge.net>
* @date 2013-02-15
*
* @brief eurephia authentication plug-in context definition
*/
#ifndef EUREPHIA_AUTHPLUGIN_CONTEXT_H_
#define EUREPHIA_AUTHPLUGIN_CONTEXT_H_
#ifdef EUREPHIA_AUTHPLUGIN_C_
/**
* Authentication plug-in context.
* Contains an overview of all loaded authentication plug-ins
*
* This struct is only visible for eurephia_authplugin.c, to
* avoid nesting troubles when eurephiaCTX needs declared eAuthPlugin
* which again needs eurephiaCTX to already be defined.
*
*/
typedef struct __eAuthPluginCTX {
char *filename; /**< Filename of the plug-in */
void *dlhandle; /**< Handle to plug-in returned by dlopen() */
unsigned int plgid; /**< Name of the plug-in, retrieved from the database */
eAuthPlugin *plugin; /**< Access to the plug-in funcions */
struct __eAuthPluginCTX *next; /**< Pointer to the next auth plug-in */
} eAuthPluginCTX;
#else
typedef struct __eAuthPluginCTX eAuthPluginCTX;
#endif /* EUREPHIA_AUTHPLUGIN_C_ */
#endif /* EUREPHIA_AUTHPLUGIN_CONTEXT_H_ */
|