diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-19 21:04:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-19 21:04:58 +0100 |
commit | a1f20a92a0578e63b2b5d764ac802dbe45ab08e0 (patch) | |
tree | 4c07a81b40a2eac0ce1b412d7c3a3376a27ef533 /src/mint/mint_db.h | |
parent | 3553e60733e4ad2c71a3daa4148182443958dd04 (diff) | |
download | exchange-a1f20a92a0578e63b2b5d764ac802dbe45ab08e0.tar.xz |
restructuring more of deposit logic towards desired flow structure
Diffstat (limited to 'src/mint/mint_db.h')
-rw-r--r-- | src/mint/mint_db.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/mint/mint_db.h b/src/mint/mint_db.h index eb7a105cb..5fab7c02a 100644 --- a/src/mint/mint_db.h +++ b/src/mint/mint_db.h @@ -24,10 +24,11 @@ #define _NEURO_MINT_DB_H #include <libpq-fe.h> +#include <microhttpd.h> #include <gnunet/gnunet_util_lib.h> #include "taler_util.h" #include "taler_rsa.h" - +#include "taler-mint-httpd_db.h" /** * Public information about a coin. @@ -172,26 +173,6 @@ struct KnownCoin struct GNUNET_CRYPTO_EddsaPublicKey refresh_session_pub; }; -GNUNET_NETWORK_STRUCT_BEGIN - -struct Deposit -{ - /* FIXME: should be TALER_CoinPublicInfo */ - struct GNUNET_CRYPTO_EddsaPublicKey coin_pub; - struct TALER_RSA_PublicKeyBinaryEncoded denom_pub; - struct TALER_RSA_Signature coin_sig; - struct TALER_RSA_SignaturePurpose purpose; - uint64_t transaction_id; - struct TALER_AmountNBO amount; - struct GNUNET_CRYPTO_EddsaPublicKey merchant_pub; - struct GNUNET_HashCode h_contract; - struct GNUNET_HashCode h_wire; - /* TODO: uint16_t wire_size */ - char wire[]; /* string encoded wire JSON object */ -}; - -GNUNET_NETWORK_STRUCT_END - int TALER_MINT_DB_prepare (PGconn *db_conn); @@ -350,7 +331,6 @@ TALER_MINT_DB_insert_known_coin (PGconn *db_conn, const struct KnownCoin *known_coin); - /** * Get the thread-local database-handle. * Connect to the db if the connection does not exist yet. |