From 787c56e7e95744852594fc6ad08ae9368b79723a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 27 Dec 2022 21:18:12 +0100 Subject: -add do_purse_delete API --- src/include/taler_exchangedb_plugin.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index d680cd731..5dcad4f71 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -5933,6 +5933,27 @@ struct TALER_EXCHANGEDB_Plugin bool *conflict); + /** + * Function called to explicitly delete a purse. + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param purse_pub purse to delete + * @param purse_sig signature affirming the deletion + * @param[out] decided set to true if the purse was + * already decided and thus could not be deleted + * @param[out] found set to true if the purse was found + * (if false, purse could not be deleted) + * @return transaction status code + */ + enum GNUNET_DB_QueryStatus + (*do_purse_delete)( + void *cls, + const struct TALER_PurseContractPublicKeyP *purse_pub, + const struct TALER_PurseContractSignatureP *purse_sig, + bool *dediced, + bool *found); + + /** * Set the current @a balance in the purse * identified by @a purse_pub. Used by the auditor -- cgit v1.2.3