sync

Backup service to store encrypted wallet databases (experimental)
Log | Files | Refs | Submodules | README | LICENSE

sync_database_lib.h (1436B)


      1 /*
      2   This file is part of TALER
      3   Copyright (C) 2014-2017 Inria & GNUnet e.V.
      4 
      5   TALER 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   TALER 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   TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     15 */
     16 /**
     17  *
     18  */
     19 #ifndef SYNC_DB_LIB_H
     20 #define SYNC_DB_LIB_H
     21 
     22 #include <taler/taler_util.h>
     23 #include "sync_database_plugin.h"
     24 
     25 /**
     26  * Initialize the plugin.
     27  *
     28  * @param cfg configuration to use
     29  * @param skip_preflight true if we should skip the usual
     30  *   preflight check which assures us that the DB is actually
     31  *   operational; only sync-dbinit should use true here.
     32  * @return NULL on failure
     33  */
     34 struct SYNC_DatabasePlugin *
     35 SYNC_DB_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg,
     36                      bool skip_preflight);
     37 
     38 
     39 /**
     40  * Shutdown the plugin.
     41  *
     42  * @param[in] plugin plugin to unload
     43  */
     44 void
     45 SYNC_DB_plugin_unload (struct SYNC_DatabasePlugin *plugin);
     46 
     47 
     48 #endif  /* SYNC_DB_LIB_H */
     49 
     50 /* end of sync_database_lib.h */