From c3cd21508b0900ee5437edb3828b4b7c2f359495 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Jul 2020 19:36:08 +0200 Subject: synchronize with latest GANA --- src/exchange/taler-exchange-httpd_db.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/exchange/taler-exchange-httpd_db.h') 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 @@ -26,6 +26,22 @@ #include +/** + * 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 -- cgit v1.2.3