summaryrefslogtreecommitdiff
path: root/src/include/taler_merchantdb_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r--src/include/taler_merchantdb_plugin.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h
index 0270dca4..9d2dd234 100644
--- a/src/include/taler_merchantdb_plugin.h
+++ b/src/include/taler_merchantdb_plugin.h
@@ -669,6 +669,18 @@ struct TALER_MERCHANTDB_Plugin
char *library_name;
/**
+ * Connect to the database, possibly only to drop the tables. Called first
+ * to complete the initialization.
+ *
+ * @param cls closure
+ * @param for_drop are we going to call drop_tables() next (and then
+ * possibly again connect()?
+ */
+ int
+ (*connect) (void *cls,
+ bool for_drop);
+
+ /**
* Drop merchant tables. Used for testcases.
*
* @param cls closure