aboutsummaryrefslogtreecommitdiff
path: root/src/include/anastasis_authorization_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/anastasis_authorization_lib.h')
-rw-r--r--src/include/anastasis_authorization_lib.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/include/anastasis_authorization_lib.h b/src/include/anastasis_authorization_lib.h
new file mode 100644
index 0000000..80740be
--- /dev/null
+++ b/src/include/anastasis_authorization_lib.h
@@ -0,0 +1,52 @@
1/*
2 This file is part of Anastasis
3 Copyright (C) 2019, 2021 Taler Systems SA
4
5 Anastasis is free software; you can redistribute it and/or modify it under the
6 terms of the GNU Lesser General Public License as published by the Free Software
7 Foundation; either version 3, or (at your option) any later version.
8
9 Anastasis is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License along with
14 Anastasis; see the file COPYING.GPL. If not, see <http://www.gnu.org/licenses/>
15*/
16/**
17 * @file include/anastasis_authorization_lib.h
18 * @brief database plugin loader
19 * @author Dominik Meister
20 * @author Dennis Neufeld
21 * @author Christian Grothoff
22 */
23#ifndef ANASTASIS_AUTHORIZATION_LIB_H
24#define ANASTASIS_AUTHORIZATION_LIB_H
25
26#include "anastasis_authorization_plugin.h"
27
28/**
29 * Load authorization plugin.
30 *
31 * @param method name of the method to load
32 * @param AH_cfg configuration to use
33 * @param[out] set to the cost for using the plugin during recovery
34 * @return #GNUNET_OK on success
35 */
36struct ANASTASIS_AuthorizationPlugin *
37ANASTASIS_authorization_plugin_load (
38 const char *method,
39 const struct GNUNET_CONFIGURATION_Handle *AH_cfg,
40 struct TALER_Amount *cost);
41
42
43/**
44 * shutdown all loaded plugins.
45 *
46 * @param void
47 */
48void
49ANASTASIS_authorization_plugin_shutdown (void);
50
51#endif
52/* end of anastasis_authorization_lib.h */