From ac850bfcd2d41a195520835369c2c9056aed1141 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 4 Nov 2018 17:36:56 +0100 Subject: add auditing of deposit confirmations to auditor (#5447) --- src/include/taler_auditordb_plugin.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src/include/taler_auditordb_plugin.h') diff --git a/src/include/taler_auditordb_plugin.h b/src/include/taler_auditordb_plugin.h index 76dcc3507..92494ab32 100644 --- a/src/include/taler_auditordb_plugin.h +++ b/src/include/taler_auditordb_plugin.h @@ -345,6 +345,20 @@ struct TALER_AUDITORDB_DepositConfirmation }; +/** + * Function called with deposit confirmations stored in + * the auditor's database. + * + * @param cls closure + * @param serial_id location of the @a dc in the database + * @param dc the deposit confirmation itself + */ +typedef void +(*TALER_AUDITORDB_DepositConfirmationCallback)(void *cls, + uint64_t serial_id, + const struct TALER_AUDITORDB_DepositConfirmation *dc); + + /** * Handle for one session with the database. */ @@ -525,6 +539,27 @@ struct TALER_AUDITORDB_Plugin const struct TALER_AUDITORDB_DepositConfirmation *dc); + /** + * Get information about a deposit confirmations from the database. + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param session connection to the database + * @param master_pub for which exchange do we want to get deposit confirmations + * @param start_id row/serial ID where to start the iteration (0 from + * the start, exclusive, i.e. serial_ids must start from 1) + * @param cb function to call with results + * @param cb_cls closure for @a cb + * @return query result status + */ + enum GNUNET_DB_QueryStatus + (*get_deposit_confirmations) (void *cls, + struct TALER_AUDITORDB_Session *session, + const struct TALER_MasterPublicKeyP *master_public_key, + uint64_t start_id, + TALER_AUDITORDB_DepositConfirmationCallback cb, + void *cb_cls); + + /** * Insert information about a denomination key and in particular * the properties (value, fees, expiration times) the coins signed -- cgit v1.2.3