diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2024-03-08 11:12:50 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2024-03-08 11:12:50 +0100 |
commit | a50e69908e7205021167415fac42162be96f98d0 (patch) | |
tree | 3de2eb42d6c5243e860dc02fe8846fadb3d1dd5a /src/include | |
parent | fb02619f98eca93de71aaee9c7c8d83ac77025bc (diff) | |
download | exchange-a50e69908e7205021167415fac42162be96f98d0.tar.gz exchange-a50e69908e7205021167415fac42162be96f98d0.tar.bz2 exchange-a50e69908e7205021167415fac42162be96f98d0.zip |
add taler-exchange-dbinit -a option
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index c7bffbd89..5cd63f2bf 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -34,16 +34,24 @@ */ enum TALER_EXCHANGEDB_AgeCommitmentHash_Conflict { - /* Value OK, no conflict */ + /** + * Value OK, no conflict + */ TALER_AgeCommitmentHash_NoConflict = 0, - /* Given hash had a value, but NULL (or zero) was expected */ + /** + * Given hash had a value, but NULL (or zero) was expected + */ TALER_AgeCommitmentHash_NullExpected = 1, - /* Given hash was NULL, but value was expected */ + /** + * Given hash was NULL, but value was expected + */ TALER_AgeCommitmentHash_ValueExpected = 2, - /* Given hash differs from value in the known coin */ + /** + * Given hash differs from value in the known coin + */ TALER_AgeCommitmentHash_ValueDiffers = 3, }; @@ -7206,6 +7214,18 @@ struct TALER_EXCHANGEDB_Plugin const char *provider_account_id, const char *provider_legitimization_id); + /** + * Function called to inject auditor triggers into the + * database, triggering the real-time auditor upon + * relevant INSERTs. + * + * @param cls closure + * @return #GNUNET_OK on success, + * #GNUNET_SYSERR on DB errors + */ + enum GNUNET_GenericReturnValue + (*inject_auditor_triggers)(void *cls); + }; #endif /* _TALER_EXCHANGE_DB_H */ |