From 544ba42f445cbff2f544d7e1c83aaffcfa75af3a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 21 Feb 2022 00:23:23 +0100 Subject: -big renaming of structs for consistent naming with P suffix --- src/exchangedb/irbt_callbacks.c | 4 +- src/exchangedb/plugin_exchangedb_postgres.c | 67 +++++++++++++++-------------- src/exchangedb/test_exchangedb.c | 39 +++++++++-------- 3 files changed, 56 insertions(+), 54 deletions(-) (limited to 'src/exchangedb') diff --git a/src/exchangedb/irbt_callbacks.c b/src/exchangedb/irbt_callbacks.c index 8cc4e2370..cf0549420 100644 --- a/src/exchangedb/irbt_callbacks.c +++ b/src/exchangedb/irbt_callbacks.c @@ -35,7 +35,7 @@ static enum GNUNET_DB_QueryStatus irbt_cb_table_denominations (struct PostgresClosure *pg, const struct TALER_EXCHANGEDB_TableData *td) { - struct TALER_DenominationHash denom_hash; + struct TALER_DenominationHashP denom_hash; struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&td->serial), GNUNET_PQ_query_param_auto_from_type (&denom_hash), @@ -109,7 +109,7 @@ static enum GNUNET_DB_QueryStatus irbt_cb_table_wire_targets (struct PostgresClosure *pg, const struct TALER_EXCHANGEDB_TableData *td) { - struct TALER_PaytoHash payto_hash; + struct TALER_PaytoHashP payto_hash; struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (&payto_hash), GNUNET_PQ_query_param_string ( diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 2ae01f0cb..b5bf71e50 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -3147,7 +3147,7 @@ postgres_insert_denomination_info ( static enum GNUNET_DB_QueryStatus postgres_get_denomination_info ( void *cls, - const struct TALER_DenominationHash *denom_pub_hash, + const struct TALER_DenominationHashP *denom_pub_hash, struct TALER_EXCHANGEDB_DenominationKeyInformationP *issue) { struct PostgresClosure *pg = cls; @@ -3377,7 +3377,7 @@ dominations_cb_helper (void *cls, struct TALER_EXCHANGEDB_DenominationKeyMetaData meta = {0}; struct TALER_DenominationPublicKey denom_pub = {0}; struct TALER_MasterSignatureP master_sig = {0}; - struct TALER_DenominationHash h_denom_pub = {0}; + struct TALER_DenominationHashP h_denom_pub = {0}; bool revoked; struct GNUNET_PQ_ResultSpec rs[] = { GNUNET_PQ_result_spec_auto_from_type ("master_sig", @@ -3702,7 +3702,7 @@ auditor_denoms_cb_helper (void *cls, for (unsigned int i = 0; ipub)); deadline = GNUNET_TIME_timestamp_get (); { - struct TALER_DenominationHash dph; + struct TALER_DenominationHashP dph; struct TALER_AgeCommitmentHash agh; FAILIF (TALER_EXCHANGEDB_CKS_ADDED != @@ -1597,7 +1598,7 @@ run (void *cls) = GNUNET_TIME_timestamp_get (); bool balance_ok; bool in_conflict; - struct TALER_PaytoHash h_payto; + struct TALER_PaytoHashP h_payto; RND_BLK (&h_payto); deposit.refund_deadline @@ -1779,9 +1780,9 @@ run (void *cls) tprivs, &tpub)); { - struct TALER_BlindedCoinHash h_coin_ev; + struct TALER_BlindedCoinHashP h_coin_ev; struct TALER_CoinSpendPublicKeyP ocp; - struct TALER_DenominationHash denom_hash; + struct TALER_DenominationHashP denom_hash; TALER_denom_pub_hash (&new_denom_pubs[0], &denom_hash); @@ -1829,7 +1830,7 @@ run (void *cls) union TALER_DenominationBlindingKeyP coin_bks; uint64_t new_known_coin_id; struct TALER_CoinPublicInfo new_coin; - struct TALER_DenominationHash dph; + struct TALER_DenominationHashP dph; struct TALER_AgeCommitmentHash agh; bool recoup_ok; bool internal_failure; @@ -2183,7 +2184,7 @@ run (void *cls) result = 8; { uint64_t known_coin_id; - struct TALER_DenominationHash dph; + struct TALER_DenominationHashP dph; struct TALER_AgeCommitmentHash agh; FAILIF (TALER_EXCHANGEDB_CKS_ADDED != @@ -2197,7 +2198,7 @@ run (void *cls) struct GNUNET_TIME_Timestamp now; struct GNUNET_TIME_Timestamp r; struct TALER_Amount deposit_fee; - struct TALER_MerchantWireHash h_wire; + struct TALER_MerchantWireHashP h_wire; now = GNUNET_TIME_timestamp_get (); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != @@ -2301,7 +2302,7 @@ run (void *cls) "test-2")); RND_BLK (&deposit2.merchant_pub); /* should fail if merchant is different */ { - struct TALER_MerchantWireHash h_wire; + struct TALER_MerchantWireHashP h_wire; struct GNUNET_TIME_Timestamp r; struct TALER_Amount deposit_fee; -- cgit v1.2.3