From 69ac028a13497d9fa0b7ebf5e3c7992a492aab13 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 18 Mar 2017 22:20:48 +0100 Subject: add required separate risk balance per denomination to auditordb --- src/include/taler_auditordb_plugin.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (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 1a29e5ae5..54e6c5203 100644 --- a/src/include/taler_auditordb_plugin.h +++ b/src/include/taler_auditordb_plugin.h @@ -522,15 +522,16 @@ struct TALER_AUDITORDB_Plugin * @param cls the @e cls of this struct with the plugin-specific state * @param session connection to use * @param denom_pub_hash hash of the denomination public key - * @param denom_balance value of coins outstanding (or issued?) with this denomination key + * @param denom_balance value of coins outstanding with this denomination key + * @param denom_risk value of coins issued with this denomination key * @return #GNUNET_OK on success; #GNUNET_SYSERR on failure */ int (*insert_denomination_balance)(void *cls, struct TALER_AUDITORDB_Session *session, const struct GNUNET_HashCode *denom_pub_hash, - const struct TALER_Amount *denom_balance); - + const struct TALER_Amount *denom_balance, + const struct TALER_Amount *denom_risk); /** @@ -540,14 +541,16 @@ struct TALER_AUDITORDB_Plugin * @param cls the @e cls of this struct with the plugin-specific state * @param session connection to use * @param denom_pub_hash hash of the denomination public key - * @param denom_balance value of coins outstanding (or issued?) with this denomination key + * @param denom_balance value of coins outstanding with this denomination key + * @param denom_risk value of coins issued with this denomination key * @return #GNUNET_OK on success; #GNUNET_SYSERR on failure */ int (*update_denomination_balance)(void *cls, struct TALER_AUDITORDB_Session *session, const struct GNUNET_HashCode *denom_pub_hash, - const struct TALER_Amount *denom_balance); + const struct TALER_Amount *denom_balance, + const struct TALER_Amount *denom_risk); /** @@ -556,14 +559,16 @@ struct TALER_AUDITORDB_Plugin * @param cls the @e cls of this struct with the plugin-specific state * @param session connection to use * @param denom_pub_hash hash of the denomination public key - * @param[out] denom_balance value of coins outstanding (or issued?) with this denomination key + * @param[out] denom_balance value of coins outstanding with this denomination key + * @param[out] denom_risk value of coins issued with this denomination key * @return #GNUNET_OK on success; #GNUNET_NO if no record found, #GNUNET_SYSERR on failure */ int (*get_denomination_balance)(void *cls, struct TALER_AUDITORDB_Session *session, const struct GNUNET_HashCode *denom_pub_hash, - struct TALER_Amount *denom_balance); + struct TALER_Amount *denom_balance, + struct TALER_Amount *denom_risk); /** -- cgit v1.2.3