diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-21 13:31:05 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-21 13:31:05 +0100 |
commit | 4d8f4903db35e9ef6492864c018238e89033ccc7 (patch) | |
tree | 2662fd893cf74445f37f56976085b66ad0dab48c /src/mint/taler-mint-httpd_db.h | |
parent | 82217f67db5fc0520cd40225be897260aacba933 (diff) |
properly separate DB logic from parsing logic for /refresh/commit
Diffstat (limited to 'src/mint/taler-mint-httpd_db.h')
-rw-r--r-- | src/mint/taler-mint-httpd_db.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_db.h b/src/mint/taler-mint-httpd_db.h index ce2488be5..307400b47 100644 --- a/src/mint/taler-mint-httpd_db.h +++ b/src/mint/taler-mint-httpd_db.h @@ -91,4 +91,23 @@ TALER_MINT_db_execute_refresh_melt (struct MHD_Connection *connection, const struct TALER_CoinPublicInfo *coin_public_infos); +/** + * Execute a /refresh/commit. + * + * @param connection the MHD connection to handle + * @param kappa size of x-dimension of @commit_coin and @commit_link arrays + * @param num_oldcoins size of y-dimension of @commit_coin and @commit_link arrays + * @param num_newcoins size of y-dimension of @commit_coin and @commit_link arrays + * @return MHD result code + */ +int +TALER_MINT_db_execute_refresh_commit (struct MHD_Connection *connection, + const struct GNUNET_CRYPTO_EddsaPublicKey *refresh_session_pub, + unsigned int kappa, + unsigned int num_oldcoins, + unsigned int num_newcoins, + struct RefreshCommitCoin *const* commit_coin, + struct RefreshCommitLink *const* commit_link); + + #endif /* _NEURO_MINT_DB_H */ |