diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-08 19:36:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-08 19:36:08 +0200 |
commit | c3cd21508b0900ee5437edb3828b4b7c2f359495 (patch) | |
tree | 04058188f8a2772e3ebdcdc7564de57322a019f5 /src/exchange/taler-exchange-httpd_db.h | |
parent | c93f64710674bb4f635288c5e326f2cf47b8e8c7 (diff) | |
download | exchange-c3cd21508b0900ee5437edb3828b4b7c2f359495.tar.gz exchange-c3cd21508b0900ee5437edb3828b4b7c2f359495.tar.bz2 exchange-c3cd21508b0900ee5437edb3828b4b7c2f359495.zip |
synchronize with latest GANA
Diffstat (limited to 'src/exchange/taler-exchange-httpd_db.h')
-rw-r--r-- | src/exchange/taler-exchange-httpd_db.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.h b/src/exchange/taler-exchange-httpd_db.h index e0948d029..bc127b275 100644 --- a/src/exchange/taler-exchange-httpd_db.h +++ b/src/exchange/taler-exchange-httpd_db.h @@ -27,6 +27,22 @@ /** + * Ensure coin is known in the database, and handle conflicts and errors. + * + * @param coin the coin to make known + * @param connection MHD request context + * @param session database session and transaction to use + * @param[out] mhd_ret set to MHD status on error + * @return transaction status, negative on error (@a mhd_ret will be set in this case) + */ +enum GNUNET_DB_QueryStatus +TEH_make_coin_known (const struct TALER_CoinPublicInfo *coin, + struct MHD_Connection *connection, + struct TALER_EXCHANGEDB_Session *session, + MHD_RESULT *mhd_ret); + + +/** * Function implementing a database transaction. Runs the transaction * logic; IF it returns a non-error code, the transaction logic MUST * NOT queue a MHD response. IF it returns an hard error, the |