diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-12-27 21:18:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-12-27 21:18:12 +0100 |
commit | 787c56e7e95744852594fc6ad08ae9368b79723a (patch) | |
tree | 64d0180fcfdcef6569297e3718b6b5143cea667d /src/include/taler_exchangedb_plugin.h | |
parent | 26624bed95aaa29dcea00095e167f3d9ec0a129e (diff) | |
download | exchange-787c56e7e95744852594fc6ad08ae9368b79723a.tar.xz |
-add do_purse_delete API
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ -5934,6 +5934,27 @@ struct TALER_EXCHANGEDB_Plugin /** + * 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 * to update the balance as calculated by the auditor. |