challenger_database_lib.h (1652B)
1 /* 2 This file is part of Challenger 3 Copyright (C) 2023 Taler Systems SA 4 5 Challenger is free software; you can redistribute it and/or modify it under the 6 terms of the GNU General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 Challenger 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 Challenger; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 */ 16 /** 17 * @file include/challenger_database_lib.h 18 * @brief database helper functions for postgres used by challenger 19 * @author Christian Grothoff 20 */ 21 #ifndef CHALLENGER_DB_LIB_H 22 #define CHALLENGER_DB_LIB_H 23 24 #include <taler/taler_util.h> 25 #include "challenger_database_plugin.h" 26 27 /** 28 * Initialize the plugin. 29 * 30 * @param cfg configuration to use 31 * @param skip_preflight true if we should skip the usual 32 * preflight check which assures us that the DB is actually 33 * operational; only challenger-dbinit should use true here. 34 * @return NULL on failure 35 */ 36 struct CHALLENGER_DatabasePlugin * 37 CHALLENGER_DB_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg, 38 bool skip_preflight); 39 40 41 /** 42 * Shutdown the plugin. 43 * 44 * @param[in] plugin plugin to unload 45 */ 46 void 47 CHALLENGER_DB_plugin_unload (struct CHALLENGER_DatabasePlugin *plugin); 48 49 50 #endif /* CHALLENGER_DB_LIB_H */ 51 52 /* end of challenger_database_lib.h */