anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

anastasis_database_lib.h (1643B)


      1 /*
      2   This file is part of Anastasis
      3   Copyright (C) 2019 Anastasis SARL
      4 
      5   Anastasis is free software; you can redistribute it and/or modify it under the
      6   terms of the GNU Affero 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 Affero General Public License for more details.
     12 
     13   You should have received a copy of the GNU Affero 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_database_lib.h
     18  * @brief database plugin loader
     19  * @author Dominik Meister
     20  * @author Dennis Neufeld
     21  * @author Christian Grothoff
     22  */
     23 #ifndef ANASTASIS_DB_LIB_H
     24 #define ANASTASIS_DB_LIB_H
     25 
     26 #include "anastasis_database_plugin.h"
     27 
     28 /**
     29  * Initialize the plugin.
     30  *
     31  * @param cfg configuration to use
     32  * @param skip_preflight true if we should skip the usual
     33  *   preflight check which assures us that the DB is actually
     34  *   operational; only anastasis-dbinit should use true here.
     35  * @return NULL on failure
     36  */
     37 struct ANASTASIS_DatabasePlugin *
     38 ANASTASIS_DB_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg,
     39                           bool skip_preflight);
     40 
     41 
     42 /**
     43  * Shutdown the plugin.
     44  *
     45  * @param plugin plugin to unload
     46  */
     47 void
     48 ANASTASIS_DB_plugin_unload (struct ANASTASIS_DatabasePlugin *plugin);
     49 
     50 
     51 #endif  /* ANASTASIS_DB_LIB_H */
     52 
     53 /* end of anastasis_database_lib.h */