diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-05-03 20:12:18 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-05-19 01:05:58 +0200 |
commit | a177098a4a6cd36a91a8ff87312e352b9e0bdeae (patch) | |
tree | c036725bb88aed5910c3af4e7eee834eb6617af9 /src/include/taler_exchange_service.h | |
parent | 3910cb74158fcd938c70d0c6ecafdef7e41d4b1a (diff) | |
download | exchange-a177098a4a6cd36a91a8ff87312e352b9e0bdeae.tar.gz exchange-a177098a4a6cd36a91a8ff87312e352b9e0bdeae.tar.bz2 exchange-a177098a4a6cd36a91a8ff87312e352b9e0bdeae.zip |
modify TALER_EXCHANGE_deposits_get() API to avoid NULL pointers and need for deep copies
Diffstat (limited to 'src/include/taler_exchange_service.h')
-rw-r--r-- | src/include/taler_exchange_service.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 320123041..f94b8253d 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -1691,22 +1691,22 @@ struct TALER_EXCHANGE_DepositData { /** - * exchange key used to sign, NULL if exchange did not + * exchange key used to sign, all zeros if exchange did not * yet execute the transaction */ - const struct TALER_ExchangePublicKeyP *exchange_pub; + struct TALER_ExchangePublicKeyP exchange_pub; /** - * signature from the exchange over the deposit data, NULL if exchange did not + * signature from the exchange over the deposit data, all zeros if exchange did not * yet execute the transaction */ - const struct TALER_ExchangeSignatureP *exchange_sig; + struct TALER_ExchangeSignatureP exchange_sig; /** - * wire transfer identifier used by the exchange, NULL if exchange did not + * wire transfer identifier used by the exchange, all zeros if exchange did not * yet execute the transaction */ - const struct TALER_WireTransferIdentifierRawP *wtid; + struct TALER_WireTransferIdentifierRawP wtid; /** * actual or planned execution time for the wire transfer @@ -1714,10 +1714,10 @@ struct TALER_EXCHANGE_DepositData struct GNUNET_TIME_Absolute execution_time; /** - * contribution to the total amount by this coin, NULL if exchange did not + * contribution to the total amount by this coin, all zeros if exchange did not * yet execute the transaction */ - const struct TALER_Amount *coin_contribution; + struct TALER_Amount coin_contribution; }; |