diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-21 00:23:23 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-21 00:23:23 +0100 |
commit | 544ba42f445cbff2f544d7e1c83aaffcfa75af3a (patch) | |
tree | f942bcc479657e794b01c94c796013aa58098781 /src/auditordb | |
parent | 19624fd776f28812354f7e2b50b26e984ff077ab (diff) | |
download | exchange-544ba42f445cbff2f544d7e1c83aaffcfa75af3a.tar.gz exchange-544ba42f445cbff2f544d7e1c83aaffcfa75af3a.tar.bz2 exchange-544ba42f445cbff2f544d7e1c83aaffcfa75af3a.zip |
-big renaming of structs for consistent naming with P suffix
Diffstat (limited to 'src/auditordb')
-rw-r--r-- | src/auditordb/plugin_auditordb_postgres.c | 24 | ||||
-rw-r--r-- | src/auditordb/test_auditordb.c | 6 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c index ef5f0073d..6cee2b23a 100644 --- a/src/auditordb/plugin_auditordb_postgres.c +++ b/src/auditordb/plugin_auditordb_postgres.c @@ -2163,7 +2163,7 @@ postgres_get_wire_fee_summary (void *cls, static enum GNUNET_DB_QueryStatus postgres_insert_denomination_balance ( void *cls, - const struct TALER_DenominationHash *denom_pub_hash, + const struct TALER_DenominationHashP *denom_pub_hash, const struct TALER_Amount *denom_balance, const struct TALER_Amount *denom_loss, const struct TALER_Amount *denom_risk, @@ -2203,7 +2203,7 @@ postgres_insert_denomination_balance ( static enum GNUNET_DB_QueryStatus postgres_update_denomination_balance ( void *cls, - const struct TALER_DenominationHash *denom_pub_hash, + const struct TALER_DenominationHashP *denom_pub_hash, const struct TALER_Amount *denom_balance, const struct TALER_Amount *denom_loss, const struct TALER_Amount *denom_risk, @@ -2240,14 +2240,14 @@ postgres_update_denomination_balance ( * @return transaction status code */ static enum GNUNET_DB_QueryStatus -postgres_get_denomination_balance (void *cls, - const struct - TALER_DenominationHash *denom_pub_hash, - struct TALER_Amount *denom_balance, - struct TALER_Amount *denom_loss, - struct TALER_Amount *denom_risk, - struct TALER_Amount *recoup_loss, - uint64_t *num_issued) +postgres_get_denomination_balance ( + void *cls, + const struct TALER_DenominationHashP *denom_pub_hash, + struct TALER_Amount *denom_balance, + struct TALER_Amount *denom_loss, + struct TALER_Amount *denom_risk, + struct TALER_Amount *recoup_loss, + uint64_t *num_issued) { struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { @@ -2439,7 +2439,7 @@ static enum GNUNET_DB_QueryStatus postgres_insert_historic_denom_revenue ( void *cls, const struct TALER_MasterPublicKeyP *master_pub, - const struct TALER_DenominationHash *denom_pub_hash, + const struct TALER_DenominationHashP *denom_pub_hash, struct GNUNET_TIME_Timestamp revenue_timestamp, const struct TALER_Amount *revenue_balance, const struct TALER_Amount *loss_balance) @@ -2506,7 +2506,7 @@ historic_denom_revenue_cb (void *cls, for (unsigned int i = 0; i < num_results; i++) { - struct TALER_DenominationHash denom_pub_hash; + struct TALER_DenominationHashP denom_pub_hash; struct GNUNET_TIME_Timestamp revenue_timestamp; struct TALER_Amount revenue_balance; struct TALER_Amount loss; diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c index f8faa0694..80eeeca94 100644 --- a/src/auditordb/test_auditordb.c +++ b/src/auditordb/test_auditordb.c @@ -130,10 +130,10 @@ run (void *cls) struct TALER_MasterPublicKeyP master_pub; struct TALER_ReservePublicKeyP reserve_pub; - struct TALER_DenominationHash rnd_hash; + struct TALER_DenominationHashP rnd_hash; struct TALER_DenominationPrivateKey denom_priv; struct TALER_DenominationPublicKey denom_pub; - struct TALER_DenominationHash denom_pub_hash; + struct TALER_DenominationHashP denom_pub_hash; struct GNUNET_TIME_Timestamp now; struct GNUNET_TIME_Timestamp past; struct GNUNET_TIME_Timestamp future; @@ -488,7 +488,7 @@ run (void *cls) int select_historic_denom_revenue_result ( void *cls, - const struct TALER_DenominationHash *denom_pub_hash2, + const struct TALER_DenominationHashP *denom_pub_hash2, struct GNUNET_TIME_Timestamp revenue_timestamp2, const struct TALER_Amount *revenue_balance2, const struct TALER_Amount *loss2) |