diff options
author | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-05 16:16:38 +0100 |
---|---|---|
committer | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-05 16:16:38 +0100 |
commit | 2ac21b63293a3e40ea5903fc2eed158353068611 (patch) | |
tree | e71fd803a077f8497d6f87e20e4538ad23785e61 /src/mint/mint_db.h | |
parent | 4494cf7b61a6cea7b6db667836259ab70d75637d (diff) | |
download | exchange-2ac21b63293a3e40ea5903fc2eed158353068611.tar.gz exchange-2ac21b63293a3e40ea5903fc2eed158353068611.tar.bz2 exchange-2ac21b63293a3e40ea5903fc2eed158353068611.zip |
Add DB_reserve_get() to get a summary of the reserve
Diffstat (limited to 'src/mint/mint_db.h')
-rw-r--r-- | src/mint/mint_db.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mint/mint_db.h b/src/mint/mint_db.h index b36823803..b80f750b0 100644 --- a/src/mint/mint_db.h +++ b/src/mint/mint_db.h @@ -169,6 +169,22 @@ struct CollectableBlindcoin }; +/** + * Get the summary of a reserve. + * + * @param db the database connection handle + * @param reserve_pub the public key identifying the reserve + * @param balance the amount existing in the reserve (will be filled) + * @param expiry expiration of the reserve (will be filled) + * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure + */ +int +TALER_MINT_DB_reserve_get (PGconn *db, + struct GNUNET_CRYPTO_EddsaPublicKey *reserve_pub, + struct TALER_Amount *balance, + struct GNUNET_TIME_Absolute *expiry); + + /* FIXME: need call to convert CollectableBlindcoin to JSON (#3527) */ |