diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2020-01-16 18:37:07 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2020-01-16 18:38:04 +0100 |
commit | 1e26fc824c5e12460159e203db7fd686ab6b8bd9 (patch) | |
tree | 6dcbd4f64312bb98da477655f727a210792558ef /src/include/taler_testing_lib.h | |
parent | 23507d8565334594bb397a08d2fd853f2b96d776 (diff) |
Finishing CMD to insert denomination and deposit into database.
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r-- | src/include/taler_testing_lib.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 48214aed5..9b0ca422c 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -94,6 +94,22 @@ struct TALER_TESTING_ExchangeConfiguration }; +/** + * Connection to the database: aggregates + * plugin and session handles. + */ +struct TALER_TESTING_DatabaseConnection +{ + /** + * Database plugin. + */ + struct TALER_EXCHANGEDB_Plugin *plugin; + + /** + * Session with the database. + */ + struct TALER_EXCHANGEDB_Session *session; +}; /** * Prepare launching an exchange. Checks that the configured @@ -1667,7 +1683,7 @@ TALER_TESTING_cmd_connect_with_state (const char *label, * Make the "insert-deposit" CMD. * * @param label command label. - * @param config_filename configuration filename. + * @param dbc collects plugin and session handles * @param merchant_name Human-readable name of the merchant. * @param merchant_account value indicating the merchant at its bank. * @param wire_deadline point in time where the aggregator should have @@ -1678,10 +1694,10 @@ TALER_TESTING_cmd_connect_with_state (const char *label, */ struct TALER_TESTING_Command TALER_TESTING_cmd_insert_deposit (const char *label, - const char *config_filename, + const struct TALER_TESTING_DatabaseConnection *dbc, const char *merchant_name, const char *merchant_account, - struct GNUNET_TIME_Absolute wire_deadline, + struct GNUNET_TIME_Relative wire_deadline, const char *amount_with_fee, const char *deposit_fee); |