exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 78bc617bd1d0b969d56dbc265806692b538014ef
parent faccf0ed120cdf589e29a7022b502c22756d54e5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 13 Apr 2026 19:20:34 +0200

fix symbol names

Diffstat:
Mmeson.build | 1-
Msrc/auditor/meson.build | 2+-
Msrc/auditor/report-lib.c | 14+++++++-------
Msrc/auditor/report-lib.h | 2+-
Msrc/auditor/taler-auditor-dbinit.c | 18+++++++++---------
Msrc/auditor/taler-auditor-httpd.c | 2+-
Msrc/auditor/taler-auditor-httpd.h | 2+-
Msrc/auditor/taler-auditor-httpd_delete-generic.c | 8++++----
Msrc/auditor/taler-auditor-httpd_get-monitoring-amount-arithmetic-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-bad-sig-losses.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-balances.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-closure-lags.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-coin-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-denomination-key-validity-withdraw-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-denomination-pending.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-denominations-without-sigs.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-deposit-confirmations.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-early-aggregation.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-emergency-by-count.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-emergency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-fee-time-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-historic-denomination-revenue.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-historic-reserve-summary.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-misattribution-in-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-pending-deposits.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-progress.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-purse-not-closed-inconsistencies.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-purses.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-reserve-balance-insufficient-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-reserve-balance-summary-wrong-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-reserve-in-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-reserve-not-closed-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-reserves.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-row-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-row-minor-inconsistencies.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-wire-format-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_get-monitoring-wire-out-inconsistency.c | 4++--
Msrc/auditor/taler-auditor-httpd_patch-generic-suppressed.c | 10+++++-----
Msrc/auditor/taler-auditor-httpd_put-deposit-confirmation.c | 10+++++-----
Msrc/auditor/taler-helper-auditor-aggregation.c | 40++++++++++++++++++++--------------------
Msrc/auditor/taler-helper-auditor-coins.c | 76++++++++++++++++++++++++++++++++++++++--------------------------------------
Msrc/auditor/taler-helper-auditor-deposits.c | 32++++++++++++++++----------------
Msrc/auditor/taler-helper-auditor-purses.c | 68++++++++++++++++++++++++++++++++++----------------------------------
Msrc/auditor/taler-helper-auditor-reserves.c | 96++++++++++++++++++++++++++++++++++++++++---------------------------------------
Msrc/auditor/taler-helper-auditor-transfer.c | 42+++++++++++++++++++++---------------------
Msrc/auditor/taler-helper-auditor-wire-credit.c | 52++++++++++++++++++++++++++--------------------------
Msrc/auditor/taler-helper-auditor-wire-debit.c | 64++++++++++++++++++++++++++++++++--------------------------------
Msrc/auditordb/create_tables.c | 2+-
Msrc/auditordb/del_denomination_balance.c | 7++++---
Msrc/auditordb/del_reserve_info.c | 5+++--
Msrc/auditordb/delete_auditor_closure_lag.c | 13++++++++-----
Msrc/auditordb/delete_early_aggregation.c | 5+++--
Msrc/auditordb/delete_generic.c | 14++++++++------
Msrc/auditordb/delete_pending_deposit.c | 5+++--
Msrc/auditordb/delete_purse_info.c | 6+++---
Msrc/auditordb/delete_reserve_in_inconsistency.c | 8+++++---
Msrc/auditordb/delete_wire_out_inconsistency_if_matching.c | 13+++++++------
Msrc/auditordb/drop_tables.c | 6+++---
Msrc/auditordb/event_listen.c | 12++++++------
Msrc/auditordb/event_notify.c | 8++++----
Msrc/auditordb/gc.c | 2+-
Msrc/auditordb/get_amount_arithmetic_inconsistency.c | 10+++++-----
Msrc/auditordb/get_auditor_closure_lags.c | 10+++++-----
Msrc/auditordb/get_auditor_progress.c | 8++++----
Msrc/auditordb/get_bad_sig_losses.c | 10+++++-----
Msrc/auditordb/get_balance.c | 10+++++-----
Msrc/auditordb/get_balances.c | 10+++++-----
Msrc/auditordb/get_coin_inconsistency.c | 10+++++-----
Msrc/auditordb/get_denomination_balance.c | 4++--
Msrc/auditordb/get_denomination_key_validity_withdraw_inconsistency.c | 8++++----
Msrc/auditordb/get_denomination_pending.c | 10+++++-----
Msrc/auditordb/get_denominations_without_sigs.c | 10+++++-----
Msrc/auditordb/get_deposit_confirmations.c | 10+++++-----
Msrc/auditordb/get_emergency.c | 18+++++++++---------
Msrc/auditordb/get_emergency_by_count.c | 20+++++++++++---------
Msrc/auditordb/get_exchange_signkeys.c | 20+++++++++++---------
Msrc/auditordb/get_fee_time_inconsistency.c | 8++++----
Msrc/auditordb/get_misattribution_in_inconsistency.c | 23++++++++++++-----------
Msrc/auditordb/get_progress_points.c | 8++++----
Msrc/auditordb/get_purse_info.c | 4++--
Msrc/auditordb/get_purse_not_closed_inconsistencies.c | 23++++++++++++-----------
Msrc/auditordb/get_purses.c | 16++++++++--------
Msrc/auditordb/get_reserve_balance_insufficient_inconsistency.c | 27++++++++++++++-------------
Msrc/auditordb/get_reserve_balance_summary_wrong_inconsistency.c | 27++++++++++++++-------------
Msrc/auditordb/get_reserve_in_inconsistency.c | 22++++++++++++----------
Msrc/auditordb/get_reserve_info.c | 4++--
Msrc/auditordb/get_reserve_not_closed_inconsistency.c | 23++++++++++++-----------
Msrc/auditordb/get_reserves.c | 16++++++++--------
Msrc/auditordb/get_row_inconsistency.c | 8++++----
Msrc/auditordb/get_row_minor_inconsistencies.c | 8++++----
Msrc/auditordb/get_wire_fee_summary.c | 4++--
Msrc/auditordb/get_wire_format_inconsistency.c | 22++++++++++++----------
Msrc/auditordb/get_wire_out_inconsistency.c | 10+++++-----
Msrc/auditordb/helper.c | 2+-
Msrc/auditordb/insert_amount_arithmetic_inconsistency.c | 13+++++++------
Msrc/auditordb/insert_auditor_closure_lags.c | 8+++++---
Msrc/auditordb/insert_auditor_progress.c | 9+++++----
Msrc/auditordb/insert_bad_sig_losses.c | 6++++--
Msrc/auditordb/insert_balance.c | 8++++----
Msrc/auditordb/insert_coin_inconsistency.c | 8+++++---
Msrc/auditordb/insert_denomination_balance.c | 15+++++++++------
Msrc/auditordb/insert_denomination_key_validity_withdraw_inconsistency.c | 13+++++++------
Msrc/auditordb/insert_denomination_pending.c | 9++++++---
Msrc/auditordb/insert_denominations_without_sigs.c | 12+++++++-----
Msrc/auditordb/insert_deposit_confirmation.c | 9++++++---
Msrc/auditordb/insert_early_aggregation.c | 10++++++----
Msrc/auditordb/insert_emergency.c | 4++--
Msrc/auditordb/insert_emergency_by_count.c | 8+++++---
Msrc/auditordb/insert_exchange_signkey.c | 7++++---
Msrc/auditordb/insert_fee_time_inconsistency.c | 11+++++++----
Msrc/auditordb/insert_historic_denom_revenue.c | 22+++++++++++++---------
Msrc/auditordb/insert_historic_reserve_revenue.c | 19+++++++++++--------
Msrc/auditordb/insert_misattribution_in_inconsistency.c | 13+++++++------
Msrc/auditordb/insert_pending_deposit.c | 13+++++++------
Msrc/auditordb/insert_purse_info.c | 10+++++-----
Msrc/auditordb/insert_purse_not_closed_inconsistencies.c | 13+++++++------
Msrc/auditordb/insert_reserve_balance_insufficient_inconsistency.c | 12++++++------
Msrc/auditordb/insert_reserve_balance_summary_wrong_inconsistency.c | 12++++++------
Msrc/auditordb/insert_reserve_in_inconsistency.c | 12+++++++-----
Msrc/auditordb/insert_reserve_info.c | 18+++++++++++-------
Msrc/auditordb/insert_reserve_not_closed_inconsistency.c | 13+++++++------
Msrc/auditordb/insert_row_inconsistency.c | 7++++---
Msrc/auditordb/insert_row_minor_inconsistencies.c | 12+++++++-----
Msrc/auditordb/insert_wire_format_inconsistency.c | 12+++++++-----
Msrc/auditordb/insert_wire_out_inconsistency.c | 11+++++++----
Msrc/auditordb/lookup_reserve_in_inconsistency.c | 4++--
Msrc/auditordb/pg.c | 8++++----
Msrc/auditordb/pg_helper.h | 6+++---
Msrc/auditordb/preflight.c | 4++--
Msrc/auditordb/select_early_aggregations.c | 21+++++++++++----------
Msrc/auditordb/select_historic_denom_revenue.c | 10+++++-----
Msrc/auditordb/select_historic_reserve_revenue.c | 10+++++-----
Msrc/auditordb/select_pending_deposits.c | 21+++++++++++----------
Msrc/auditordb/select_purse_expired.c | 13+++++++------
Msrc/auditordb/select_reserve_in_inconsistency.c | 4++--
Msrc/auditordb/start.c | 8++++----
Msrc/auditordb/test_auditordb.c | 138++++++++++++++++++++++++++++++++++++++++----------------------------------------
Msrc/auditordb/test_auditordb_checkpoints.c | 150++++++++++++++++++++++++++++++++++++++++----------------------------------------
Msrc/auditordb/update_auditor_progress.c | 9+++++----
Msrc/auditordb/update_balance.c | 8++++----
Msrc/auditordb/update_denomination_balance.c | 15+++++++++------
Msrc/auditordb/update_generic_suppressed.c | 18++++++++++--------
Msrc/auditordb/update_purse_info.c | 8++++----
Msrc/auditordb/update_reserve_info.c | 15+++++++++------
Msrc/auditordb/update_wire_fee_summary.c | 6++++--
Msrc/include/auditor-database/create_tables.h | 6+++---
Msrc/include/auditor-database/del_denomination_balance.h | 7++++---
Msrc/include/auditor-database/del_reserve_info.h | 5+++--
Msrc/include/auditor-database/delete_auditor_closure_lag.h | 13++++++++-----
Msrc/include/auditor-database/delete_early_aggregation.h | 5+++--
Msrc/include/auditor-database/delete_generic.h | 9+++++----
Msrc/include/auditor-database/delete_pending_deposit.h | 5+++--
Msrc/include/auditor-database/delete_purse_info.h | 6+++---
Msrc/include/auditor-database/delete_reserve_in_inconsistency.h | 6++++--
Msrc/include/auditor-database/delete_wire_out_inconsistency_if_matching.h | 13+++++++------
Msrc/include/auditor-database/drop_tables.h | 6+++---
Msrc/include/auditor-database/event_listen.h | 12++++++------
Msrc/include/auditor-database/event_notify.h | 8++++----
Msrc/include/auditor-database/gc.h | 2+-
Msrc/include/auditor-database/get_amount_arithmetic_inconsistency.h | 17+++++++++--------
Msrc/include/auditor-database/get_auditor_closure_lags.h | 14++++++++------
Msrc/include/auditor-database/get_auditor_progress.h | 9+++++----
Msrc/include/auditor-database/get_bad_sig_losses.h | 18+++++++++---------
Msrc/include/auditor-database/get_balance.h | 8++++----
Msrc/include/auditor-database/get_balances.h | 8++++----
Msrc/include/auditor-database/get_coin_inconsistency.h | 14++++++++------
Msrc/include/auditor-database/get_denomination_balance.h | 13+++++++------
Msrc/include/auditor-database/get_denomination_key_validity_withdraw_inconsistency.h | 23+++++++++++++----------
Msrc/include/auditor-database/get_denomination_pending.h | 13+++++++------
Msrc/include/auditor-database/get_denominations_without_sigs.h | 16+++++++++-------
Msrc/include/auditor-database/get_deposit_confirmations.h | 4++--
Msrc/include/auditor-database/get_emergency.h | 12++++++------
Msrc/include/auditor-database/get_emergency_by_count.h | 14++++++++------
Msrc/include/auditor-database/get_exchange_signkeys.h | 14++++++++------
Msrc/include/auditor-database/get_fee_time_inconsistency.h | 15++++++++-------
Msrc/include/auditor-database/get_misattribution_in_inconsistency.h | 17+++++++++--------
Msrc/include/auditor-database/get_progress_points.h | 8++++----
Msrc/include/auditor-database/get_purse_info.h | 11++++++-----
Msrc/include/auditor-database/get_purse_not_closed_inconsistencies.h | 17+++++++++--------
Msrc/include/auditor-database/get_purses.h | 10+++++-----
Msrc/include/auditor-database/get_reserve_balance_insufficient_inconsistency.h | 21+++++++++++----------
Msrc/include/auditor-database/get_reserve_balance_summary_wrong_inconsistency.h | 21+++++++++++----------
Msrc/include/auditor-database/get_reserve_in_inconsistency.h | 16+++++++++-------
Msrc/include/auditor-database/get_reserve_info.h | 13+++++++------
Msrc/include/auditor-database/get_reserve_not_closed_inconsistency.h | 17+++++++++--------
Msrc/include/auditor-database/get_reserves.h | 10+++++-----
Msrc/include/auditor-database/get_row_inconsistency.h | 14++++++++------
Msrc/include/auditor-database/get_row_minor_inconsistencies.h | 16+++++++++-------
Msrc/include/auditor-database/get_wire_fee_summary.h | 5+++--
Msrc/include/auditor-database/get_wire_format_inconsistency.h | 16+++++++++-------
Msrc/include/auditor-database/get_wire_out_inconsistency.h | 15++++++++-------
Msrc/include/auditor-database/insert_amount_arithmetic_inconsistency.h | 11++++++-----
Msrc/include/auditor-database/insert_auditor_closure_lags.h | 8+++++---
Msrc/include/auditor-database/insert_auditor_progress.h | 9+++++----
Msrc/include/auditor-database/insert_bad_sig_losses.h | 6++++--
Msrc/include/auditor-database/insert_balance.h | 8++++----
Msrc/include/auditor-database/insert_coin_inconsistency.h | 8+++++---
Msrc/include/auditor-database/insert_denomination_balance.h | 15+++++++++------
Msrc/include/auditor-database/insert_denomination_key_validity_withdraw_inconsistency.h | 13+++++++------
Msrc/include/auditor-database/insert_denomination_pending.h | 9++++++---
Msrc/include/auditor-database/insert_denominations_without_sigs.h | 12+++++++-----
Msrc/include/auditor-database/insert_deposit_confirmation.h | 9++++++---
Msrc/include/auditor-database/insert_early_aggregation.h | 10++++++----
Msrc/include/auditor-database/insert_emergency.h | 4++--
Msrc/include/auditor-database/insert_emergency_by_count.h | 8+++++---
Msrc/include/auditor-database/insert_exchange_signkey.h | 8+++++---
Msrc/include/auditor-database/insert_fee_time_inconsistency.h | 11+++++++----
Msrc/include/auditor-database/insert_historic_denom_revenue.h | 22+++++++++++++---------
Msrc/include/auditor-database/insert_historic_reserve_revenue.h | 17++++++++++-------
Msrc/include/auditor-database/insert_misattribution_in_inconsistency.h | 11++++++-----
Msrc/include/auditor-database/insert_pending_deposit.h | 13+++++++------
Msrc/include/auditor-database/insert_purse_info.h | 11++++++-----
Msrc/include/auditor-database/insert_purse_not_closed_inconsistencies.h | 13+++++++------
Msrc/include/auditor-database/insert_reserve_balance_insufficient_inconsistency.h | 12++++++------
Msrc/include/auditor-database/insert_reserve_balance_summary_wrong_inconsistency.h | 12++++++------
Msrc/include/auditor-database/insert_reserve_in_inconsistency.h | 10++++++----
Msrc/include/auditor-database/insert_reserve_info.h | 18+++++++++++-------
Msrc/include/auditor-database/insert_reserve_not_closed_inconsistency.h | 13+++++++------
Msrc/include/auditor-database/insert_row_inconsistency.h | 7++++---
Msrc/include/auditor-database/insert_row_minor_inconsistencies.h | 12+++++++-----
Msrc/include/auditor-database/insert_wire_format_inconsistency.h | 12+++++++-----
Msrc/include/auditor-database/insert_wire_out_inconsistency.h | 11+++++++----
Msrc/include/auditor-database/lookup_reserve_in_inconsistency.h | 12+++++++-----
Msrc/include/auditor-database/preflight.h | 2+-
Msrc/include/auditor-database/select_early_aggregations.h | 4++--
Msrc/include/auditor-database/select_historic_denom_revenue.h | 14++++++++------
Msrc/include/auditor-database/select_historic_reserve_revenue.h | 14++++++++------
Msrc/include/auditor-database/select_pending_deposits.h | 15++++++++-------
Msrc/include/auditor-database/select_purse_expired.h | 7++++---
Msrc/include/auditor-database/select_reserve_in_inconsistency.h | 12+++++++-----
Msrc/include/auditor-database/start.h | 6+++---
Msrc/include/auditor-database/update_auditor_progress.h | 9+++++----
Msrc/include/auditor-database/update_balance.h | 8++++----
Msrc/include/auditor-database/update_denomination_balance.h | 15+++++++++------
Msrc/include/auditor-database/update_generic_suppressed.h | 13+++++++------
Msrc/include/auditor-database/update_purse_info.h | 8++++----
Msrc/include/auditor-database/update_reserve_info.h | 15+++++++++------
Msrc/include/auditor-database/update_wire_fee_summary.h | 6++++--
Msrc/include/taler/taler_auditordb_lib.h | 6+++---
Msrc/meson.build | 4+---
240 files changed, 1638 insertions(+), 1426 deletions(-)

diff --git a/meson.build b/meson.build @@ -380,4 +380,3 @@ run_target( env: {'PACKAGE_VERSION': meson.project_version()}, ) #meson.add_dist_script('meson-dist-script') - diff --git a/src/auditor/meson.build b/src/auditor/meson.build @@ -30,9 +30,9 @@ executable( 'taler-auditor-dbinit', ['taler-auditor-dbinit.c'], dependencies: [ + libtalerauditordb_dep, libtalerutil_dep, libtalerpq_dep, - libtalerauditordb_dep, gnunetutil_dep, gcrypt_dep, ], diff --git a/src/auditor/report-lib.c b/src/auditor/report-lib.c @@ -52,7 +52,7 @@ const struct GNUNET_CONFIGURATION_Handle *TALER_ARL_cfg; /** * Handle to access the auditor's database. */ -struct AUDITORDB_PostgresContext *TALER_ARL_adb; +struct TALER_AUDITORDB_PostgresContext *TALER_ARL_adb; /** * Master public key of the exchange to audit. @@ -370,7 +370,7 @@ transact (TALER_ARL_Analysis analysis, int ret; enum GNUNET_DB_QueryStatus qs; - ret = AUDITORDB_start (TALER_ARL_adb); + ret = TALER_AUDITORDB_start (TALER_ARL_adb); if (GNUNET_OK != ret) { GNUNET_break (0); @@ -399,11 +399,11 @@ transact (TALER_ARL_Analysis analysis, GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Exchange DB commit failed, rolling back transaction\n"); - AUDITORDB_rollback (TALER_ARL_adb); + TALER_AUDITORDB_rollback (TALER_ARL_adb); } else { - qs = AUDITORDB_commit (TALER_ARL_adb); + qs = TALER_AUDITORDB_commit (TALER_ARL_adb); if (0 > qs) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); @@ -416,7 +416,7 @@ transact (TALER_ARL_Analysis analysis, { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Processing failed; rolling back transaction\n"); - AUDITORDB_rollback (TALER_ARL_adb); + TALER_AUDITORDB_rollback (TALER_ARL_adb); TALER_EXCHANGEDB_rollback (TALER_ARL_edb); } switch (qs) @@ -448,7 +448,7 @@ TALER_ARL_setup_sessions_and_run (TALER_ARL_Analysis ana, return GNUNET_SYSERR; } if (GNUNET_SYSERR == - AUDITORDB_preflight (TALER_ARL_adb)) + TALER_AUDITORDB_preflight (TALER_ARL_adb)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to initialize auditor session.\n"); @@ -786,7 +786,7 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle *c) return GNUNET_SYSERR; } if (GNUNET_SYSERR == - AUDITORDB_preflight (TALER_ARL_adb)) + TALER_AUDITORDB_preflight (TALER_ARL_adb)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to start session with auditor database.\n"); diff --git a/src/auditor/report-lib.h b/src/auditor/report-lib.h @@ -103,7 +103,7 @@ extern const struct GNUNET_CONFIGURATION_Handle *TALER_ARL_cfg; /** * Handle to access the auditor's database. */ -extern struct AUDITORDB_PostgresContext *TALER_ARL_adb; +extern struct TALER_AUDITORDB_PostgresContext *TALER_ARL_adb; /** * Master public key of the exchange to audit. diff --git a/src/auditor/taler-auditor-dbinit.c b/src/auditor/taler-auditor-dbinit.c @@ -63,7 +63,7 @@ run (void *cls, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) { - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; (void) cls; (void) args; @@ -80,23 +80,23 @@ run (void *cls, if (reset_db) { if (GNUNET_OK != - AUDITORDB_drop_tables (pg, - GNUNET_YES)) + TALER_AUDITORDB_drop_tables (pg, + GNUNET_YES)) GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to reset database\n"); } else if (restart_db) { if (GNUNET_OK != - AUDITORDB_drop_tables (pg, - GNUNET_NO)) + TALER_AUDITORDB_drop_tables (pg, + GNUNET_NO)) GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to restart audits\n"); } if (GNUNET_OK != - AUDITORDB_create_tables (cfg, - false, - 0)) + TALER_AUDITORDB_create_tables (cfg, + false, + 0)) { fprintf (stderr, "Failed to initialize database.\n"); @@ -106,7 +106,7 @@ run (void *cls, } if (gc_db) { - if (GNUNET_SYSERR == AUDITORDB_gc (pg)) + if (GNUNET_SYSERR == TALER_AUDITORDB_gc (pg)) fprintf (stderr, "Garbage collection failed!\n"); } diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c @@ -109,7 +109,7 @@ static const struct GNUNET_CONFIGURATION_Handle *cfg; /** * Our auditor database context. */ -struct AUDITORDB_PostgresContext *TAH_apg; +struct TALER_AUDITORDB_PostgresContext *TAH_apg; /** * Our exchange database context. diff --git a/src/auditor/taler-auditor-httpd.h b/src/auditor/taler-auditor-httpd.h @@ -31,7 +31,7 @@ /** * Our auditor database context. */ -extern struct AUDITORDB_PostgresContext *TAH_apg; +extern struct TALER_AUDITORDB_PostgresContext *TAH_apg; /** * Our exchange database context. diff --git a/src/auditor/taler-auditor-httpd_delete-generic.c b/src/auditor/taler-auditor-httpd_delete-generic.c @@ -41,7 +41,7 @@ TAH_delete_generic ( (void) connection_cls; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -64,9 +64,9 @@ TAH_delete_generic ( } /* execute transaction */ - qs = AUDITORDB_delete_generic (TAH_apg, - rh->table, - row_id); + qs = TALER_AUDITORDB_delete_generic (TAH_apg, + rh->table, + row_id); switch (qs) { case GNUNET_DB_STATUS_HARD_ERROR: diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-amount-arithmetic-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-amount-arithmetic-inconsistency.c @@ -84,7 +84,7 @@ TAH_get_monitoring_amount_arithmetic_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -118,7 +118,7 @@ TAH_get_monitoring_amount_arithmetic_inconsistency ( } } - qs = AUDITORDB_get_amount_arithmetic_inconsistency ( + qs = TALER_AUDITORDB_get_amount_arithmetic_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-bad-sig-losses.c b/src/auditor/taler-auditor-httpd_get-monitoring-bad-sig-losses.c @@ -85,7 +85,7 @@ TAH_get_monitoring_bad_sig_losses ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -122,7 +122,7 @@ TAH_get_monitoring_bad_sig_losses ( filter_spec_pub); ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_bad_sig_losses ( + qs = TALER_AUDITORDB_get_bad_sig_losses ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-balances.c b/src/auditor/taler-auditor-httpd_get-monitoring-balances.c @@ -71,7 +71,7 @@ TAH_get_monitoring_balances ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -85,7 +85,7 @@ TAH_get_monitoring_balances ( "balance_key"); ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_balances ( + qs = TALER_AUDITORDB_get_balances ( TAH_apg, balance_key, &process_balances, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-closure-lags.c b/src/auditor/taler-auditor-httpd_get-monitoring-closure-lags.c @@ -82,7 +82,7 @@ TAH_get_monitoring_closure_lags ( bool return_suppressed = false; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -112,7 +112,7 @@ TAH_get_monitoring_closure_lags ( } ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_auditor_closure_lags ( + qs = TALER_AUDITORDB_get_auditor_closure_lags ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-coin-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-coin-inconsistency.c @@ -73,7 +73,7 @@ TAH_get_monitoring_coin_inconsistency ( bool return_suppressed = false; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -102,7 +102,7 @@ TAH_get_monitoring_coin_inconsistency ( } ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_coin_inconsistency ( + qs = TALER_AUDITORDB_get_coin_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-denomination-key-validity-withdraw-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-denomination-key-validity-withdraw-inconsistency.c @@ -85,7 +85,7 @@ TAH_get_monitoring_denomination_key_validity_withdraw_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -115,7 +115,7 @@ TAH_get_monitoring_denomination_key_validity_withdraw_inconsistency ( } ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_denomination_key_validity_withdraw_inconsistency ( + qs = TALER_AUDITORDB_get_denomination_key_validity_withdraw_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-denomination-pending.c b/src/auditor/taler-auditor-httpd_get-monitoring-denomination-pending.c @@ -82,7 +82,7 @@ TAH_get_monitoring_denomination_pending ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -102,7 +102,7 @@ TAH_get_monitoring_denomination_pending ( &offset); ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_denomination_pending ( + qs = TALER_AUDITORDB_get_denomination_pending ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-denominations-without-sigs.c b/src/auditor/taler-auditor-httpd_get-monitoring-denominations-without-sigs.c @@ -82,7 +82,7 @@ TAH_get_monitoring_denominations_without_sigs ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -112,7 +112,7 @@ TAH_get_monitoring_denominations_without_sigs ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_denominations_without_sigs ( + qs = TALER_AUDITORDB_get_denominations_without_sigs ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-deposit-confirmations.c b/src/auditor/taler-auditor-httpd_get-monitoring-deposit-confirmations.c @@ -125,7 +125,7 @@ TAH_get_monitoring_deposit_confirmations ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -156,7 +156,7 @@ TAH_get_monitoring_deposit_confirmations ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_deposit_confirmations ( + qs = TALER_AUDITORDB_get_deposit_confirmations ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-early-aggregation.c b/src/auditor/taler-auditor-httpd_get-monitoring-early-aggregation.c @@ -76,7 +76,7 @@ TAH_get_monitoring_early_aggregation ( bool return_suppressed = false; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -107,7 +107,7 @@ TAH_get_monitoring_early_aggregation ( } ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_select_early_aggregations ( + qs = TALER_AUDITORDB_select_early_aggregations ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-emergency-by-count.c b/src/auditor/taler-auditor-httpd_get-monitoring-emergency-by-count.c @@ -87,7 +87,7 @@ TAH_get_monitoring_emergency_by_count ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -118,7 +118,7 @@ TAH_get_monitoring_emergency_by_count ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_emergency_by_count ( + qs = TALER_AUDITORDB_get_emergency_by_count ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-emergency.c b/src/auditor/taler-auditor-httpd_get-monitoring-emergency.c @@ -86,7 +86,7 @@ TAH_get_monitoring_emergency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -117,7 +117,7 @@ TAH_get_monitoring_emergency ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_emergency ( + qs = TALER_AUDITORDB_get_emergency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-fee-time-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-fee-time-inconsistency.c @@ -80,7 +80,7 @@ TAH_get_monitoring_fee_time_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -111,7 +111,7 @@ TAH_get_monitoring_fee_time_inconsistency ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_fee_time_inconsistency ( + qs = TALER_AUDITORDB_get_fee_time_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-historic-denomination-revenue.c b/src/auditor/taler-auditor-httpd_get-monitoring-historic-denomination-revenue.c @@ -91,7 +91,7 @@ TAH_get_monitoring_historic_denomination_revenue ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error ( @@ -112,7 +112,7 @@ TAH_get_monitoring_historic_denomination_revenue ( &offset); ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_select_historic_denom_revenue ( + qs = TALER_AUDITORDB_select_historic_denom_revenue ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-historic-reserve-summary.c b/src/auditor/taler-auditor-httpd_get-monitoring-historic-reserve-summary.c @@ -85,7 +85,7 @@ TAH_get_monitoring_historic_reserve_summary ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error ( @@ -106,7 +106,7 @@ TAH_get_monitoring_historic_reserve_summary ( &offset); ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_select_historic_reserve_revenue ( + qs = TALER_AUDITORDB_select_historic_reserve_revenue ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-misattribution-in-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-misattribution-in-inconsistency.c @@ -80,7 +80,7 @@ TAH_get_monitoring_misattribution_in_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -111,7 +111,7 @@ TAH_get_monitoring_misattribution_in_inconsistency ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_misattribution_in_inconsistency ( + qs = TALER_AUDITORDB_get_misattribution_in_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-pending-deposits.c b/src/auditor/taler-auditor-httpd_get-monitoring-pending-deposits.c @@ -86,7 +86,7 @@ TAH_get_monitoring_pending_deposits ( bool return_suppressed = false; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -117,7 +117,7 @@ TAH_get_monitoring_pending_deposits ( } ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_select_pending_deposits ( + qs = TALER_AUDITORDB_select_pending_deposits ( TAH_apg, GNUNET_TIME_absolute_get (), limit, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-progress.c b/src/auditor/taler-auditor-httpd_get-monitoring-progress.c @@ -72,7 +72,7 @@ TAH_get_monitoring_progress ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -86,7 +86,7 @@ TAH_get_monitoring_progress ( "progress_key"); ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_progress_points ( + qs = TALER_AUDITORDB_get_progress_points ( TAH_apg, progress_key, &process_progress, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-purse-not-closed-inconsistencies.c b/src/auditor/taler-auditor-httpd_get-monitoring-purse-not-closed-inconsistencies.c @@ -79,7 +79,7 @@ TAH_get_monitoring_purse_not_closed_inconsistencies ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -114,7 +114,7 @@ TAH_get_monitoring_purse_not_closed_inconsistencies ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_purse_not_closed_inconsistencies ( + qs = TALER_AUDITORDB_get_purse_not_closed_inconsistencies ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-purses.c b/src/auditor/taler-auditor-httpd_get-monitoring-purses.c @@ -82,7 +82,7 @@ TAH_get_monitoring_purses ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error ( @@ -103,7 +103,7 @@ TAH_get_monitoring_purses ( &offset); ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_purses ( + qs = TALER_AUDITORDB_get_purses ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-reserve-balance-insufficient-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-reserve-balance-insufficient-inconsistency.c @@ -82,7 +82,7 @@ TAH_get_monitoring_reserve_balance_insufficient_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -113,7 +113,7 @@ TAH_get_monitoring_reserve_balance_insufficient_inconsistency ( } ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_reserve_balance_insufficient_inconsistency ( + qs = TALER_AUDITORDB_get_reserve_balance_insufficient_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-reserve-balance-summary-wrong-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-reserve-balance-summary-wrong-inconsistency.c @@ -77,7 +77,7 @@ TAH_get_monitoring_reserve_balance_summary_wrong_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -107,7 +107,7 @@ TAH_get_monitoring_reserve_balance_summary_wrong_inconsistency ( } ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_reserve_balance_summary_wrong_inconsistency ( + qs = TALER_AUDITORDB_get_reserve_balance_summary_wrong_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-reserve-in-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-reserve-in-inconsistency.c @@ -90,7 +90,7 @@ TAH_get_monitoring_reserve_in_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -122,7 +122,7 @@ TAH_get_monitoring_reserve_in_inconsistency ( } ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_reserve_in_inconsistency ( + qs = TALER_AUDITORDB_get_reserve_in_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-reserve-not-closed-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-reserve-not-closed-inconsistency.c @@ -82,7 +82,7 @@ TAH_get_monitoring_reserve_not_closed_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -115,7 +115,7 @@ TAH_get_monitoring_reserve_not_closed_inconsistency ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_reserve_not_closed_inconsistency ( + qs = TALER_AUDITORDB_get_reserve_not_closed_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-reserves.c b/src/auditor/taler-auditor-httpd_get-monitoring-reserves.c @@ -93,7 +93,7 @@ TAH_get_monitoring_reserves ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -114,7 +114,7 @@ TAH_get_monitoring_reserves ( &offset); ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_reserves ( + qs = TALER_AUDITORDB_get_reserves ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-row-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-row-inconsistency.c @@ -80,7 +80,7 @@ TAH_get_monitoring_row_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -110,7 +110,7 @@ TAH_get_monitoring_row_inconsistency ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_row_inconsistency ( + qs = TALER_AUDITORDB_get_row_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-row-minor-inconsistencies.c b/src/auditor/taler-auditor-httpd_get-monitoring-row-minor-inconsistencies.c @@ -80,7 +80,7 @@ TAH_get_monitoring_row_minor_inconsistencies ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -114,7 +114,7 @@ TAH_get_monitoring_row_minor_inconsistencies ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_row_minor_inconsistencies ( + qs = TALER_AUDITORDB_get_row_minor_inconsistencies ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-wire-format-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-wire-format-inconsistency.c @@ -82,7 +82,7 @@ TAH_get_monitoring_wire_format_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -113,7 +113,7 @@ TAH_get_monitoring_wire_format_inconsistency ( ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_wire_format_inconsistency ( + qs = TALER_AUDITORDB_get_wire_format_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_get-monitoring-wire-out-inconsistency.c b/src/auditor/taler-auditor-httpd_get-monitoring-wire-out-inconsistency.c @@ -84,7 +84,7 @@ TAH_get_monitoring_wire_out_inconsistency ( (void) upload_data; (void) upload_data_size; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -109,7 +109,7 @@ TAH_get_monitoring_wire_out_inconsistency ( &return_suppressed); ja = json_array (); GNUNET_break (NULL != ja); - qs = AUDITORDB_get_wire_out_inconsistency ( + qs = TALER_AUDITORDB_get_wire_out_inconsistency ( TAH_apg, limit, offset, diff --git a/src/auditor/taler-auditor-httpd_patch-generic-suppressed.c b/src/auditor/taler-auditor-httpd_patch-generic-suppressed.c @@ -42,7 +42,7 @@ TAH_patch_generic_suppressed ( (void) connection_cls; if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -101,10 +101,10 @@ TAH_patch_generic_suppressed ( } /* execute transaction */ - qs = AUDITORDB_update_generic_suppressed (TAH_apg, - rh->table, - row_id, - suppressed); + qs = TALER_AUDITORDB_update_generic_suppressed (TAH_apg, + rh->table, + row_id, + suppressed); switch (qs) { diff --git a/src/auditor/taler-auditor-httpd_put-deposit-confirmation.c b/src/auditor/taler-auditor-httpd_put-deposit-confirmation.c @@ -143,7 +143,7 @@ verify_and_execute_deposit_confirmation ( &h); GNUNET_assert (0 == pthread_mutex_unlock (&lock)); if (GNUNET_SYSERR == - AUDITORDB_preflight (TAH_apg)) + TALER_AUDITORDB_preflight (TAH_apg)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -171,8 +171,8 @@ verify_and_execute_deposit_confirmation ( } /* execute transaction */ - qs = AUDITORDB_insert_exchange_signkey (TAH_apg, - es); + qs = TALER_AUDITORDB_insert_exchange_signkey (TAH_apg, + es); if (0 > qs) { GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs); @@ -254,8 +254,8 @@ verify_and_execute_deposit_confirmation ( } /* execute transaction */ - qs = AUDITORDB_insert_deposit_confirmation (TAH_apg, - dc); + qs = TALER_AUDITORDB_insert_deposit_confirmation (TAH_apg, + dc); if (0 > qs) { GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs); diff --git a/src/auditor/taler-helper-auditor-aggregation.c b/src/auditor/taler-helper-auditor-aggregation.c @@ -167,7 +167,7 @@ report_amount_arithmetic_inconsistency ( }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_amount_arithmetic_inconsistency ( + qs = TALER_AUDITORDB_insert_amount_arithmetic_inconsistency ( TALER_ARL_adb, &aai); @@ -242,7 +242,7 @@ report_coin_arithmetic_inconsistency ( .coin_pub = coin_pub->eddsa_pub }; - qs = AUDITORDB_insert_coin_inconsistency ( + qs = TALER_AUDITORDB_insert_coin_inconsistency ( TALER_ARL_adb, &ci); @@ -285,7 +285,7 @@ report_row_inconsistency (const char *table, .row_id = rowid }; - qs = AUDITORDB_insert_row_inconsistency ( + qs = TALER_AUDITORDB_insert_row_inconsistency ( TALER_ARL_adb, &ri); @@ -468,7 +468,7 @@ check_transaction_history_for_deposit ( .row_table = (char *) "deposits" }; - qs = AUDITORDB_insert_row_inconsistency ( + qs = TALER_AUDITORDB_insert_row_inconsistency ( TALER_ARL_adb, &ri); @@ -920,7 +920,7 @@ wire_transfer_information_cb ( .operation_specific_pub = coin.coin_pub.eddsa_pub }; - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -1148,7 +1148,7 @@ get_wire_fee (struct AggregationContext *ac, .type = (char *) method }; - qs = AUDITORDB_insert_fee_time_inconsistency ( + qs = TALER_AUDITORDB_insert_fee_time_inconsistency ( TALER_ARL_adb, &ftib); if (qs < 0) @@ -1170,7 +1170,7 @@ get_wire_fee (struct AggregationContext *ac, .type = (char *) method }; - qs = AUDITORDB_insert_fee_time_inconsistency ( + qs = TALER_AUDITORDB_insert_fee_time_inconsistency ( TALER_ARL_adb, &ftia); @@ -1367,7 +1367,7 @@ check_wire_out_cb (void *cls, .claimed = *amount }; - qs = AUDITORDB_insert_wire_out_inconsistency ( + qs = TALER_AUDITORDB_insert_wire_out_inconsistency ( TALER_ARL_adb, &woi); @@ -1403,7 +1403,7 @@ analyze_aggregations (void *cls) (void) cls; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Analyzing aggregations\n"); - qs = AUDITORDB_get_auditor_progress ( + qs = TALER_AUDITORDB_get_auditor_progress ( TALER_ARL_adb, TALER_ARL_GET_PP (aggregation_last_wire_out_serial_id), NULL); @@ -1428,7 +1428,7 @@ analyze_aggregations (void *cls) memset (&ac, 0, sizeof (ac)); - qs = AUDITORDB_get_balance ( + qs = TALER_AUDITORDB_get_balance ( TALER_ARL_adb, TALER_ARL_GET_AB (aggregation_total_wire_fee_revenue), TALER_ARL_GET_AB (aggregation_total_arithmetic_delta_plus), @@ -1479,7 +1479,7 @@ analyze_aggregations (void *cls) "Finished aggregation audit at %llu\n", (unsigned long long) TALER_ARL_USE_PP ( aggregation_last_wire_out_serial_id)); - qs = AUDITORDB_insert_balance ( + qs = TALER_AUDITORDB_insert_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (aggregation_total_wire_fee_revenue), TALER_ARL_SET_AB (aggregation_total_arithmetic_delta_plus), @@ -1497,7 +1497,7 @@ analyze_aggregations (void *cls) GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); return qs; } - qs = AUDITORDB_update_balance ( + qs = TALER_AUDITORDB_update_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (aggregation_total_wire_fee_revenue), TALER_ARL_SET_AB (aggregation_total_arithmetic_delta_plus), @@ -1516,7 +1516,7 @@ analyze_aggregations (void *cls) return qs; } - qs = AUDITORDB_insert_auditor_progress ( + qs = TALER_AUDITORDB_insert_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (aggregation_last_wire_out_serial_id), NULL); @@ -1527,7 +1527,7 @@ analyze_aggregations (void *cls) GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); return qs; } - qs = AUDITORDB_update_auditor_progress ( + qs = TALER_AUDITORDB_update_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (aggregation_last_wire_out_serial_id), NULL); @@ -1586,7 +1586,7 @@ do_shutdown (void *cls) (void) cls; if (NULL != eh) { - AUDITORDB_event_listen_cancel (eh); + TALER_AUDITORDB_event_listen_cancel (eh); eh = NULL; } TALER_ARL_done (); @@ -1632,11 +1632,11 @@ run (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Running helper indefinitely\n"); - eh = AUDITORDB_event_listen (TALER_ARL_adb, - &es, - GNUNET_TIME_UNIT_FOREVER_REL, - &db_notify, - NULL); + eh = TALER_AUDITORDB_event_listen (TALER_ARL_adb, + &es, + GNUNET_TIME_UNIT_FOREVER_REL, + &db_notify, + NULL); } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting audit\n"); diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c @@ -269,7 +269,7 @@ report_emergency_by_amount ( GNUNET_h2s (&issue->denom_hash.hash), TALER_amount2s (loss)); - qs = AUDITORDB_insert_emergency ( + qs = TALER_AUDITORDB_insert_emergency ( TALER_ARL_adb, &emergency); if (qs < 0) @@ -328,7 +328,7 @@ report_emergency_by_count ( num_known, TALER_amount2s (risk)); - qs = AUDITORDB_insert_emergency_by_count ( + qs = TALER_AUDITORDB_insert_emergency_by_count ( TALER_ARL_adb, &emergenciesByCount); @@ -404,7 +404,7 @@ report_amount_arithmetic_inconsistency ( }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_amount_arithmetic_inconsistency ( + qs = TALER_AUDITORDB_insert_amount_arithmetic_inconsistency ( TALER_ARL_adb, &aai); if (qs < 0) @@ -447,7 +447,7 @@ report_row_inconsistency (const char *table, .diagnostic = (char *) diagnostic }; - qs = AUDITORDB_insert_row_inconsistency ( + qs = TALER_AUDITORDB_insert_row_inconsistency ( TALER_ARL_adb, &ri); if (qs < 0) @@ -703,9 +703,9 @@ init_denomination (const struct TALER_DenominationHashP *denom_hash, struct TALER_MasterSignatureP msig; uint64_t rowid; - qs = AUDITORDB_get_denomination_balance (TALER_ARL_adb, - denom_hash, - &ds->dcd); + qs = TALER_AUDITORDB_get_denomination_balance (TALER_ARL_adb, + denom_hash, + &ds->dcd); if (0 > qs) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); @@ -850,8 +850,8 @@ sync_denomination (void *cls, /* Denomination key has expired, book remaining balance of outstanding coins as revenue; and reduce cc->risk exposure. */ if (ds->in_db) - qs = AUDITORDB_del_denomination_balance (TALER_ARL_adb, - &denom_h); + qs = TALER_AUDITORDB_del_denomination_balance (TALER_ARL_adb, + &denom_h); else qs = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT; if (qs < 0) @@ -883,7 +883,7 @@ sync_denomination (void *cls, "Denomination `%s' expired, booking %s in expiration profits\n", GNUNET_h2s (denom_hash), TALER_amount2s (&ds->dcd.denom_balance)); - qs = AUDITORDB_insert_historic_denom_revenue ( + qs = TALER_AUDITORDB_insert_historic_denom_revenue ( TALER_ARL_adb, &denom_h, expire_deposit, @@ -948,13 +948,13 @@ sync_denomination (void *cls, } } if (ds->in_db) - qs = AUDITORDB_update_denomination_balance (TALER_ARL_adb, - &denom_h, - &ds->dcd); + qs = TALER_AUDITORDB_update_denomination_balance (TALER_ARL_adb, + &denom_h, + &ds->dcd); else - qs = AUDITORDB_insert_denomination_balance (TALER_ARL_adb, - &denom_h, - &ds->dcd); + qs = TALER_AUDITORDB_insert_denomination_balance (TALER_ARL_adb, + &denom_h, + &ds->dcd); if (qs < 0) { @@ -1177,7 +1177,7 @@ check_known_coin ( GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to verify coin denomination signature in row %llu\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -1363,7 +1363,7 @@ refresh_session_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to verify coin melt signature in row %llu\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -1661,7 +1661,7 @@ deposit_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to verify coin deposit signature in row %llu\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (0 > qs) @@ -1799,7 +1799,7 @@ refund_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to verify merchant refund signature in row %llu\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (0 > qs) @@ -2080,7 +2080,7 @@ check_recoup (struct CoinContext *cc, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to verify coin signature in row %llu\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); @@ -2155,7 +2155,7 @@ check_recoup (struct CoinContext *cc, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Recoup allowed on non-revoked denomination in row %llu\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsldnr); @@ -2228,7 +2228,7 @@ recoup_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to verify recoup signature in row %llu\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -2363,7 +2363,7 @@ recoup_refresh_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to verify recoup-refresh signature in row %llu\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -2457,7 +2457,7 @@ check_denomination ( .value = issue->value }; - qs = AUDITORDB_insert_denominations_without_sigs ( + qs = TALER_AUDITORDB_insert_denominations_without_sigs ( TALER_ARL_adb, &dws); @@ -2562,7 +2562,7 @@ purse_deposit_cb ( GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to verify purse deposit signature in row %llu\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (0 > qs) @@ -2645,7 +2645,7 @@ analyze_coins (void *cls) } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Analyzing coins\n"); - qs = AUDITORDB_get_auditor_progress ( + qs = TALER_AUDITORDB_get_auditor_progress ( TALER_ARL_adb, TALER_ARL_GET_PP (coins_withdraw_serial_id), TALER_ARL_GET_PP (coins_deposit_serial_id), @@ -2691,7 +2691,7 @@ analyze_coins (void *cls) cc.qs = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT; cc.denom_summaries = GNUNET_CONTAINER_multihashmap_create (256, GNUNET_NO); - qs = AUDITORDB_get_balance ( + qs = TALER_AUDITORDB_get_balance ( TALER_ARL_adb, TALER_ARL_GET_AB (coin_balance_risk), TALER_ARL_GET_AB (total_escrowed), @@ -2856,7 +2856,7 @@ analyze_coins (void *cls) goto cleanup; } - qs = AUDITORDB_insert_balance ( + qs = TALER_AUDITORDB_insert_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (coin_balance_risk), TALER_ARL_SET_AB (total_escrowed), @@ -2881,7 +2881,7 @@ analyze_coins (void *cls) goto cleanup; } - qs = AUDITORDB_update_balance ( + qs = TALER_AUDITORDB_update_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (coin_balance_risk), TALER_ARL_SET_AB (total_escrowed), @@ -2906,7 +2906,7 @@ analyze_coins (void *cls) goto cleanup; } - qs = AUDITORDB_insert_auditor_progress ( + qs = TALER_AUDITORDB_insert_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (coins_withdraw_serial_id), TALER_ARL_SET_PP (coins_deposit_serial_id), @@ -2925,7 +2925,7 @@ analyze_coins (void *cls) goto cleanup; } - qs = AUDITORDB_update_auditor_progress ( + qs = TALER_AUDITORDB_update_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (coins_withdraw_serial_id), TALER_ARL_SET_PP (coins_deposit_serial_id), @@ -3005,7 +3005,7 @@ do_shutdown (void *cls) (void) cls; if (NULL != eh) { - AUDITORDB_event_listen_cancel (eh); + TALER_AUDITORDB_event_listen_cancel (eh); eh = NULL; } TALER_ARL_done (); @@ -3048,11 +3048,11 @@ run (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Running helper indefinitely\n"); - eh = AUDITORDB_event_listen (TALER_ARL_adb, - &es, - GNUNET_TIME_UNIT_FOREVER_REL, - &db_notify, - NULL); + eh = TALER_AUDITORDB_event_listen (TALER_ARL_adb, + &es, + GNUNET_TIME_UNIT_FOREVER_REL, + &db_notify, + NULL); } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting audit\n"); diff --git a/src/auditor/taler-helper-auditor-deposits.c b/src/auditor/taler-helper-auditor-deposits.c @@ -158,7 +158,7 @@ test_dc (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Deleting matching deposit confirmation %llu\n", (unsigned long long) dc->row_id); - qs = AUDITORDB_delete_generic ( + qs = TALER_AUDITORDB_delete_generic ( TALER_ARL_adb, TALER_AUDITORDB_DEPOSIT_CONFIRMATION, dc->row_id); @@ -228,7 +228,7 @@ recheck_dc (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Deleting matching deposit confirmation %llu\n", (unsigned long long) dc->row_id); - qs = AUDITORDB_delete_generic ( + qs = TALER_AUDITORDB_delete_generic ( TALER_ARL_adb, TALER_AUDITORDB_DEPOSIT_CONFIRMATION, dc->row_id); @@ -271,7 +271,7 @@ analyze_deposit_confirmations (void *cls) uint64_t pp; (void) cls; - qs = AUDITORDB_get_auditor_progress ( + qs = TALER_AUDITORDB_get_auditor_progress ( TALER_ARL_adb, TALER_ARL_GET_PP (deposit_confirmation_serial_id), NULL); @@ -294,7 +294,7 @@ analyze_deposit_confirmations (void *cls) GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, "First analysis using deposit auditor, starting audit from scratch\n"); } - qs = AUDITORDB_get_balance ( + qs = TALER_AUDITORDB_get_balance ( TALER_ARL_adb, TALER_ARL_GET_AB (total_missed_deposit_confirmations), NULL); @@ -306,7 +306,7 @@ analyze_deposit_confirmations (void *cls) had_bal = (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs); had_missing = ! TALER_amount_is_zero ( &TALER_ARL_USE_AB (total_missed_deposit_confirmations)); - qs = AUDITORDB_get_deposit_confirmations ( + qs = TALER_AUDITORDB_get_deposit_confirmations ( TALER_ARL_adb, INT64_MAX, TALER_ARL_USE_PP (deposit_confirmation_serial_id), @@ -327,12 +327,12 @@ analyze_deposit_confirmations (void *cls) "Analyzed %d deposit confirmations\n", (int) qs); if (had_pp) - qs = AUDITORDB_update_auditor_progress ( + qs = TALER_AUDITORDB_update_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (deposit_confirmation_serial_id), NULL); else - qs = AUDITORDB_insert_auditor_progress ( + qs = TALER_AUDITORDB_insert_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (deposit_confirmation_serial_id), NULL); @@ -345,7 +345,7 @@ analyze_deposit_confirmations (void *cls) } if (had_bal && had_pp && had_missing) { - qs = AUDITORDB_get_deposit_confirmations ( + qs = TALER_AUDITORDB_get_deposit_confirmations ( TALER_ARL_adb, -INT64_MAX, pp + 1, /* previous iteration went up to 'pp', try missing again */ @@ -367,12 +367,12 @@ analyze_deposit_confirmations (void *cls) (int) qs); } if (had_bal) - qs = AUDITORDB_update_balance ( + qs = TALER_AUDITORDB_update_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (total_missed_deposit_confirmations), NULL); else - qs = AUDITORDB_insert_balance ( + qs = TALER_AUDITORDB_insert_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (total_missed_deposit_confirmations), NULL); @@ -426,7 +426,7 @@ do_shutdown (void *cls) (void) cls; if (NULL != eh) { - AUDITORDB_event_listen_cancel (eh); + TALER_AUDITORDB_event_listen_cancel (eh); eh = NULL; } TALER_ARL_done (); @@ -471,11 +471,11 @@ run (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Running helper indefinitely\n"); - eh = AUDITORDB_event_listen (TALER_ARL_adb, - &es, - GNUNET_TIME_UNIT_FOREVER_REL, - &db_notify, - NULL); + eh = TALER_AUDITORDB_event_listen (TALER_ARL_adb, + &es, + GNUNET_TIME_UNIT_FOREVER_REL, + &db_notify, + NULL); } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting audit\n"); diff --git a/src/auditor/taler-helper-auditor-purses.c b/src/auditor/taler-helper-auditor-purses.c @@ -177,7 +177,7 @@ report_amount_arithmetic_inconsistency ( .auditor_amount = *auditor }; - qs = AUDITORDB_insert_amount_arithmetic_inconsistency ( + qs = TALER_AUDITORDB_insert_amount_arithmetic_inconsistency ( TALER_ARL_adb, &aai); @@ -221,7 +221,7 @@ report_row_inconsistency (const char *table, .row_id = rowid }; - qs = AUDITORDB_insert_row_inconsistency ( + qs = TALER_AUDITORDB_insert_row_inconsistency ( TALER_ARL_adb, &ri); @@ -378,11 +378,11 @@ load_auditor_purse_summary (struct PurseSummary *ps) enum GNUNET_DB_QueryStatus qs; uint64_t rowid; - qs = AUDITORDB_get_purse_info (TALER_ARL_adb, - &ps->purse_pub, - &rowid, - &ps->balance, - &ps->expiration_date); + qs = TALER_AUDITORDB_get_purse_info (TALER_ARL_adb, + &ps->purse_pub, + &rowid, + &ps->balance, + &ps->expiration_date); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Loaded purse `%s' info (%d)\n", TALER_B2S (&ps->purse_pub), @@ -559,7 +559,7 @@ handle_purse_requested ( }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -705,7 +705,7 @@ handle_purse_deposits ( "Failed to verify purse deposit signature on `%s' in record %llu\n", TALER_B2S (&deposit->purse_pub), (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -822,7 +822,7 @@ handle_purse_merged ( }; GNUNET_free (reserve_url.normalized_payto); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -933,7 +933,7 @@ handle_account_merged ( .operation_specific_pub = reserve_pub->eddsa_pub }; - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -1110,8 +1110,8 @@ handle_purse_decision ( GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Deleting purse with decision `%s'\n", TALER_B2S (&ps->purse_pub)); - qs = AUDITORDB_delete_purse_info (TALER_ARL_adb, - purse_pub); + qs = TALER_AUDITORDB_delete_purse_info (TALER_ARL_adb, + purse_pub); if (qs < 0) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); @@ -1223,7 +1223,7 @@ handle_purse_expired ( .purse_pub = purse_pub->eddsa_pub }; - qs = AUDITORDB_insert_purse_not_closed_inconsistencies ( + qs = TALER_AUDITORDB_insert_purse_not_closed_inconsistencies ( TALER_ARL_adb, &pnci); if (qs < 0) @@ -1321,19 +1321,19 @@ verify_purse_balance (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Updating purse `%s'\n", TALER_B2S (&ps->purse_pub)); - qs = AUDITORDB_update_purse_info (TALER_ARL_adb, - &ps->purse_pub, - &ps->balance); + qs = TALER_AUDITORDB_update_purse_info (TALER_ARL_adb, + &ps->purse_pub, + &ps->balance); } else { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Inserting purse `%s'\n", TALER_B2S (&ps->purse_pub)); - qs = AUDITORDB_insert_purse_info (TALER_ARL_adb, - &ps->purse_pub, - &ps->balance, - ps->expiration_date); + qs = TALER_AUDITORDB_insert_purse_info (TALER_ARL_adb, + &ps->purse_pub, + &ps->balance, + ps->expiration_date); ps->had_pi = true; } if (qs < 0) @@ -1389,7 +1389,7 @@ analyze_purses (void *cls) (void) cls; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Analyzing purses\n"); - qs = AUDITORDB_get_auditor_progress ( + qs = TALER_AUDITORDB_get_auditor_progress ( TALER_ARL_adb, TALER_ARL_GET_PP (purse_account_merge_serial_id), TALER_ARL_GET_PP (purse_decision_serial_id), @@ -1430,7 +1430,7 @@ analyze_purses (void *cls) "First analysis using this auditor, starting audit from scratch\n"); } pc.qs = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT; - qs = AUDITORDB_get_balance ( + qs = TALER_AUDITORDB_get_balance ( TALER_ARL_adb, TALER_ARL_GET_AB (purse_global_balance), TALER_ARL_GET_AB (purse_total_balance_insufficient_loss), @@ -1545,7 +1545,7 @@ analyze_purses (void *cls) return pc.qs; } - qs = AUDITORDB_select_purse_expired ( + qs = TALER_AUDITORDB_select_purse_expired ( TALER_ARL_adb, &handle_purse_expired, &pc); @@ -1575,7 +1575,7 @@ analyze_purses (void *cls) return pc.qs; } if (had_bal) - qs = AUDITORDB_update_balance ( + qs = TALER_AUDITORDB_update_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (purse_global_balance), TALER_ARL_SET_AB (purse_total_balance_insufficient_loss), @@ -1586,7 +1586,7 @@ analyze_purses (void *cls) TALER_ARL_SET_AB (purse_total_bad_sig_loss), NULL); else - qs = AUDITORDB_insert_balance ( + qs = TALER_AUDITORDB_insert_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (purse_global_balance), TALER_ARL_SET_AB (purse_total_balance_insufficient_loss), @@ -1604,7 +1604,7 @@ analyze_purses (void *cls) return qs; } if (had_pp) - qs = AUDITORDB_update_auditor_progress ( + qs = TALER_AUDITORDB_update_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (purse_account_merge_serial_id), TALER_ARL_SET_PP (purse_decision_serial_id), @@ -1615,7 +1615,7 @@ analyze_purses (void *cls) TALER_ARL_SET_PP (purse_open_counter), NULL); else - qs = AUDITORDB_insert_auditor_progress ( + qs = TALER_AUDITORDB_insert_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (purse_account_merge_serial_id), TALER_ARL_SET_PP (purse_decision_serial_id), @@ -1691,7 +1691,7 @@ do_shutdown (void *cls) if (NULL != eh) { - AUDITORDB_event_listen_cancel (eh); + TALER_AUDITORDB_event_listen_cancel (eh); eh = NULL; } TALER_ARL_done (); @@ -1736,11 +1736,11 @@ run (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Running helper indefinitely\n"); - eh = AUDITORDB_event_listen (TALER_ARL_adb, - &es, - GNUNET_TIME_UNIT_FOREVER_REL, - &db_notify, - NULL); + eh = TALER_AUDITORDB_event_listen (TALER_ARL_adb, + &es, + GNUNET_TIME_UNIT_FOREVER_REL, + &db_notify, + NULL); } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting audit\n"); diff --git a/src/auditor/taler-helper-auditor-reserves.c b/src/auditor/taler-helper-auditor-reserves.c @@ -205,7 +205,7 @@ report_amount_arithmetic_inconsistency ( .auditor_amount = *auditor, }; - qs = AUDITORDB_insert_amount_arithmetic_inconsistency ( + qs = TALER_AUDITORDB_insert_amount_arithmetic_inconsistency ( TALER_ARL_adb, &aai); @@ -248,7 +248,7 @@ report_row_inconsistency (const char *table, .row_id = rowid }; - qs = AUDITORDB_insert_row_inconsistency ( + qs = TALER_AUDITORDB_insert_row_inconsistency ( TALER_ARL_adb, &ri); @@ -334,12 +334,12 @@ load_auditor_reserve_summary (struct ReserveSummary *rs) enum GNUNET_DB_QueryStatus qs; uint64_t rowid; - qs = AUDITORDB_get_reserve_info (TALER_ARL_adb, - &rs->reserve_pub, - &rowid, - &rs->prev_balance, - &rs->a_expiration_date, - &rs->sender_account); + qs = TALER_AUDITORDB_get_reserve_info (TALER_ARL_adb, + &rs->reserve_pub, + &rowid, + &rs->prev_balance, + &rs->a_expiration_date, + &rs->sender_account); if (0 > qs) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); @@ -654,7 +654,8 @@ handle_withdrawals ( "Withdraw outside of denomination #%llu validity period detected\n", (unsigned long long) denom_serials[i]); qs = - AUDITORDB_insert_denomination_key_validity_withdraw_inconsistency ( + TALER_AUDITORDB_insert_denomination_key_validity_withdraw_inconsistency + ( TALER_ARL_adb, &dkvwi); @@ -712,7 +713,7 @@ handle_withdrawals ( GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Withdraw signature invalid (row #%llu)\n", (unsigned long long) rowid); - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -822,7 +823,7 @@ handle_recoup_by_reserve ( .operation_specific_pub = coin->coin_pub.eddsa_pub }; - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bslr); @@ -901,7 +902,7 @@ handle_recoup_by_reserve ( .operation_specific_pub = TALER_ARL_master_pub.eddsa_pub }; - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bslrm); @@ -1049,7 +1050,7 @@ handle_reserve_open ( .operation_specific_pub = reserve_pub->eddsa_pub }; - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); @@ -1204,7 +1205,7 @@ handle_reserve_closed ( .operation_specific_pub = reserve_pub->eddsa_pub }; - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); @@ -1350,7 +1351,7 @@ handle_account_merged ( .operation_specific_pub = reserve_pub->eddsa_pub }; - qs = AUDITORDB_insert_bad_sig_losses ( + qs = TALER_AUDITORDB_insert_bad_sig_losses ( TALER_ARL_adb, &bsl); if (qs < 0) @@ -1474,7 +1475,7 @@ verify_reserve_balance (void *cls, TALER_ARL_amount_add (&TALER_ARL_USE_AB (reserves_reserve_loss), &TALER_ARL_USE_AB (reserves_reserve_loss), &rbiil.inconsistency_amount); - qs = AUDITORDB_insert_reserve_balance_insufficient_inconsistency ( + qs = TALER_AUDITORDB_insert_reserve_balance_insufficient_inconsistency ( TALER_ARL_adb, &rbiil); @@ -1522,7 +1523,7 @@ verify_reserve_balance (void *cls, .inconsistency_gain = true }; - qs = AUDITORDB_insert_reserve_balance_insufficient_inconsistency ( + qs = TALER_AUDITORDB_insert_reserve_balance_insufficient_inconsistency ( TALER_ARL_adb, &rbiig); @@ -1581,7 +1582,7 @@ verify_reserve_balance (void *cls, .inconsistency_gain = true }; - qs = AUDITORDB_insert_reserve_balance_insufficient_inconsistency + qs = TALER_AUDITORDB_insert_reserve_balance_insufficient_inconsistency ( TALER_ARL_adb, &rbiig); @@ -1601,10 +1602,11 @@ verify_reserve_balance (void *cls, .reserve_pub = rs->reserve_pub }; - qs = AUDITORDB_insert_reserve_balance_summary_wrong_inconsistency - ( - TALER_ARL_adb, - &rbswi); + qs = + TALER_AUDITORDB_insert_reserve_balance_summary_wrong_inconsistency + ( + TALER_ARL_adb, + &rbswi); } if (qs < 0) { @@ -1649,7 +1651,7 @@ verify_reserve_balance (void *cls, &TALER_ARL_USE_AB ( total_balance_reserve_not_closed), &rnci.balance); - qs = AUDITORDB_insert_reserve_not_closed_inconsistency ( + qs = TALER_AUDITORDB_insert_reserve_not_closed_inconsistency ( TALER_ARL_adb, &rnci); if (qs < 0) @@ -1677,7 +1679,7 @@ verify_reserve_balance (void *cls, &TALER_ARL_USE_AB ( total_balance_reserve_not_closed), &nbalance); - qs = AUDITORDB_insert_reserve_not_closed_inconsistency ( + qs = TALER_AUDITORDB_insert_reserve_not_closed_inconsistency ( TALER_ARL_adb, &rncid); if (qs < 0) @@ -1758,8 +1760,8 @@ verify_reserve_balance (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Final balance of reserve `%s' is zero, dropping it\n", TALER_B2S (&rs->reserve_pub)); - qs = AUDITORDB_del_reserve_info (TALER_ARL_adb, - &rs->reserve_pub); + qs = TALER_AUDITORDB_del_reserve_info (TALER_ARL_adb, + &rs->reserve_pub); if (0 >= qs) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); @@ -1782,16 +1784,16 @@ verify_reserve_balance (void *cls, TALER_B2S (&rs->reserve_pub), TALER_amount2s (&rs->prev_balance.reserve_balance)); if (rs->had_ri) - qs = AUDITORDB_update_reserve_info (TALER_ARL_adb, - &rs->reserve_pub, - &rs->prev_balance, - rs->a_expiration_date); + qs = TALER_AUDITORDB_update_reserve_info (TALER_ARL_adb, + &rs->reserve_pub, + &rs->prev_balance, + rs->a_expiration_date); else - qs = AUDITORDB_insert_reserve_info (TALER_ARL_adb, - &rs->reserve_pub, - &rs->prev_balance, - rs->a_expiration_date, - rs->sender_account); + qs = TALER_AUDITORDB_insert_reserve_info (TALER_ARL_adb, + &rs->reserve_pub, + &rs->prev_balance, + rs->a_expiration_date, + rs->sender_account); if (0 >= qs) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); @@ -1846,7 +1848,7 @@ analyze_reserves (void *cls) global_qs = GNUNET_DB_STATUS_SUCCESS_NO_RESULTS; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Analyzing reserves\n"); - qs = AUDITORDB_get_auditor_progress ( + qs = TALER_AUDITORDB_get_auditor_progress ( TALER_ARL_adb, TALER_ARL_GET_PP (reserves_reserve_in_serial_id), TALER_ARL_GET_PP (reserves_withdraw_serial_id), @@ -1888,7 +1890,7 @@ analyze_reserves (void *cls) (unsigned long long) TALER_ARL_USE_PP ( reserves_history_requests_serial_id)); } - qs = AUDITORDB_get_balance ( + qs = TALER_AUDITORDB_get_balance ( TALER_ARL_adb, TALER_ARL_GET_AB (reserves_reserve_total_balance), TALER_ARL_GET_AB (reserves_reserve_loss), @@ -1974,7 +1976,7 @@ analyze_reserves (void *cls) GNUNET_break (0 == GNUNET_CONTAINER_multihashmap_size (rc.reserves)); - qs = AUDITORDB_insert_balance ( + qs = TALER_AUDITORDB_insert_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (reserves_reserve_total_balance), TALER_ARL_SET_AB (reserves_reserve_loss), @@ -1996,7 +1998,7 @@ analyze_reserves (void *cls) goto cleanup; } - qs = AUDITORDB_update_balance ( + qs = TALER_AUDITORDB_update_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (reserves_reserve_total_balance), TALER_ARL_SET_AB (reserves_reserve_loss), @@ -2018,7 +2020,7 @@ analyze_reserves (void *cls) goto cleanup; } - qs = AUDITORDB_insert_auditor_progress ( + qs = TALER_AUDITORDB_insert_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (reserves_reserve_in_serial_id), TALER_ARL_SET_PP (reserves_withdraw_serial_id), @@ -2036,7 +2038,7 @@ analyze_reserves (void *cls) GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); goto cleanup; } - qs = AUDITORDB_update_auditor_progress ( + qs = TALER_AUDITORDB_update_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (reserves_reserve_in_serial_id), TALER_ARL_SET_PP (reserves_withdraw_serial_id), @@ -2122,7 +2124,7 @@ do_shutdown (void *cls) (void) cls; if (NULL != eh) { - AUDITORDB_event_listen_cancel (eh); + TALER_AUDITORDB_event_listen_cancel (eh); eh = NULL; } TALER_ARL_done (); @@ -2180,11 +2182,11 @@ run (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Running helper indefinitely\n"); - eh = AUDITORDB_event_listen (TALER_ARL_adb, - &es, - GNUNET_TIME_UNIT_FOREVER_REL, - &db_notify, - NULL); + eh = TALER_AUDITORDB_event_listen (TALER_ARL_adb, + &es, + GNUNET_TIME_UNIT_FOREVER_REL, + &db_notify, + NULL); } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting audit\n"); diff --git a/src/auditor/taler-helper-auditor-transfer.c b/src/auditor/taler-helper-auditor-transfer.c @@ -102,7 +102,7 @@ do_shutdown (void *cls) (void) cls; if (NULL != eh) { - AUDITORDB_event_listen_cancel (eh); + TALER_AUDITORDB_event_listen_cancel (eh); eh = NULL; } TALER_ARL_done (); @@ -153,7 +153,7 @@ import_wire_missing_cb ( return; /* already failed */ GNUNET_assert (batch_deposit_serial_id >= wc->max_batch_deposit_uuid); wc->max_batch_deposit_uuid = batch_deposit_serial_id + 1; - qs = AUDITORDB_delete_early_aggregation ( + qs = TALER_AUDITORDB_delete_early_aggregation ( TALER_ARL_adb, batch_deposit_serial_id); switch (qs) @@ -167,7 +167,7 @@ import_wire_missing_cb ( wc->err = qs; return; case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS: - qs = AUDITORDB_insert_pending_deposit ( + qs = TALER_AUDITORDB_insert_pending_deposit ( TALER_ARL_adb, batch_deposit_serial_id, wire_target_h_payto, @@ -267,7 +267,7 @@ clear_finished_transfer_cb ( return; /* already failed */ GNUNET_assert (ac->max_aggregation_serial <= tracking_serial_id); ac->max_aggregation_serial = tracking_serial_id + 1; - qs = AUDITORDB_delete_pending_deposit ( + qs = TALER_AUDITORDB_delete_pending_deposit ( TALER_ARL_adb, batch_deposit_serial_id); switch (qs) @@ -281,7 +281,7 @@ clear_finished_transfer_cb ( ac->err = qs; return; case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS: - qs = AUDITORDB_insert_early_aggregation ( + qs = TALER_AUDITORDB_insert_early_aggregation ( TALER_ARL_adb, batch_deposit_serial_id, tracking_serial_id, @@ -360,14 +360,14 @@ begin_transaction (void) return GNUNET_DB_STATUS_HARD_ERROR; } if (GNUNET_SYSERR == - AUDITORDB_preflight (TALER_ARL_adb)) + TALER_AUDITORDB_preflight (TALER_ARL_adb)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to initialize auditor database session.\n"); return GNUNET_DB_STATUS_HARD_ERROR; } if (GNUNET_OK != - AUDITORDB_start (TALER_ARL_adb)) + TALER_AUDITORDB_start (TALER_ARL_adb)) { GNUNET_break (0); return GNUNET_DB_STATUS_HARD_ERROR; @@ -377,10 +377,10 @@ begin_transaction (void) "transfer auditor")) { GNUNET_break (0); - AUDITORDB_rollback (TALER_ARL_adb); + TALER_AUDITORDB_rollback (TALER_ARL_adb); return GNUNET_DB_STATUS_HARD_ERROR; } - qs = AUDITORDB_get_auditor_progress ( + qs = TALER_AUDITORDB_get_auditor_progress ( TALER_ARL_adb, TALER_ARL_GET_PP (wire_batch_deposit_id), TALER_ARL_GET_PP (wire_aggregation_id), @@ -388,7 +388,7 @@ begin_transaction (void) if (0 > qs) goto handle_db_error; - qs = AUDITORDB_get_balance ( + qs = TALER_AUDITORDB_get_balance ( TALER_ARL_adb, TALER_ARL_GET_AB (total_amount_lag), TALER_ARL_GET_AB (total_early_aggregation), @@ -415,28 +415,28 @@ begin_transaction (void) if (0 > qs) goto handle_db_error; - qs = AUDITORDB_update_auditor_progress ( + qs = TALER_AUDITORDB_update_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (wire_batch_deposit_id), TALER_ARL_SET_PP (wire_aggregation_id), NULL); if (0 > qs) goto handle_db_error; - qs = AUDITORDB_insert_auditor_progress ( + qs = TALER_AUDITORDB_insert_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (wire_batch_deposit_id), TALER_ARL_SET_PP (wire_aggregation_id), NULL); if (0 > qs) goto handle_db_error; - qs = AUDITORDB_update_balance ( + qs = TALER_AUDITORDB_update_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (total_amount_lag), TALER_ARL_SET_AB (total_early_aggregation), NULL); if (0 > qs) goto handle_db_error; - qs = AUDITORDB_insert_balance ( + qs = TALER_AUDITORDB_insert_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (total_amount_lag), TALER_ARL_SET_AB (total_early_aggregation), @@ -448,14 +448,14 @@ begin_transaction (void) (unsigned long long) TALER_ARL_USE_PP (wire_aggregation_id), (unsigned long long) TALER_ARL_USE_PP (wire_batch_deposit_id)); TALER_EXCHANGEDB_rollback (TALER_ARL_edb); - qs = AUDITORDB_commit (TALER_ARL_adb); + qs = TALER_AUDITORDB_commit (TALER_ARL_adb); if (0 > qs) goto handle_db_error; GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Transaction concluded!\n"); return GNUNET_DB_STATUS_SUCCESS_ONE_RESULT; handle_db_error: - AUDITORDB_rollback (TALER_ARL_adb); + TALER_AUDITORDB_rollback (TALER_ARL_adb); TALER_EXCHANGEDB_rollback (TALER_ARL_edb); GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); return qs; @@ -559,11 +559,11 @@ run (void *cls, .type = htons (TALER_DBEVENT_EXCHANGE_AUDITOR_WAKE_HELPER_WIRE) }; - eh = AUDITORDB_event_listen (TALER_ARL_adb, - &es, - GNUNET_TIME_UNIT_FOREVER_REL, - &db_notify, - NULL); + eh = TALER_AUDITORDB_event_listen (TALER_ARL_adb, + &es, + GNUNET_TIME_UNIT_FOREVER_REL, + &db_notify, + NULL); GNUNET_assert (NULL != eh); } start (); diff --git a/src/auditor/taler-helper-auditor-wire-credit.c b/src/auditor/taler-helper-auditor-wire-credit.c @@ -302,7 +302,7 @@ do_shutdown (void *cls) (void) cls; if (NULL != eh) { - AUDITORDB_event_listen_cancel (eh); + TALER_AUDITORDB_event_listen_cancel (eh); eh = NULL; } TALER_ARL_done (); @@ -361,7 +361,7 @@ rollback_and_reset (void) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Serialization issue, trying again\n"); - AUDITORDB_rollback (TALER_ARL_adb); + TALER_AUDITORDB_rollback (TALER_ARL_adb); for (unsigned int max_retries = 3; max_retries>0; max_retries--) { enum GNUNET_DB_QueryStatus qs; @@ -398,7 +398,7 @@ commit (enum GNUNET_DB_QueryStatus qs) TALER_EXCHANGEDB_rollback (TALER_ARL_edb); if (qs < 0) goto handle_db_error; - qs = AUDITORDB_update_balance ( + qs = TALER_AUDITORDB_update_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (total_wire_in), TALER_ARL_SET_AB (total_kycauth_in), @@ -409,7 +409,7 @@ commit (enum GNUNET_DB_QueryStatus qs) NULL); if (0 > qs) goto handle_db_error; - qs = AUDITORDB_insert_balance ( + qs = TALER_AUDITORDB_insert_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (total_wire_in), TALER_ARL_SET_AB (total_kycauth_in), @@ -424,7 +424,7 @@ commit (enum GNUNET_DB_QueryStatus qs) NULL != wa; wa = wa->next) { - qs = AUDITORDB_update_auditor_progress ( + qs = TALER_AUDITORDB_update_auditor_progress ( TALER_ARL_adb, wa->label_reserve_in_serial_id, wa->last_reserve_in_serial_id, @@ -433,7 +433,7 @@ commit (enum GNUNET_DB_QueryStatus qs) NULL); if (0 > qs) goto handle_db_error; - qs = AUDITORDB_insert_auditor_progress ( + qs = TALER_AUDITORDB_insert_auditor_progress ( TALER_ARL_adb, wa->label_reserve_in_serial_id, wa->last_reserve_in_serial_id, @@ -448,7 +448,7 @@ commit (enum GNUNET_DB_QueryStatus qs) (unsigned long long) wa->last_reserve_in_serial_id, wa->ai->section_name); } - qs = AUDITORDB_commit (TALER_ARL_adb); + qs = TALER_AUDITORDB_commit (TALER_ARL_adb); if (0 > qs) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); @@ -575,7 +575,7 @@ reserve_in_cb (void *cls, enum GNUNET_DB_QueryStatus qs; struct TALER_AUDITORDB_ReserveInInconsistency dc; - qs = AUDITORDB_select_reserve_in_inconsistency ( + qs = TALER_AUDITORDB_select_reserve_in_inconsistency ( TALER_ARL_adb, wire_reference, &dc); @@ -606,7 +606,7 @@ reserve_in_cb (void *cls, return GNUNET_SYSERR; if (GNUNET_YES == ret) { - qs = AUDITORDB_delete_reserve_in_inconsistency ( + qs = TALER_AUDITORDB_delete_reserve_in_inconsistency ( TALER_ARL_adb, dc.serial_id); if (qs < 0) @@ -650,7 +650,7 @@ reserve_in_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Duplicate wire offset\n"); - qs = AUDITORDB_insert_row_inconsistency ( + qs = TALER_AUDITORDB_insert_row_inconsistency ( TALER_ARL_adb, &ri); GNUNET_free (rii); @@ -700,7 +700,7 @@ complain_in_not_found (void *cls, (unsigned long long) rii->rowid); GNUNET_assert (TALER_BANK_CT_RESERVE == rii->credit_details.type); - qs = AUDITORDB_insert_reserve_in_inconsistency ( + qs = TALER_AUDITORDB_insert_reserve_in_inconsistency ( TALER_ARL_adb, &riiDb); if (qs < 0) @@ -816,8 +816,8 @@ analyze_credit ( GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to find wire transfer at `%s' in exchange database.\n", GNUNET_TIME_timestamp2s (credit_details->execution_date)); - qs = AUDITORDB_insert_reserve_in_inconsistency (TALER_ARL_adb, - &dc); + qs = TALER_AUDITORDB_insert_reserve_in_inconsistency (TALER_ARL_adb, + &dc); if (qs <= 0) { global_qs = qs; @@ -849,7 +849,7 @@ analyze_credit ( GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Reserve public key differs\n"); - qs = AUDITORDB_insert_reserve_in_inconsistency ( + qs = TALER_AUDITORDB_insert_reserve_in_inconsistency ( TALER_ARL_adb, &riiDb); if (qs <= 0) @@ -886,7 +886,7 @@ analyze_credit ( GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Wire transfer amount differs\n"); - qs = AUDITORDB_insert_reserve_in_inconsistency ( + qs = TALER_AUDITORDB_insert_reserve_in_inconsistency ( TALER_ARL_adb, &riiDb); if (qs <= 0) @@ -940,7 +940,7 @@ analyze_credit ( GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Origin bank account differs\n"); - qs = AUDITORDB_insert_misattribution_in_inconsistency ( + qs = TALER_AUDITORDB_insert_misattribution_in_inconsistency ( TALER_ARL_adb, &mii); if (qs <= 0) @@ -971,7 +971,7 @@ analyze_credit ( GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Execution date differs\n"); - qs = AUDITORDB_insert_row_minor_inconsistencies ( + qs = TALER_AUDITORDB_insert_row_minor_inconsistencies ( TALER_ARL_adb, &rmi); @@ -1158,7 +1158,7 @@ begin_transaction (void) return GNUNET_DB_STATUS_HARD_ERROR; } if (GNUNET_SYSERR == - AUDITORDB_preflight (TALER_ARL_adb)) + TALER_AUDITORDB_preflight (TALER_ARL_adb)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to initialize auditor database session.\n"); @@ -1166,7 +1166,7 @@ begin_transaction (void) } global_qs = GNUNET_DB_STATUS_SUCCESS_NO_RESULTS; if (GNUNET_OK != - AUDITORDB_start (TALER_ARL_adb)) + TALER_AUDITORDB_start (TALER_ARL_adb)) { GNUNET_break (0); return GNUNET_DB_STATUS_HARD_ERROR; @@ -1178,7 +1178,7 @@ begin_transaction (void) GNUNET_break (0); return GNUNET_DB_STATUS_HARD_ERROR; } - qs = AUDITORDB_get_balance ( + qs = TALER_AUDITORDB_get_balance ( TALER_ARL_adb, TALER_ARL_GET_AB (total_wire_in), TALER_ARL_GET_AB (total_kycauth_in), @@ -1211,7 +1211,7 @@ begin_transaction (void) "wire-%s-%s", wa->ai->section_name, "wire_off_in"); - qs = AUDITORDB_get_auditor_progress ( + qs = TALER_AUDITORDB_get_auditor_progress ( TALER_ARL_adb, wa->label_reserve_in_serial_id, &wa->last_reserve_in_serial_id, @@ -1382,11 +1382,11 @@ run (void *cls, .type = htons (TALER_DBEVENT_EXCHANGE_AUDITOR_WAKE_HELPER_WIRE) }; - eh = AUDITORDB_event_listen (TALER_ARL_adb, - &es, - GNUNET_TIME_UNIT_FOREVER_REL, - &db_notify, - NULL); + eh = TALER_AUDITORDB_event_listen (TALER_ARL_adb, + &es, + GNUNET_TIME_UNIT_FOREVER_REL, + &db_notify, + NULL); GNUNET_assert (NULL != eh); } if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != diff --git a/src/auditor/taler-helper-auditor-wire-debit.c b/src/auditor/taler-helper-auditor-wire-debit.c @@ -388,7 +388,7 @@ do_shutdown (void *cls) (void) cls; if (NULL != eh) { - AUDITORDB_event_listen_cancel (eh); + TALER_AUDITORDB_event_listen_cancel (eh); eh = NULL; } TALER_ARL_done (); @@ -475,7 +475,7 @@ check_pending_rc (void *cls, }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_auditor_closure_lags ( + qs = TALER_AUDITORDB_insert_auditor_closure_lags ( TALER_ARL_adb, &cl); if (qs < 0) @@ -547,7 +547,7 @@ commit (enum GNUNET_DB_QueryStatus qs) "Transaction logic ended with status %d\n", qs); TALER_EXCHANGEDB_rollback (TALER_ARL_edb); - qs = AUDITORDB_update_balance ( + qs = TALER_AUDITORDB_update_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (total_drained), TALER_ARL_SET_AB (total_wire_out), @@ -559,7 +559,7 @@ commit (enum GNUNET_DB_QueryStatus qs) NULL); if (0 > qs) goto handle_db_error; - qs = AUDITORDB_insert_balance ( + qs = TALER_AUDITORDB_insert_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (total_drained), TALER_ARL_SET_AB (total_wire_out), @@ -580,7 +580,7 @@ commit (enum GNUNET_DB_QueryStatus qs) wa->ai->section_name, (unsigned long long) wa->last_wire_out_serial_id, (unsigned long long) wa->wire_off_out); - qs = AUDITORDB_update_auditor_progress ( + qs = TALER_AUDITORDB_update_auditor_progress ( TALER_ARL_adb, wa->label_wire_out_serial_id, wa->last_wire_out_serial_id, @@ -589,7 +589,7 @@ commit (enum GNUNET_DB_QueryStatus qs) NULL); if (0 > qs) goto handle_db_error; - qs = AUDITORDB_insert_auditor_progress ( + qs = TALER_AUDITORDB_insert_auditor_progress ( TALER_ARL_adb, wa->label_wire_out_serial_id, wa->last_wire_out_serial_id, @@ -604,13 +604,13 @@ commit (enum GNUNET_DB_QueryStatus qs) (unsigned long long) wa->last_wire_out_serial_id, wa->ai->section_name); } - qs = AUDITORDB_update_auditor_progress ( + qs = TALER_AUDITORDB_update_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (wire_reserve_close_id), NULL); if (0 > qs) goto handle_db_error; - qs = AUDITORDB_insert_auditor_progress ( + qs = TALER_AUDITORDB_insert_auditor_progress ( TALER_ARL_adb, TALER_ARL_SET_PP (wire_reserve_close_id), NULL); @@ -619,7 +619,7 @@ commit (enum GNUNET_DB_QueryStatus qs) GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Concluded audit step at %llu\n", (unsigned long long) TALER_ARL_USE_PP (wire_reserve_close_id)); - qs = AUDITORDB_commit (TALER_ARL_adb); + qs = TALER_AUDITORDB_commit (TALER_ARL_adb); if (0 > qs) goto handle_db_error; GNUNET_log (GNUNET_ERROR_TYPE_INFO, @@ -628,7 +628,7 @@ commit (enum GNUNET_DB_QueryStatus qs) GNUNET_SCHEDULER_shutdown (); return; handle_db_error: - AUDITORDB_rollback (TALER_ARL_adb); + TALER_AUDITORDB_rollback (TALER_ARL_adb); for (unsigned int max_retries = 3; max_retries>0; max_retries--) { if (GNUNET_DB_STATUS_HARD_ERROR == qs) @@ -685,7 +685,7 @@ check_time_difference (const char *table, }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_row_minor_inconsistencies ( + qs = TALER_AUDITORDB_insert_row_minor_inconsistencies ( TALER_ARL_adb, &rmi); @@ -814,7 +814,7 @@ check_reported_inconsistency (struct WireTransferOutInfo *roi) make_missing_diag (diag, &roi->details.wtid); - qs = AUDITORDB_delete_wire_out_inconsistency_if_matching ( + qs = TALER_AUDITORDB_delete_wire_out_inconsistency_if_matching ( TALER_ARL_adb, &woi); if (qs < 0) @@ -906,7 +906,7 @@ check_profit_drain (struct WireTransferOutInfo *roi) }; GNUNET_break (0); - qs = AUDITORDB_insert_row_inconsistency ( + qs = TALER_AUDITORDB_insert_row_inconsistency ( TALER_ARL_adb, &ri); GNUNET_free (payto_uri.full_payto); @@ -934,7 +934,7 @@ check_profit_drain (struct WireTransferOutInfo *roi) .claimed = zero, }; - qs = AUDITORDB_insert_wire_out_inconsistency ( + qs = TALER_AUDITORDB_insert_wire_out_inconsistency ( TALER_ARL_adb, &woi); if (qs < 0) @@ -964,7 +964,7 @@ check_profit_drain (struct WireTransferOutInfo *roi) .claimed = amount, }; - qs = AUDITORDB_insert_wire_out_inconsistency ( + qs = TALER_AUDITORDB_insert_wire_out_inconsistency ( TALER_ARL_adb, &woi); if (qs < 0) @@ -1002,7 +1002,7 @@ check_closure_lag (const struct WireTransferOutInfo *roi) { enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_delete_auditor_closure_lag ( + qs = TALER_AUDITORDB_delete_auditor_closure_lag ( TALER_ARL_adb, &roi->details.amount, &roi->details.wtid, @@ -1084,7 +1084,7 @@ complain_out_not_found (void *cls, }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_wire_out_inconsistency ( + qs = TALER_AUDITORDB_insert_wire_out_inconsistency ( TALER_ARL_adb, &woi); if (qs < 0) @@ -1164,7 +1164,7 @@ wire_out_cb ( (unsigned long long) rowid); make_missing_diag (diag, wtid); - qs = AUDITORDB_insert_wire_out_inconsistency ( + qs = TALER_AUDITORDB_insert_wire_out_inconsistency ( TALER_ARL_adb, &woi); if (qs < 0) @@ -1194,7 +1194,7 @@ wire_out_cb ( }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_wire_out_inconsistency ( + qs = TALER_AUDITORDB_insert_wire_out_inconsistency ( TALER_ARL_adb, &woi); if (qs < 0) @@ -1228,7 +1228,7 @@ wire_out_cb ( }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_wire_out_inconsistency ( + qs = TALER_AUDITORDB_insert_wire_out_inconsistency ( TALER_ARL_adb, &woi); if (qs < 0) @@ -1454,7 +1454,7 @@ history_debit_cb ( }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_wire_format_inconsistency ( + qs = TALER_AUDITORDB_insert_wire_format_inconsistency ( TALER_ARL_adb, &wfi); if (qs < 0) @@ -1588,7 +1588,7 @@ reserve_closed_cb ( }; enum GNUNET_DB_QueryStatus qs; - qs = AUDITORDB_insert_row_inconsistency ( + qs = TALER_AUDITORDB_insert_row_inconsistency ( TALER_ARL_adb, &ri); if (qs < 0) @@ -1641,7 +1641,7 @@ begin_transaction (void) return GNUNET_DB_STATUS_HARD_ERROR; } if (GNUNET_SYSERR == - AUDITORDB_preflight (TALER_ARL_adb)) + TALER_AUDITORDB_preflight (TALER_ARL_adb)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to initialize auditor database session.\n"); @@ -1649,7 +1649,7 @@ begin_transaction (void) } global_qs = GNUNET_DB_STATUS_SUCCESS_NO_RESULTS; if (GNUNET_OK != - AUDITORDB_start (TALER_ARL_adb)) + TALER_AUDITORDB_start (TALER_ARL_adb)) { GNUNET_break (0); return GNUNET_DB_STATUS_HARD_ERROR; @@ -1661,7 +1661,7 @@ begin_transaction (void) GNUNET_break (0); return GNUNET_DB_STATUS_HARD_ERROR; } - qs = AUDITORDB_get_balance ( + qs = TALER_AUDITORDB_get_balance ( TALER_ARL_adb, TALER_ARL_GET_AB (total_drained), TALER_ARL_GET_AB (total_wire_out), @@ -1695,7 +1695,7 @@ begin_transaction (void) "wire-%s-%s", wa->ai->section_name, "wire_off_out"); - qs = AUDITORDB_get_auditor_progress ( + qs = TALER_AUDITORDB_get_auditor_progress ( TALER_ARL_adb, wa->label_wire_out_serial_id, &wa->last_wire_out_serial_id, @@ -1715,7 +1715,7 @@ begin_transaction (void) (unsigned long long) wa->last_wire_out_serial_id, (unsigned long long) wa->wire_off_out); } - qs = AUDITORDB_get_auditor_progress ( + qs = TALER_AUDITORDB_get_auditor_progress ( TALER_ARL_adb, TALER_ARL_GET_PP (wire_reserve_close_id), NULL); @@ -1897,11 +1897,11 @@ run (void *cls, .type = htons (TALER_DBEVENT_EXCHANGE_AUDITOR_WAKE_HELPER_WIRE) }; - eh = AUDITORDB_event_listen (TALER_ARL_adb, - &es, - GNUNET_TIME_UNIT_FOREVER_REL, - &db_notify, - NULL); + eh = TALER_AUDITORDB_event_listen (TALER_ARL_adb, + &es, + GNUNET_TIME_UNIT_FOREVER_REL, + &db_notify, + NULL); GNUNET_assert (NULL != eh); } if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != diff --git a/src/auditordb/create_tables.c b/src/auditordb/create_tables.c @@ -24,7 +24,7 @@ enum GNUNET_GenericReturnValue -AUDITORDB_create_tables ( +TALER_AUDITORDB_create_tables ( const struct GNUNET_CONFIGURATION_Handle *cfg, bool support_partitions, uint32_t num_partitions) diff --git a/src/auditordb/del_denomination_balance.c b/src/auditordb/del_denomination_balance.c @@ -23,9 +23,10 @@ #include "pg_helper.h" enum GNUNET_DB_QueryStatus -AUDITORDB_del_denomination_balance (struct AUDITORDB_PostgresContext *pg, - const struct TALER_DenominationHashP * - denom_pub_hash) +TALER_AUDITORDB_del_denomination_balance (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_DenominationHashP * + denom_pub_hash) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (denom_pub_hash), diff --git a/src/auditordb/del_reserve_info.c b/src/auditordb/del_reserve_info.c @@ -24,8 +24,9 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_del_reserve_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_ReservePublicKeyP *reserve_pub) +TALER_AUDITORDB_del_reserve_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_ReservePublicKeyP * + reserve_pub) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (reserve_pub), diff --git a/src/auditordb/delete_auditor_closure_lag.c b/src/auditordb/delete_auditor_closure_lag.c @@ -24,11 +24,14 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_auditor_closure_lag (struct AUDITORDB_PostgresContext *pg, - const struct TALER_Amount *amount, - const struct - TALER_WireTransferIdentifierRawP *wtid, - struct TALER_FullPayto credit_account_uri) +TALER_AUDITORDB_delete_auditor_closure_lag (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_Amount *amount, + const struct + TALER_WireTransferIdentifierRawP * + wtid, + struct TALER_FullPayto + credit_account_uri) { struct GNUNET_PQ_QueryParam params[] = { TALER_PQ_query_param_amount (pg->conn, diff --git a/src/auditordb/delete_early_aggregation.c b/src/auditordb/delete_early_aggregation.c @@ -24,8 +24,9 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_early_aggregation (struct AUDITORDB_PostgresContext *pg, - uint64_t batch_deposit_serial_id) +TALER_AUDITORDB_delete_early_aggregation (struct + TALER_AUDITORDB_PostgresContext *pg, + uint64_t batch_deposit_serial_id) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&batch_deposit_serial_id), diff --git a/src/auditordb/delete_generic.c b/src/auditordb/delete_generic.c @@ -27,15 +27,16 @@ struct Preparations /** * Which DB did we do prepare for. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; }; enum GNUNET_DB_QueryStatus -AUDITORDB_delete_generic (struct AUDITORDB_PostgresContext *pg, - enum TALER_AUDITORDB_DeletableSuppressableTables table - , - uint64_t row_id) +TALER_AUDITORDB_delete_generic (struct TALER_AUDITORDB_PostgresContext *pg, + enum TALER_AUDITORDB_DeletableSuppressableTables + table + , + uint64_t row_id) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&row_id), @@ -45,7 +46,8 @@ AUDITORDB_delete_generic (struct AUDITORDB_PostgresContext *pg, TALER_AUDITORDB_DELETABLESUPPRESSABLE_TABLES_MAX]; struct Preparations *prep = &preps[table]; - const char *table_name = AUDITORDB_get_deletable_suppressable_table_name ( + const char *table_name = TALER_AUDITORDB_get_deletable_suppressable_table_name + ( table); char statement_name[256]; diff --git a/src/auditordb/delete_pending_deposit.c b/src/auditordb/delete_pending_deposit.c @@ -24,8 +24,9 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_pending_deposit (struct AUDITORDB_PostgresContext *pg, - uint64_t batch_deposit_serial_id) +TALER_AUDITORDB_delete_pending_deposit (struct TALER_AUDITORDB_PostgresContext * + pg, + uint64_t batch_deposit_serial_id) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&batch_deposit_serial_id), diff --git a/src/auditordb/delete_purse_info.c b/src/auditordb/delete_purse_info.c @@ -24,9 +24,9 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_purse_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_PurseContractPublicKeyP * - purse_pub) +TALER_AUDITORDB_delete_purse_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_PurseContractPublicKeyP * + purse_pub) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (purse_pub), diff --git a/src/auditordb/delete_reserve_in_inconsistency.c b/src/auditordb/delete_reserve_in_inconsistency.c @@ -24,9 +24,11 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_reserve_in_inconsistency (struct AUDITORDB_PostgresContext *pg - , - uint64_t row_id) +TALER_AUDITORDB_delete_reserve_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg + , + uint64_t row_id) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&row_id), diff --git a/src/auditordb/delete_wire_out_inconsistency_if_matching.c b/src/auditordb/delete_wire_out_inconsistency_if_matching.c @@ -19,12 +19,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_wire_out_inconsistency_if_matching (struct - AUDITORDB_PostgresContext * - ctx, - const struct - TALER_AUDITORDB_WireOutInconsistency - *dc) +TALER_AUDITORDB_delete_wire_out_inconsistency_if_matching (struct + TALER_AUDITORDB_PostgresContext + * + ctx, + const struct + TALER_AUDITORDB_WireOutInconsistency + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_string (dc->destination_account.full_payto), diff --git a/src/auditordb/drop_tables.c b/src/auditordb/drop_tables.c @@ -23,10 +23,10 @@ #include "pg_helper.h" enum GNUNET_GenericReturnValue -AUDITORDB_drop_tables (void *cls, - bool drop_exchangelist) +TALER_AUDITORDB_drop_tables (void *cls, + bool drop_exchangelist) { - struct AUDITORDB_PostgresContext *pc = cls; + struct TALER_AUDITORDB_PostgresContext *pc = cls; struct GNUNET_PQ_Context *conn; enum GNUNET_GenericReturnValue ret; diff --git a/src/auditordb/event_listen.c b/src/auditordb/event_listen.c @@ -25,11 +25,11 @@ struct GNUNET_DB_EventHandler * -AUDITORDB_event_listen (struct AUDITORDB_PostgresContext *pg, - const struct GNUNET_DB_EventHeaderP *es, - struct GNUNET_TIME_Relative timeout, - GNUNET_DB_EventCallback cb, - void *cb_cls) +TALER_AUDITORDB_event_listen (struct TALER_AUDITORDB_PostgresContext *pg, + const struct GNUNET_DB_EventHeaderP *es, + struct GNUNET_TIME_Relative timeout, + GNUNET_DB_EventCallback cb, + void *cb_cls) { return GNUNET_PQ_event_listen (pg->conn, es, @@ -40,7 +40,7 @@ AUDITORDB_event_listen (struct AUDITORDB_PostgresContext *pg, void -AUDITORDB_event_listen_cancel (struct GNUNET_DB_EventHandler *eh) +TALER_AUDITORDB_event_listen_cancel (struct GNUNET_DB_EventHandler *eh) { GNUNET_PQ_event_listen_cancel (eh); } diff --git a/src/auditordb/event_notify.c b/src/auditordb/event_notify.c @@ -25,10 +25,10 @@ void -AUDITORDB_event_notify (struct AUDITORDB_PostgresContext *pg, - const struct GNUNET_DB_EventHeaderP *es, - const void *extra, - size_t extra_size) +TALER_AUDITORDB_event_notify (struct TALER_AUDITORDB_PostgresContext *pg, + const struct GNUNET_DB_EventHeaderP *es, + const void *extra, + size_t extra_size) { return GNUNET_PQ_event_notify (pg->conn, es, diff --git a/src/auditordb/gc.c b/src/auditordb/gc.c @@ -24,7 +24,7 @@ enum GNUNET_GenericReturnValue -AUDITORDB_gc (struct AUDITORDB_PostgresContext *pg) +TALER_AUDITORDB_gc (struct TALER_AUDITORDB_PostgresContext *pg) { /* For now, we hard-code the cut-off date based on the common legal requirement to keep data for 10 years. diff --git a/src/auditordb/get_amount_arithmetic_inconsistency.c b/src/auditordb/get_amount_arithmetic_inconsistency.c @@ -37,7 +37,7 @@ struct AmountArithmeticInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -47,7 +47,7 @@ struct AmountArithmeticInconsistencyContext /** - * Helper function for #AUDITORDB_get_deposit_confirmations(). + * Helper function for #TALER_AUDITORDB_get_deposit_confirmations(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -61,7 +61,7 @@ amount_arithmetic_inconsistency_cb (void *cls, unsigned int num_results) { struct AmountArithmeticInconsistencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -105,8 +105,8 @@ amount_arithmetic_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_amount_arithmetic_inconsistency ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_amount_arithmetic_inconsistency ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/auditordb/get_auditor_closure_lags.c b/src/auditordb/get_auditor_closure_lags.c @@ -36,7 +36,7 @@ struct ClosureLagsContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -46,7 +46,7 @@ struct ClosureLagsContext /** - * Helper function for #AUDITORDB_get_auditor_closure_lags(). + * Helper function for #TALER_AUDITORDB_get_auditor_closure_lags(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -60,7 +60,7 @@ closure_lags_cb (void *cls, unsigned int num_results) { struct ClosureLagsContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -104,8 +104,8 @@ closure_lags_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_auditor_closure_lags ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_auditor_closure_lags ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/auditordb/get_auditor_progress.c b/src/auditordb/get_auditor_progress.c @@ -48,7 +48,7 @@ struct AuditorProgressContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Set to true on failure. @@ -58,7 +58,7 @@ struct AuditorProgressContext /** - * Helper function for #AUDITORDB_get_auditor_progress(). + * Helper function for #TALER_AUDITORDB_get_auditor_progress(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -102,8 +102,8 @@ auditor_progress_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_auditor_progress ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_auditor_progress ( + struct TALER_AUDITORDB_PostgresContext *pg, const char *progress_key, uint64_t *progress_offset, ...) diff --git a/src/auditordb/get_bad_sig_losses.c b/src/auditordb/get_bad_sig_losses.c @@ -35,7 +35,7 @@ struct BadSigLossesContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -45,7 +45,7 @@ struct BadSigLossesContext /** - * Helper function for #AUDITORDB_get_bad_sig_losses(). + * Helper function for #TALER_AUDITORDB_get_bad_sig_losses(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -59,7 +59,7 @@ bad_sig_losses_cb (void *cls, unsigned int num_results) { struct BadSigLossesContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -101,8 +101,8 @@ bad_sig_losses_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_bad_sig_losses ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_bad_sig_losses ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/auditordb/get_balance.c b/src/auditordb/get_balance.c @@ -48,7 +48,7 @@ struct BalanceContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Set to true on failure. @@ -59,7 +59,7 @@ struct BalanceContext /** - * Helper function for #AUDITORDB_get_balance(). + * Helper function for #TALER_AUDITORDB_get_balance(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -73,7 +73,7 @@ balance_cb (void *cls, unsigned int num_results) { struct BalanceContext *ctx = cls; - struct AUDITORDB_PostgresContext *pg = ctx->pg; + struct TALER_AUDITORDB_PostgresContext *pg = ctx->pg; GNUNET_assert (num_results <= ctx->len); for (unsigned int i = 0; i < num_results; i++) @@ -109,8 +109,8 @@ balance_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_balance ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_balance ( + struct TALER_AUDITORDB_PostgresContext *pg, const char *balance_key, struct TALER_Amount *balance_value, ...) diff --git a/src/auditordb/get_balances.c b/src/auditordb/get_balances.c @@ -34,7 +34,7 @@ struct BalancesContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -44,7 +44,7 @@ struct BalancesContext /** - * Helper function for #AUDITORDB_get_balances(). + * Helper function for #TALER_AUDITORDB_get_balances(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -58,7 +58,7 @@ balances_cb (void *cls, unsigned int num_results) { struct BalancesContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -92,8 +92,8 @@ balances_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_balances ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_balances ( + struct TALER_AUDITORDB_PostgresContext *pg, const char *balance_key, TALER_AUDITORDB_BalancesCallback cb, void *cb_cls) diff --git a/src/auditordb/get_coin_inconsistency.c b/src/auditordb/get_coin_inconsistency.c @@ -39,7 +39,7 @@ struct CoinInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -49,7 +49,7 @@ struct CoinInconsistencyContext /** - * Helper function for #AUDITORDB_get_deposit_confirmations(). + * Helper function for #TALER_AUDITORDB_get_deposit_confirmations(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -63,7 +63,7 @@ coin_inconsistency_cb (void *cls, unsigned int num_results) { struct CoinInconsistencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -112,8 +112,8 @@ coin_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_coin_inconsistency ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_coin_inconsistency ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, // maybe not needed diff --git a/src/auditordb/get_denomination_balance.c b/src/auditordb/get_denomination_balance.c @@ -24,8 +24,8 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_get_denomination_balance ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_denomination_balance ( + struct TALER_AUDITORDB_PostgresContext *pg, const struct TALER_DenominationHashP *denom_pub_hash, struct TALER_AUDITORDB_DenominationCirculationData *dcd) { diff --git a/src/auditordb/get_denomination_key_validity_withdraw_inconsistency.c b/src/auditordb/get_denomination_key_validity_withdraw_inconsistency.c @@ -38,7 +38,7 @@ struct DenominationKeyValidityWithdrawInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -48,7 +48,7 @@ struct DenominationKeyValidityWithdrawInconsistencyContext /** - * Helper function for #AUDITORDB_get_deposit_confirmations(). + * Helper function for #TALER_AUDITORDB_get_deposit_confirmations(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -104,8 +104,8 @@ denomination_key_validity_withdraw_inconsistency_cb ( enum GNUNET_DB_QueryStatus -AUDITORDB_get_denomination_key_validity_withdraw_inconsistency ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_denomination_key_validity_withdraw_inconsistency ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/auditordb/get_denomination_pending.c b/src/auditordb/get_denomination_pending.c @@ -34,7 +34,7 @@ struct DenominationPendingContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -44,7 +44,7 @@ struct DenominationPendingContext /** - * Helper function for #AUDITORDB_get_denomination_pending(). + * Helper function for #TALER_AUDITORDB_get_denomination_pending(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -58,7 +58,7 @@ denomination_pending_cb (void *cls, unsigned int num_results) { struct DenominationPendingContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -104,8 +104,8 @@ denomination_pending_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_denomination_pending ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_denomination_pending ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, TALER_AUDITORDB_DenominationPendingCallback cb, diff --git a/src/auditordb/get_denominations_without_sigs.c b/src/auditordb/get_denominations_without_sigs.c @@ -35,7 +35,7 @@ struct DenominationsWithoutSigsContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -45,7 +45,7 @@ struct DenominationsWithoutSigsContext /** - * Helper function for #AUDITORDB_get_denominations_without_sigs(). + * Helper function for #TALER_AUDITORDB_get_denominations_without_sigs(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -59,7 +59,7 @@ denominations_without_sigs_cb (void *cls, unsigned int num_results) { struct DenominationsWithoutSigsContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -103,8 +103,8 @@ denominations_without_sigs_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_denominations_without_sigs ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_denominations_without_sigs ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/auditordb/get_deposit_confirmations.c b/src/auditordb/get_deposit_confirmations.c @@ -43,7 +43,7 @@ struct DepositConfirmationContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -53,7 +53,7 @@ struct DepositConfirmationContext /** - * Helper function for #AUDITORDB_get_deposit_confirmations(). + * Helper function for #TALER_AUDITORDB_get_deposit_confirmations(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -67,7 +67,7 @@ deposit_confirmation_cb (void *cls, unsigned int num_results) { struct DepositConfirmationContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -145,8 +145,8 @@ deposit_confirmation_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_deposit_confirmations ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_deposit_confirmations ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/auditordb/get_emergency.c b/src/auditordb/get_emergency.c @@ -37,7 +37,7 @@ struct EmergencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -47,7 +47,7 @@ struct EmergencyContext /** - * Helper function for #AUDITORDB_get_emergency(). + * Helper function for #TALER_AUDITORDB_get_emergency(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -61,7 +61,7 @@ emergency_cb (void *cls, unsigned int num_results) { struct EmergencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -107,12 +107,12 @@ emergency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_emergency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_EmergencyCallback cb, - void *cb_cls) +TALER_AUDITORDB_get_emergency (struct TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_EmergencyCallback cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_emergency_by_count.c b/src/auditordb/get_emergency_by_count.c @@ -38,7 +38,7 @@ struct EmergencyByCountContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -48,7 +48,7 @@ struct EmergencyByCountContext /** - * Helper function for #AUDITORDB_get_emergency_by_count(). + * Helper function for #TALER_AUDITORDB_get_emergency_by_count(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -62,7 +62,7 @@ emergency_by_count_cb (void *cls, unsigned int num_results) { struct EmergencyByCountContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -110,12 +110,14 @@ emergency_by_count_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_emergency_by_count (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_EmergenciesByCountCallback cb, - void *cb_cls) +TALER_AUDITORDB_get_emergency_by_count (struct TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_EmergenciesByCountCallback + cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_exchange_signkeys.c b/src/auditordb/get_exchange_signkeys.c @@ -37,7 +37,7 @@ struct ExchangeSignkeysContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -47,7 +47,7 @@ struct ExchangeSignkeysContext /** - * Helper function for #AUDITORDB_get_exchange_signkeys(). + * Helper function for #TALER_AUDITORDB_get_exchange_signkeys(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -61,7 +61,7 @@ exchange_signkeys_cb (void *cls, unsigned int num_results) { struct ExchangeSignkeysContext *dcc = cls; - // struct AUDITORDB_PostgresContext *pg = dcc->pg; + // struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -110,12 +110,14 @@ exchange_signkeys_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_exchange_signkeys (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, // maybe not needed - TALER_AUDITORDB_ExchangeSignkeysCallback cb, - void *cb_cls) +TALER_AUDITORDB_get_exchange_signkeys (struct TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, // maybe not needed + TALER_AUDITORDB_ExchangeSignkeysCallback + cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); diff --git a/src/auditordb/get_fee_time_inconsistency.c b/src/auditordb/get_fee_time_inconsistency.c @@ -37,7 +37,7 @@ struct FeeTimeInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -47,7 +47,7 @@ struct FeeTimeInconsistencyContext /** - * Helper function for #AUDITORDB_get_emergency(). + * Helper function for #TALER_AUDITORDB_get_emergency(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -99,8 +99,8 @@ fee_time_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_fee_time_inconsistency ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_fee_time_inconsistency ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/auditordb/get_misattribution_in_inconsistency.c b/src/auditordb/get_misattribution_in_inconsistency.c @@ -37,7 +37,7 @@ struct MisattributionInInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -47,7 +47,7 @@ struct MisattributionInInconsistencyContext /** - * Helper function for #AUDITORDB_get_misattribution_in_inconsistency(). + * Helper function for #TALER_AUDITORDB_get_misattribution_in_inconsistency(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -61,7 +61,7 @@ misattribution_in_inconsistency_cb (void *cls, unsigned int num_results) { struct MisattributionInInconsistencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -101,14 +101,15 @@ misattribution_in_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_misattribution_in_inconsistency (struct - AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_MisattributionInInconsistencyCallback - cb, - void *cb_cls) +TALER_AUDITORDB_get_misattribution_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_MisattributionInInconsistencyCallback + cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_progress_points.c b/src/auditordb/get_progress_points.c @@ -39,7 +39,7 @@ struct ProgressContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -49,7 +49,7 @@ struct ProgressContext /** - * Helper function for #AUDITORDB_get_progress_points(). + * Helper function for #TALER_AUDITORDB_get_progress_points(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -96,8 +96,8 @@ progress_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_progress_points ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_progress_points ( + struct TALER_AUDITORDB_PostgresContext *pg, const char *progress_key, TALER_AUDITORDB_ProgressPointsCallback cb, void *cb_cls) diff --git a/src/auditordb/get_purse_info.c b/src/auditordb/get_purse_info.c @@ -23,8 +23,8 @@ #include "pg_helper.h" enum GNUNET_DB_QueryStatus -AUDITORDB_get_purse_info ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_purse_info ( + struct TALER_AUDITORDB_PostgresContext *pg, const struct TALER_PurseContractPublicKeyP *purse_pub, uint64_t *rowid, struct TALER_Amount *balance, diff --git a/src/auditordb/get_purse_not_closed_inconsistencies.c b/src/auditordb/get_purse_not_closed_inconsistencies.c @@ -37,7 +37,7 @@ struct PurseNotClosedInconsistenciesContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -47,7 +47,7 @@ struct PurseNotClosedInconsistenciesContext /** - * Helper function for #AUDITORDB_get_purse_not_closed_inconsistencies(). + * Helper function for #TALER_AUDITORDB_get_purse_not_closed_inconsistencies(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -61,7 +61,7 @@ purse_not_closed_inconsistencies_cb (void *cls, unsigned int num_results) { struct PurseNotClosedInconsistenciesContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -101,14 +101,15 @@ purse_not_closed_inconsistencies_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_purse_not_closed_inconsistencies (struct - AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_PurseNotClosedInconsistenciesCallback - cb, - void *cb_cls) +TALER_AUDITORDB_get_purse_not_closed_inconsistencies (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_PurseNotClosedInconsistenciesCallback + cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_purses.c b/src/auditordb/get_purses.c @@ -34,7 +34,7 @@ struct PursesContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -44,7 +44,7 @@ struct PursesContext /** - * Helper function for #AUDITORDB_get_purses(). + * Helper function for #TALER_AUDITORDB_get_purses(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -58,7 +58,7 @@ purses_cb (void *cls, unsigned int num_results) { struct PursesContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -99,11 +99,11 @@ purses_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_purses (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - TALER_AUDITORDB_PursesCallback cb, - void *cb_cls) +TALER_AUDITORDB_get_purses (struct TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + TALER_AUDITORDB_PursesCallback cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_reserve_balance_insufficient_inconsistency.c b/src/auditordb/get_reserve_balance_insufficient_inconsistency.c @@ -38,7 +38,7 @@ struct ReserveBalanceInsufficientInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -48,7 +48,7 @@ struct ReserveBalanceInsufficientInconsistencyContext /** - * Helper function for #AUDITORDB_get_reserve_balance_insufficient_inconsistency(). + * Helper function for #TALER_AUDITORDB_get_reserve_balance_insufficient_inconsistency(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -62,7 +62,7 @@ reserve_balance_insufficient_inconsistency_cb (void *cls, unsigned int num_results) { struct ReserveBalanceInsufficientInconsistencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -102,16 +102,17 @@ reserve_balance_insufficient_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_balance_insufficient_inconsistency (struct - AUDITORDB_PostgresContext - *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed - , - TALER_AUDITORDB_ReserveBalanceInsufficientInconsistencyCallback - cb, - void *cb_cls) +TALER_AUDITORDB_get_reserve_balance_insufficient_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool + return_suppressed + , + TALER_AUDITORDB_ReserveBalanceInsufficientInconsistencyCallback + cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_reserve_balance_summary_wrong_inconsistency.c b/src/auditordb/get_reserve_balance_summary_wrong_inconsistency.c @@ -35,7 +35,7 @@ struct ReserveBalanceSummaryWrongInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -45,7 +45,7 @@ struct ReserveBalanceSummaryWrongInconsistencyContext /** - * Helper function for #AUDITORDB_get_reserve_balance_summary_wrong_inconsistency(). + * Helper function for #TALER_AUDITORDB_get_reserve_balance_summary_wrong_inconsistency(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -59,7 +59,7 @@ reserve_balance_summary_wrong_inconsistency_cb (void *cls, unsigned int num_results) { struct ReserveBalanceSummaryWrongInconsistencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -99,16 +99,17 @@ reserve_balance_summary_wrong_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_balance_summary_wrong_inconsistency (struct - AUDITORDB_PostgresContext - *pg, - int64_t limit, - uint64_t offset, - bool - return_suppressed, - TALER_AUDITORDB_ReserveBalanceSummaryWrongInconsistencyCallback - cb, - void *cb_cls) +TALER_AUDITORDB_get_reserve_balance_summary_wrong_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset + , + bool + return_suppressed, + TALER_AUDITORDB_ReserveBalanceSummaryWrongInconsistencyCallback + cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_reserve_in_inconsistency.c b/src/auditordb/get_reserve_in_inconsistency.c @@ -36,7 +36,7 @@ struct ReserveInInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -46,7 +46,7 @@ struct ReserveInInconsistencyContext /** - * Helper function for #AUDITORDB_get_reserve_in_inconsistency(). + * Helper function for #TALER_AUDITORDB_get_reserve_in_inconsistency(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -60,7 +60,7 @@ reserve_in_inconsistency_cb (void *cls, unsigned int num_results) { struct ReserveInInconsistencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -109,13 +109,15 @@ reserve_in_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_in_inconsistency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_ReserveInInconsistencyCallback - cb, - void *cb_cls) +TALER_AUDITORDB_get_reserve_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_ReserveInInconsistencyCallback + cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_reserve_info.c b/src/auditordb/get_reserve_info.c @@ -24,8 +24,8 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_info ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_reserve_info ( + struct TALER_AUDITORDB_PostgresContext *pg, const struct TALER_ReservePublicKeyP *reserve_pub, uint64_t *rowid, struct TALER_AUDITORDB_ReserveFeeBalance *rfb, diff --git a/src/auditordb/get_reserve_not_closed_inconsistency.c b/src/auditordb/get_reserve_not_closed_inconsistency.c @@ -34,7 +34,7 @@ struct ReserveNotClosedInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -44,7 +44,7 @@ struct ReserveNotClosedInconsistencyContext /** - * Helper function for #AUDITORDB_get_reserve_not_closed_inconsistency(). + * Helper function for #TALER_AUDITORDB_get_reserve_not_closed_inconsistency(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -58,7 +58,7 @@ reserve_not_closed_inconsistency_cb (void *cls, unsigned int num_results) { struct ReserveNotClosedInconsistencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -100,14 +100,15 @@ reserve_not_closed_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_not_closed_inconsistency (struct - AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_ReserveNotClosedInconsistencyCallback - cb, - void *cb_cls) +TALER_AUDITORDB_get_reserve_not_closed_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_ReserveNotClosedInconsistencyCallback + cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_reserves.c b/src/auditordb/get_reserves.c @@ -34,7 +34,7 @@ struct ReservesContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -44,7 +44,7 @@ struct ReservesContext /** - * Helper function for #AUDITORDB_get_reserves(). + * Helper function for #TALER_AUDITORDB_get_reserves(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -58,7 +58,7 @@ reserves_cb (void *cls, unsigned int num_results) { struct ReservesContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -111,11 +111,11 @@ reserves_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserves (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - TALER_AUDITORDB_ReservesCallback cb, - void *cb_cls) +TALER_AUDITORDB_get_reserves (struct TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + TALER_AUDITORDB_ReservesCallback cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_row_inconsistency.c b/src/auditordb/get_row_inconsistency.c @@ -37,7 +37,7 @@ struct RowInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -47,7 +47,7 @@ struct RowInconsistencyContext /** - * Helper function for #AUDITORDB_get_deposit_confirmations(). + * Helper function for #TALER_AUDITORDB_get_deposit_confirmations(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -104,8 +104,8 @@ row_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_row_inconsistency ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_row_inconsistency ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, // maybe not needed diff --git a/src/auditordb/get_row_minor_inconsistencies.c b/src/auditordb/get_row_minor_inconsistencies.c @@ -34,7 +34,7 @@ struct RowMinorInconsistenciesContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -44,7 +44,7 @@ struct RowMinorInconsistenciesContext /** - * Helper function for #AUDITORDB_get_row_minor_inconsistencies(). + * Helper function for #TALER_AUDITORDB_get_row_minor_inconsistencies(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -97,8 +97,8 @@ row_minor_inconsistencies_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_row_minor_inconsistencies ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_row_minor_inconsistencies ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/auditordb/get_wire_fee_summary.c b/src/auditordb/get_wire_fee_summary.c @@ -31,8 +31,8 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_wire_fee_summary ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_wire_fee_summary ( + struct TALER_AUDITORDB_PostgresContext *pg, struct TALER_Amount *wire_fee_balance) { struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_wire_format_inconsistency.c b/src/auditordb/get_wire_format_inconsistency.c @@ -34,7 +34,7 @@ struct WireFormatInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -44,7 +44,7 @@ struct WireFormatInconsistencyContext /** - * Helper function for #AUDITORDB_get_wire_format_inconsistency(). + * Helper function for #TALER_AUDITORDB_get_wire_format_inconsistency(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -58,7 +58,7 @@ wire_format_inconsistency_cb (void *cls, unsigned int num_results) { struct WireFormatInconsistencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -98,13 +98,15 @@ wire_format_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_wire_format_inconsistency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_WireFormatInconsistencyCallback - cb, - void *cb_cls) +TALER_AUDITORDB_get_wire_format_inconsistency (struct + TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_WireFormatInconsistencyCallback + cb, + void *cb_cls) { uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/get_wire_out_inconsistency.c b/src/auditordb/get_wire_out_inconsistency.c @@ -34,7 +34,7 @@ struct WireOutInconsistencyContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -44,7 +44,7 @@ struct WireOutInconsistencyContext /** - * Helper function for #AUDITORDB_get_wire_out_inconsistency(). + * Helper function for #TALER_AUDITORDB_get_wire_out_inconsistency(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -58,7 +58,7 @@ wire_out_inconsistency_cb (void *cls, unsigned int num_results) { struct WireOutInconsistencyContext *dcc = cls; - struct AUDITORDB_PostgresContext *pg = dcc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = dcc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -102,8 +102,8 @@ wire_out_inconsistency_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_get_wire_out_inconsistency ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_wire_out_inconsistency ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/auditordb/helper.c b/src/auditordb/helper.c @@ -25,7 +25,7 @@ const char * -AUDITORDB_get_deletable_suppressable_table_name ( +TALER_AUDITORDB_get_deletable_suppressable_table_name ( enum TALER_AUDITORDB_DeletableSuppressableTables table) { const char *tables[] = { diff --git a/src/auditordb/insert_amount_arithmetic_inconsistency.c b/src/auditordb/insert_amount_arithmetic_inconsistency.c @@ -18,12 +18,13 @@ #include "auditor-database/insert_amount_arithmetic_inconsistency.h" enum GNUNET_DB_QueryStatus -AUDITORDB_insert_amount_arithmetic_inconsistency (struct - AUDITORDB_PostgresContext *pg - , - const struct - TALER_AUDITORDB_AmountArithmeticInconsistency - *dc) +TALER_AUDITORDB_insert_amount_arithmetic_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg + , + const struct + TALER_AUDITORDB_AmountArithmeticInconsistency + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_string (dc->operation), diff --git a/src/auditordb/insert_auditor_closure_lags.c b/src/auditordb/insert_auditor_closure_lags.c @@ -19,9 +19,11 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_auditor_closure_lags (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_ClosureLags *dc) +TALER_AUDITORDB_insert_auditor_closure_lags (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_AUDITORDB_ClosureLags *dc) { struct GNUNET_PQ_QueryParam params[] = { TALER_PQ_query_param_amount (pg->conn, diff --git a/src/auditordb/insert_auditor_progress.c b/src/auditordb/insert_auditor_progress.c @@ -24,10 +24,11 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_auditor_progress (struct AUDITORDB_PostgresContext *pg, - const char *progress_key, - uint64_t progress_offset, - ...) +TALER_AUDITORDB_insert_auditor_progress (struct + TALER_AUDITORDB_PostgresContext *pg, + const char *progress_key, + uint64_t progress_offset, + ...) { unsigned int cnt = 1; va_list ap; diff --git a/src/auditordb/insert_bad_sig_losses.c b/src/auditordb/insert_bad_sig_losses.c @@ -19,8 +19,10 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_bad_sig_losses (struct AUDITORDB_PostgresContext *pg, - const struct TALER_AUDITORDB_BadSigLosses *dc) +TALER_AUDITORDB_insert_bad_sig_losses (struct TALER_AUDITORDB_PostgresContext * + pg, + const struct + TALER_AUDITORDB_BadSigLosses *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_string (dc->operation), diff --git a/src/auditordb/insert_balance.c b/src/auditordb/insert_balance.c @@ -24,10 +24,10 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_balance (struct AUDITORDB_PostgresContext *pg, - const char *balance_key, - const struct TALER_Amount *balance_value, - ...) +TALER_AUDITORDB_insert_balance (struct TALER_AUDITORDB_PostgresContext *pg, + const char *balance_key, + const struct TALER_Amount *balance_value, + ...) { unsigned int cnt = 1; va_list ap; diff --git a/src/auditordb/insert_coin_inconsistency.c b/src/auditordb/insert_coin_inconsistency.c @@ -19,9 +19,11 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_coin_inconsistency (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_CoinInconsistency *dc) +TALER_AUDITORDB_insert_coin_inconsistency (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct + TALER_AUDITORDB_CoinInconsistency *dc + ) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_string (dc->operation), diff --git a/src/auditordb/insert_denomination_balance.c b/src/auditordb/insert_denomination_balance.c @@ -24,12 +24,15 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_denomination_balance (struct AUDITORDB_PostgresContext *pg, - const struct TALER_DenominationHashP * - denom_pub_hash, - const struct - TALER_AUDITORDB_DenominationCirculationData - *dcd) +TALER_AUDITORDB_insert_denomination_balance (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_DenominationHashP * + denom_pub_hash, + const struct + TALER_AUDITORDB_DenominationCirculationData + *dcd) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (denom_pub_hash), diff --git a/src/auditordb/insert_denomination_key_validity_withdraw_inconsistency.c b/src/auditordb/insert_denomination_key_validity_withdraw_inconsistency.c @@ -20,12 +20,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_denomination_key_validity_withdraw_inconsistency (struct - AUDITORDB_PostgresContext - *ctx, - const struct - TALER_AUDITORDB_DenominationKeyValidityWithdrawInconsistency - *dc) +TALER_AUDITORDB_insert_denomination_key_validity_withdraw_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *ctx, + const + struct + TALER_AUDITORDB_DenominationKeyValidityWithdrawInconsistency + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_absolute_time (&dc->execution_date), diff --git a/src/auditordb/insert_denomination_pending.c b/src/auditordb/insert_denomination_pending.c @@ -21,9 +21,12 @@ #include "auditor-database/insert_denomination_pending.h" enum GNUNET_DB_QueryStatus -AUDITORDB_insert_denomination_pending (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_DenominationPending *dc) +TALER_AUDITORDB_insert_denomination_pending (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_AUDITORDB_DenominationPending + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (&dc->denom_pub_hash), diff --git a/src/auditordb/insert_denominations_without_sigs.c b/src/auditordb/insert_denominations_without_sigs.c @@ -19,11 +19,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_denominations_without_sigs (struct AUDITORDB_PostgresContext * - ctx, - const struct - TALER_AUDITORDB_DenominationsWithoutSigs - *dc) +TALER_AUDITORDB_insert_denominations_without_sigs (struct + TALER_AUDITORDB_PostgresContext + * + ctx, + const struct + TALER_AUDITORDB_DenominationsWithoutSigs + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (&dc->denompub_h), diff --git a/src/auditordb/insert_deposit_confirmation.c b/src/auditordb/insert_deposit_confirmation.c @@ -24,9 +24,12 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_deposit_confirmation (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_DepositConfirmation *dc) +TALER_AUDITORDB_insert_deposit_confirmation (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_AUDITORDB_DepositConfirmation + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (&dc->h_contract_terms), diff --git a/src/auditordb/insert_early_aggregation.c b/src/auditordb/insert_early_aggregation.c @@ -24,10 +24,12 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_early_aggregation (struct AUDITORDB_PostgresContext *pg, - uint64_t batch_deposit_serial_id, - uint64_t tracking_serial_id, - const struct TALER_Amount *total_amount) +TALER_AUDITORDB_insert_early_aggregation (struct + TALER_AUDITORDB_PostgresContext *pg, + uint64_t batch_deposit_serial_id, + uint64_t tracking_serial_id, + const struct TALER_Amount * + total_amount) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&batch_deposit_serial_id), diff --git a/src/auditordb/insert_emergency.c b/src/auditordb/insert_emergency.c @@ -19,8 +19,8 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_emergency (struct AUDITORDB_PostgresContext *pg, - const struct TALER_AUDITORDB_Emergency *dc) +TALER_AUDITORDB_insert_emergency (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_AUDITORDB_Emergency *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (&dc->denompub_h), diff --git a/src/auditordb/insert_emergency_by_count.c b/src/auditordb/insert_emergency_by_count.c @@ -18,9 +18,11 @@ #include "auditor-database/insert_emergency_by_count.h" enum GNUNET_DB_QueryStatus -AUDITORDB_insert_emergency_by_count (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_EmergenciesByCount *dc) +TALER_AUDITORDB_insert_emergency_by_count (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct + TALER_AUDITORDB_EmergenciesByCount * + dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (&dc->denompub_h), diff --git a/src/auditordb/insert_exchange_signkey.c b/src/auditordb/insert_exchange_signkey.c @@ -24,9 +24,10 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_exchange_signkey (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_ExchangeSigningKey *sk) +TALER_AUDITORDB_insert_exchange_signkey (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct + TALER_AUDITORDB_ExchangeSigningKey *sk) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_timestamp (&sk->ep_start), diff --git a/src/auditordb/insert_fee_time_inconsistency.c b/src/auditordb/insert_fee_time_inconsistency.c @@ -19,10 +19,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_fee_time_inconsistency (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_FeeTimeInconsistency * - dc) +TALER_AUDITORDB_insert_fee_time_inconsistency (struct + TALER_AUDITORDB_PostgresContext * + pg, + const struct + TALER_AUDITORDB_FeeTimeInconsistency + * + dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_string (dc->type), diff --git a/src/auditordb/insert_historic_denom_revenue.c b/src/auditordb/insert_historic_denom_revenue.c @@ -24,15 +24,19 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_historic_denom_revenue (struct AUDITORDB_PostgresContext *pg, - 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 - ) +TALER_AUDITORDB_insert_historic_denom_revenue (struct + TALER_AUDITORDB_PostgresContext * + pg, + 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 + ) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (denom_pub_hash), diff --git a/src/auditordb/insert_historic_reserve_revenue.c b/src/auditordb/insert_historic_reserve_revenue.c @@ -23,14 +23,17 @@ #include "pg_helper.h" enum GNUNET_DB_QueryStatus -AUDITORDB_insert_historic_reserve_revenue (struct AUDITORDB_PostgresContext *pg - , - struct GNUNET_TIME_Timestamp - start_time, - struct GNUNET_TIME_Timestamp end_time - , - const struct TALER_Amount * - reserve_profits) +TALER_AUDITORDB_insert_historic_reserve_revenue (struct + TALER_AUDITORDB_PostgresContext + *pg + , + struct GNUNET_TIME_Timestamp + start_time, + struct GNUNET_TIME_Timestamp + end_time + , + const struct TALER_Amount * + reserve_profits) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_timestamp (&start_time), diff --git a/src/auditordb/insert_misattribution_in_inconsistency.c b/src/auditordb/insert_misattribution_in_inconsistency.c @@ -19,12 +19,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_misattribution_in_inconsistency (struct - AUDITORDB_PostgresContext *pg - , - const struct - TALER_AUDITORDB_MisattributionInInconsistency - *dc) +TALER_AUDITORDB_insert_misattribution_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg + , + const struct + TALER_AUDITORDB_MisattributionInInconsistency + *dc) { struct GNUNET_PQ_QueryParam params[] = { TALER_PQ_query_param_amount (pg->conn, diff --git a/src/auditordb/insert_pending_deposit.c b/src/auditordb/insert_pending_deposit.c @@ -24,12 +24,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_pending_deposit (struct AUDITORDB_PostgresContext *pg, - uint64_t batch_deposit_serial_id, - const struct TALER_FullPaytoHashP * - wire_target_h_payto, - const struct TALER_Amount *total_amount, - struct GNUNET_TIME_Timestamp deadline) +TALER_AUDITORDB_insert_pending_deposit (struct TALER_AUDITORDB_PostgresContext * + pg, + uint64_t batch_deposit_serial_id, + const struct TALER_FullPaytoHashP * + wire_target_h_payto, + const struct TALER_Amount *total_amount, + struct GNUNET_TIME_Timestamp deadline) { struct GNUNET_PQ_QueryParam params[] = { TALER_PQ_query_param_amount (pg->conn, diff --git a/src/auditordb/insert_purse_info.c b/src/auditordb/insert_purse_info.c @@ -24,11 +24,11 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_purse_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_PurseContractPublicKeyP * - purse_pub, - const struct TALER_Amount *balance, - struct GNUNET_TIME_Timestamp expiration_date) +TALER_AUDITORDB_insert_purse_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_PurseContractPublicKeyP * + purse_pub, + const struct TALER_Amount *balance, + struct GNUNET_TIME_Timestamp expiration_date) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (purse_pub), diff --git a/src/auditordb/insert_purse_not_closed_inconsistencies.c b/src/auditordb/insert_purse_not_closed_inconsistencies.c @@ -19,12 +19,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_purse_not_closed_inconsistencies (struct - AUDITORDB_PostgresContext * - ctx, - const struct - TALER_AUDITORDB_PurseNotClosedInconsistencies - *dc) +TALER_AUDITORDB_insert_purse_not_closed_inconsistencies (struct + TALER_AUDITORDB_PostgresContext + * + ctx, + const struct + TALER_AUDITORDB_PurseNotClosedInconsistencies + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (&dc->purse_pub), diff --git a/src/auditordb/insert_reserve_balance_insufficient_inconsistency.c b/src/auditordb/insert_reserve_balance_insufficient_inconsistency.c @@ -22,12 +22,12 @@ "auditor-database/insert_reserve_balance_insufficient_inconsistency.h" enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_balance_insufficient_inconsistency (struct - AUDITORDB_PostgresContext - *ctx, - const struct - TALER_AUDITORDB_ReserveBalanceInsufficientInconsistency - *dc) +TALER_AUDITORDB_insert_reserve_balance_insufficient_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *ctx, + const struct + TALER_AUDITORDB_ReserveBalanceInsufficientInconsistency + *dc) { struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/insert_reserve_balance_summary_wrong_inconsistency.c b/src/auditordb/insert_reserve_balance_summary_wrong_inconsistency.c @@ -22,12 +22,12 @@ "auditor-database/insert_reserve_balance_summary_wrong_inconsistency.h" enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_balance_summary_wrong_inconsistency (struct - AUDITORDB_PostgresContext - *ctx, - const struct - TALER_AUDITORDB_ReserveBalanceSummaryWrongInconsistency - *dc) +TALER_AUDITORDB_insert_reserve_balance_summary_wrong_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *ctx, + const struct + TALER_AUDITORDB_ReserveBalanceSummaryWrongInconsistency + *dc) { struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/insert_reserve_in_inconsistency.c b/src/auditordb/insert_reserve_in_inconsistency.c @@ -19,11 +19,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_in_inconsistency (struct AUDITORDB_PostgresContext *pg - , - const struct - TALER_AUDITORDB_ReserveInInconsistency - *dc) +TALER_AUDITORDB_insert_reserve_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg + , + const struct + TALER_AUDITORDB_ReserveInInconsistency + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&dc->bank_row_id), diff --git a/src/auditordb/insert_reserve_info.c b/src/auditordb/insert_reserve_info.c @@ -24,13 +24,17 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_ReservePublicKeyP *reserve_pub - , - const struct TALER_AUDITORDB_ReserveFeeBalance * - rfb, - struct GNUNET_TIME_Timestamp expiration_date, - const struct TALER_FullPayto origin_account) +TALER_AUDITORDB_insert_reserve_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_ReservePublicKeyP * + reserve_pub + , + const struct + TALER_AUDITORDB_ReserveFeeBalance * + rfb, + struct GNUNET_TIME_Timestamp + expiration_date, + const struct TALER_FullPayto origin_account + ) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (reserve_pub), diff --git a/src/auditordb/insert_reserve_not_closed_inconsistency.c b/src/auditordb/insert_reserve_not_closed_inconsistency.c @@ -19,12 +19,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_not_closed_inconsistency (struct - AUDITORDB_PostgresContext * - ctx, - const struct - TALER_AUDITORDB_ReserveNotClosedInconsistency - *dc) +TALER_AUDITORDB_insert_reserve_not_closed_inconsistency (struct + TALER_AUDITORDB_PostgresContext + * + ctx, + const struct + TALER_AUDITORDB_ReserveNotClosedInconsistency + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (&dc->reserve_pub), diff --git a/src/auditordb/insert_row_inconsistency.c b/src/auditordb/insert_row_inconsistency.c @@ -20,9 +20,10 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_row_inconsistency (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_RowInconsistency *dc) +TALER_AUDITORDB_insert_row_inconsistency (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct + TALER_AUDITORDB_RowInconsistency *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_string (dc->row_table), diff --git a/src/auditordb/insert_row_minor_inconsistencies.c b/src/auditordb/insert_row_minor_inconsistencies.c @@ -19,11 +19,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_row_minor_inconsistencies (struct AUDITORDB_PostgresContext * - ctx, - const struct - TALER_AUDITORDB_RowMinorInconsistencies - *dc) +TALER_AUDITORDB_insert_row_minor_inconsistencies (struct + TALER_AUDITORDB_PostgresContext + * + ctx, + const struct + TALER_AUDITORDB_RowMinorInconsistencies + *dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_string (dc->row_table), diff --git a/src/auditordb/insert_wire_format_inconsistency.c b/src/auditordb/insert_wire_format_inconsistency.c @@ -19,11 +19,13 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_wire_format_inconsistency (struct AUDITORDB_PostgresContext * - ctx, - const struct - TALER_AUDITORDB_WireFormatInconsistency - *dc) +TALER_AUDITORDB_insert_wire_format_inconsistency (struct + TALER_AUDITORDB_PostgresContext + * + ctx, + const struct + TALER_AUDITORDB_WireFormatInconsistency + *dc) { struct GNUNET_PQ_QueryParam params[] = { TALER_PQ_query_param_amount (ctx->conn, diff --git a/src/auditordb/insert_wire_out_inconsistency.c b/src/auditordb/insert_wire_out_inconsistency.c @@ -21,10 +21,13 @@ #include "auditor-database/insert_wire_out_inconsistency.h" enum GNUNET_DB_QueryStatus -AUDITORDB_insert_wire_out_inconsistency (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_WireOutInconsistency * - dc) +TALER_AUDITORDB_insert_wire_out_inconsistency (struct + TALER_AUDITORDB_PostgresContext * + pg, + const struct + TALER_AUDITORDB_WireOutInconsistency + * + dc) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_string (dc->destination_account.full_payto), diff --git a/src/auditordb/lookup_reserve_in_inconsistency.c b/src/auditordb/lookup_reserve_in_inconsistency.c @@ -21,8 +21,8 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_lookup_reserve_in_inconsistency ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_lookup_reserve_in_inconsistency ( + struct TALER_AUDITORDB_PostgresContext *pg, uint64_t bank_row_id, struct TALER_AUDITORDB_ReserveInInconsistency *dc) { diff --git a/src/auditordb/pg.c b/src/auditordb/pg.c @@ -26,13 +26,13 @@ #include "pg_helper.h" -struct AUDITORDB_PostgresContext * +struct TALER_AUDITORDB_PostgresContext * TALER_AUDITORDB_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, bool skip_preflight) { - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; - pg = GNUNET_new (struct AUDITORDB_PostgresContext); + pg = GNUNET_new (struct TALER_AUDITORDB_PostgresContext); pg->cfg = cfg; if (GNUNET_OK != TALER_config_get_currency (cfg, @@ -47,7 +47,7 @@ TALER_AUDITORDB_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, void -TALER_AUDITORDB_disconnect (struct AUDITORDB_PostgresContext *pg) +TALER_AUDITORDB_disconnect (struct TALER_AUDITORDB_PostgresContext *pg) { if (NULL == pg) return; diff --git a/src/auditordb/pg_helper.h b/src/auditordb/pg_helper.h @@ -27,7 +27,7 @@ /** * Postgres database connection handle. */ -struct AUDITORDB_PostgresContext +struct TALER_AUDITORDB_PostgresContext { /** @@ -60,7 +60,7 @@ struct AUDITORDB_PostgresContext // FIXME: comment const char * -AUDITORDB_get_deletable_suppressable_table_name ( +TALER_AUDITORDB_get_deletable_suppressable_table_name ( enum TALER_AUDITORDB_DeletableSuppressableTables table); @@ -77,7 +77,7 @@ AUDITORDB_get_deletable_suppressable_table_name ( do { \ static struct { \ unsigned long long cnt; \ - struct AUDITORDB_PostgresContext *pg; \ + struct TALER_AUDITORDB_PostgresContext *pg; \ } preps_[2]; /* 2 ctrs for taler-auditor-sync*/ \ unsigned int off_ = 0; \ \ diff --git a/src/auditordb/preflight.c b/src/auditordb/preflight.c @@ -30,7 +30,7 @@ * @return #GNUNET_OK on success */ static enum GNUNET_GenericReturnValue -setup_connection (struct AUDITORDB_PostgresContext *pg) +setup_connection (struct TALER_AUDITORDB_PostgresContext *pg) { struct GNUNET_PQ_ExecuteStatement es[] = { GNUNET_PQ_make_try_execute ("SET search_path TO auditor;"), @@ -58,7 +58,7 @@ setup_connection (struct AUDITORDB_PostgresContext *pg) enum GNUNET_GenericReturnValue -AUDITORDB_preflight (struct AUDITORDB_PostgresContext *pg) +TALER_AUDITORDB_preflight (struct TALER_AUDITORDB_PostgresContext *pg) { struct GNUNET_PQ_ExecuteStatement es[] = { GNUNET_PQ_make_execute ("ROLLBACK"), diff --git a/src/auditordb/select_early_aggregations.c b/src/auditordb/select_early_aggregations.c @@ -43,7 +43,7 @@ struct EarlyAggregationContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -53,7 +53,7 @@ struct EarlyAggregationContext /** - * Helper function for #AUDITORDB_select_purse_expired(). + * Helper function for #TALER_AUDITORDB_select_purse_expired(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -67,7 +67,7 @@ early_aggregation_cb (void *cls, unsigned int num_results) { struct EarlyAggregationContext *eic = cls; - struct AUDITORDB_PostgresContext *pg = eic->pg; + struct TALER_AUDITORDB_PostgresContext *pg = eic->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -107,13 +107,14 @@ early_aggregation_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_select_early_aggregations (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_EarlyAggregationsCallback - cb, - void *cb_cls) +TALER_AUDITORDB_select_early_aggregations (struct + TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_EarlyAggregationsCallback + cb, + void *cb_cls) { uint64_t ulimit = (limit < 0) ? -limit : limit; struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/select_historic_denom_revenue.c b/src/auditordb/select_historic_denom_revenue.c @@ -41,7 +41,7 @@ struct HistoricDenomRevenueContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Number of results processed. @@ -51,7 +51,7 @@ struct HistoricDenomRevenueContext /** - * Helper function for #AUDITORDB_select_historic_denom_revenue(). + * Helper function for #TALER_AUDITORDB_select_historic_denom_revenue(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -65,7 +65,7 @@ historic_denom_revenue_cb (void *cls, unsigned int num_results) { struct HistoricDenomRevenueContext *hrc = cls; - struct AUDITORDB_PostgresContext *pg = hrc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = hrc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -112,8 +112,8 @@ historic_denom_revenue_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_select_historic_denom_revenue ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_select_historic_denom_revenue ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, TALER_AUDITORDB_HistoricDenominationRevenueDataCallback cb, diff --git a/src/auditordb/select_historic_reserve_revenue.c b/src/auditordb/select_historic_reserve_revenue.c @@ -41,7 +41,7 @@ struct HistoricReserveRevenueContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Number of results processed. @@ -51,7 +51,7 @@ struct HistoricReserveRevenueContext /** - * Helper function for #AUDITORDB_select_historic_reserve_revenue(). + * Helper function for #TALER_AUDITORDB_select_historic_reserve_revenue(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -65,7 +65,7 @@ historic_reserve_revenue_cb (void *cls, unsigned int num_results) { struct HistoricReserveRevenueContext *hrc = cls; - struct AUDITORDB_PostgresContext *pg = hrc->pg; + struct TALER_AUDITORDB_PostgresContext *pg = hrc->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -107,8 +107,8 @@ historic_reserve_revenue_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_select_historic_reserve_revenue ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_select_historic_reserve_revenue ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, TALER_AUDITORDB_HistoricReserveRevenueDataCallback cb, diff --git a/src/auditordb/select_pending_deposits.c b/src/auditordb/select_pending_deposits.c @@ -42,7 +42,7 @@ struct WireMissingContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -52,7 +52,7 @@ struct WireMissingContext /** - * Helper function for #AUDITORDB_select_purse_expired(). + * Helper function for #TALER_AUDITORDB_select_purse_expired(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -66,7 +66,7 @@ wire_missing_cb (void *cls, unsigned int num_results) { struct WireMissingContext *eic = cls; - struct AUDITORDB_PostgresContext *pg = eic->pg; + struct TALER_AUDITORDB_PostgresContext *pg = eic->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -114,13 +114,14 @@ wire_missing_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_select_pending_deposits (struct AUDITORDB_PostgresContext *pg, - struct GNUNET_TIME_Absolute deadline, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_WireMissingCallback cb, - void *cb_cls) +TALER_AUDITORDB_select_pending_deposits (struct + TALER_AUDITORDB_PostgresContext *pg, + struct GNUNET_TIME_Absolute deadline, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_WireMissingCallback cb, + void *cb_cls) { uint64_t ulimit = (limit < 0) ? -limit : limit; struct GNUNET_PQ_QueryParam params[] = { diff --git a/src/auditordb/select_purse_expired.c b/src/auditordb/select_purse_expired.c @@ -42,7 +42,7 @@ struct PurseExpiredContext /** * Plugin context. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; /** * Query status to return. @@ -52,7 +52,7 @@ struct PurseExpiredContext /** - * Helper function for #AUDITORDB_select_purse_expired(). + * Helper function for #TALER_AUDITORDB_select_purse_expired(). * To be called with the results of a SELECT statement * that has returned @a num_results results. * @@ -66,7 +66,7 @@ purse_expired_cb (void *cls, unsigned int num_results) { struct PurseExpiredContext *eic = cls; - struct AUDITORDB_PostgresContext *pg = eic->pg; + struct TALER_AUDITORDB_PostgresContext *pg = eic->pg; for (unsigned int i = 0; i < num_results; i++) { @@ -104,9 +104,10 @@ purse_expired_cb (void *cls, enum GNUNET_DB_QueryStatus -AUDITORDB_select_purse_expired (struct AUDITORDB_PostgresContext *pg, - TALER_AUDITORDB_ExpiredPurseCallback cb, - void *cb_cls) +TALER_AUDITORDB_select_purse_expired (struct TALER_AUDITORDB_PostgresContext *pg + , + TALER_AUDITORDB_ExpiredPurseCallback cb, + void *cb_cls) { struct GNUNET_TIME_Timestamp now = GNUNET_TIME_timestamp_get (); diff --git a/src/auditordb/select_reserve_in_inconsistency.c b/src/auditordb/select_reserve_in_inconsistency.c @@ -26,8 +26,8 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_select_reserve_in_inconsistency ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_select_reserve_in_inconsistency ( + struct TALER_AUDITORDB_PostgresContext *pg, uint64_t bank_row_id, struct TALER_AUDITORDB_ReserveInInconsistency *dc) { diff --git a/src/auditordb/start.c b/src/auditordb/start.c @@ -25,14 +25,14 @@ enum GNUNET_GenericReturnValue -AUDITORDB_start (struct AUDITORDB_PostgresContext *pg) +TALER_AUDITORDB_start (struct TALER_AUDITORDB_PostgresContext *pg) { struct GNUNET_PQ_ExecuteStatement es[] = { GNUNET_PQ_make_execute ("START TRANSACTION ISOLATION LEVEL SERIALIZABLE"), GNUNET_PQ_EXECUTE_STATEMENT_END }; - AUDITORDB_preflight (pg); + TALER_AUDITORDB_preflight (pg); if (GNUNET_OK != GNUNET_PQ_exec_statements (pg->conn, es)) @@ -46,7 +46,7 @@ AUDITORDB_start (struct AUDITORDB_PostgresContext *pg) void -AUDITORDB_rollback (struct AUDITORDB_PostgresContext *pg) +TALER_AUDITORDB_rollback (struct TALER_AUDITORDB_PostgresContext *pg) { struct GNUNET_PQ_ExecuteStatement es[] = { GNUNET_PQ_make_execute ("ROLLBACK"), @@ -60,7 +60,7 @@ AUDITORDB_rollback (struct AUDITORDB_PostgresContext *pg) enum GNUNET_DB_QueryStatus -AUDITORDB_commit (struct AUDITORDB_PostgresContext *pg) +TALER_AUDITORDB_commit (struct TALER_AUDITORDB_PostgresContext *pg) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_end diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c @@ -102,7 +102,7 @@ static struct GNUNET_TIME_Timestamp future; /** * Database under test. */ -static struct AUDITORDB_PostgresContext *pg; +static struct TALER_AUDITORDB_PostgresContext *pg; /** * Historic denomination revenue value. @@ -223,25 +223,25 @@ run (void *cls) return; } - (void) AUDITORDB_drop_tables (pg, - GNUNET_YES); + (void) TALER_AUDITORDB_drop_tables (pg, + GNUNET_YES); if (GNUNET_OK != - AUDITORDB_create_tables (cfg, - false, - 0)) + TALER_AUDITORDB_create_tables (cfg, + false, + 0)) { result = 77; goto unload; } if (GNUNET_SYSERR == - AUDITORDB_preflight (pg)) + TALER_AUDITORDB_preflight (pg)) { result = 77; goto drop; } FAILIF (GNUNET_OK != - AUDITORDB_start (pg)); + TALER_AUDITORDB_start (pg)); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "initializing\n"); @@ -318,31 +318,31 @@ run (void *cls) }; FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_insert_reserve_info (pg, - &reserve_pub, - &rfb, - past, - pt)); + TALER_AUDITORDB_insert_reserve_info (pg, + &reserve_pub, + &rfb, + past, + pt)); } GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test: update_reserve_info\n"); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_update_reserve_info (pg, - &reserve_pub, - &rfb, - future)); + TALER_AUDITORDB_update_reserve_info (pg, + &reserve_pub, + &rfb, + future)); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test: get_reserve_info\n"); { struct TALER_FullPayto payto; FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_get_reserve_info (pg, - &reserve_pub, - &rowid, - &rfb2, - &date, - &payto)); + TALER_AUDITORDB_get_reserve_info (pg, + &reserve_pub, + &rowid, + &rfb2, + &date, + &payto)); FAILIF (0 != strcmp (payto.full_payto, "payto://bla/blub?receiver-name=blub")); GNUNET_free (payto.full_payto); @@ -379,18 +379,18 @@ run (void *cls) sizeof (cl.wtid)); cl.deadline = GNUNET_TIME_absolute_get (); FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != - AUDITORDB_delete_auditor_closure_lag (pg, - &cl.amount, - &cl.wtid, - cl.account)); + TALER_AUDITORDB_delete_auditor_closure_lag (pg, + &cl.amount, + &cl.wtid, + cl.account)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_insert_auditor_closure_lags (pg, - &cl)); + TALER_AUDITORDB_insert_auditor_closure_lags (pg, + &cl)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_delete_auditor_closure_lag (pg, - &cl.amount, - &cl.wtid, - cl.account)); + TALER_AUDITORDB_delete_auditor_closure_lag (pg, + &cl.amount, + &cl.wtid, + cl.account)); } { @@ -413,22 +413,22 @@ run (void *cls) &dcd.recoup_loss)); dcd.num_issued = 62; FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_insert_denomination_balance (pg, - &denom_pub_hash, - &dcd)); + TALER_AUDITORDB_insert_denomination_balance (pg, + &denom_pub_hash, + &dcd)); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test: update_denomination_balance\n"); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_update_denomination_balance (pg, - &denom_pub_hash, - &dcd)); + TALER_AUDITORDB_update_denomination_balance (pg, + &denom_pub_hash, + &dcd)); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test: get_denomination_balance\n"); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_get_denomination_balance (pg, - &denom_pub_hash, - &dcd2)); + TALER_AUDITORDB_get_denomination_balance (pg, + &denom_pub_hash, + &dcd2)); FAILIF (0 != TALER_amount_cmp (&dcd2.denom_balance, &dcd.denom_balance)); FAILIF (0 != TALER_amount_cmp (&dcd2.denom_loss, @@ -449,21 +449,21 @@ run (void *cls) TALER_string_to_amount (CURRENCY ":23.456789", &rloss)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_insert_historic_denom_revenue (pg, - &denom_pub_hash, - past, - &rbalance, - &rloss)); + TALER_AUDITORDB_insert_historic_denom_revenue (pg, + &denom_pub_hash, + past, + &rbalance, + &rloss)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_insert_historic_denom_revenue (pg, - &rnd_hash, - now, - &rbalance, - &rloss)); + TALER_AUDITORDB_insert_historic_denom_revenue (pg, + &rnd_hash, + now, + &rbalance, + &rloss)); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test: select_historic_denom_revenue\n"); FAILIF (0 >= - AUDITORDB_select_historic_denom_revenue ( + TALER_AUDITORDB_select_historic_denom_revenue ( pg, 1024, /* limit */ 0, /* offset */ @@ -475,19 +475,19 @@ run (void *cls) TALER_string_to_amount (CURRENCY ":56.789012", &reserve_profits)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_insert_historic_reserve_revenue (pg, - past, - future, - &reserve_profits)); + TALER_AUDITORDB_insert_historic_reserve_revenue (pg, + past, + future, + &reserve_profits)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_insert_historic_reserve_revenue (pg, - now, - future, - &reserve_profits)); + TALER_AUDITORDB_insert_historic_reserve_revenue (pg, + now, + future, + &reserve_profits)); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test: select_historic_reserve_revenue\n"); FAILIF (0 >= - AUDITORDB_select_historic_reserve_revenue ( + TALER_AUDITORDB_select_historic_reserve_revenue ( pg, 1024, /* limit */ 0, /* offset */ @@ -495,24 +495,24 @@ run (void *cls) NULL)); FAILIF (0 > - AUDITORDB_commit (pg)); + TALER_AUDITORDB_commit (pg)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - AUDITORDB_del_reserve_info (pg, - &reserve_pub)); + TALER_AUDITORDB_del_reserve_info (pg, + &reserve_pub)); #if GC_IMPLEMENTED FAILIF (GNUNET_OK != - AUDITORDB_gc (pg)); + TALER_AUDITORDB_gc (pg)); #endif result = 0; drop: - AUDITORDB_rollback (pg); + TALER_AUDITORDB_rollback (pg); GNUNET_break (GNUNET_OK == - AUDITORDB_drop_tables (pg, - GNUNET_YES)); + TALER_AUDITORDB_drop_tables (pg, + GNUNET_YES)); unload: TALER_AUDITORDB_disconnect (pg); pg = NULL; diff --git a/src/auditordb/test_auditordb_checkpoints.c b/src/auditordb/test_auditordb_checkpoints.c @@ -70,7 +70,7 @@ static int result = -1; /** * Database connection under test. */ -static struct AUDITORDB_PostgresContext *pg; +static struct TALER_AUDITORDB_PostgresContext *pg; /** @@ -108,12 +108,12 @@ run (void *cls) return; } - (void) AUDITORDB_drop_tables (pg, - GNUNET_YES); + (void) TALER_AUDITORDB_drop_tables (pg, + GNUNET_YES); if (GNUNET_OK != - AUDITORDB_create_tables (cfg, - false, - 0)) + TALER_AUDITORDB_create_tables (cfg, + false, + 0)) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to 'create_tables'\n"); @@ -121,7 +121,7 @@ run (void *cls) goto unload; } if (GNUNET_SYSERR == - AUDITORDB_preflight (pg)) + TALER_AUDITORDB_preflight (pg)) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed preflight check\n"); @@ -130,58 +130,58 @@ run (void *cls) } FAILIF (GNUNET_OK != - AUDITORDB_start (pg)); + TALER_AUDITORDB_start (pg)); /* Test inserting a blank value, should tell us one result */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_insert_auditor_progress (pg, - "Test", - 69, - NULL) + TALER_AUDITORDB_insert_auditor_progress (pg, + "Test", + 69, + NULL) ); /* Test re-inserting the same value; should yield no results */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == - AUDITORDB_insert_auditor_progress (pg, - "Test", - 69, - NULL) + TALER_AUDITORDB_insert_auditor_progress (pg, + "Test", + 69, + NULL) ); /* Test inserting multiple values, with one already existing */ GNUNET_assert ( - 2 == AUDITORDB_insert_auditor_progress (pg, - "Test", - 69, - "Test2", - 123, - "Test3", - 245, - NULL) + 2 == TALER_AUDITORDB_insert_auditor_progress (pg, + "Test", + 69, + "Test2", + 123, + "Test3", + 245, + NULL) ); /* Test re-re-inserting the same key with a different value; should also yield no results */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == - AUDITORDB_insert_auditor_progress (pg, - "Test", - 42, - NULL) + TALER_AUDITORDB_insert_auditor_progress (pg, + "Test", + 42, + NULL) ); /* Test updating the same key (again) with a different value; should yield a result */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_update_auditor_progress (pg, - "Test", - 42, - NULL) + TALER_AUDITORDB_update_auditor_progress (pg, + "Test", + 42, + NULL) ); /* Test updating a key that doesn't exist; should yield 0 */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == - AUDITORDB_update_auditor_progress (pg, - "NonexistentTest", - 1, - NULL) + TALER_AUDITORDB_update_auditor_progress (pg, + "NonexistentTest", + 1, + NULL) ); /* Right now, the state should look like this: @@ -196,7 +196,7 @@ run (void *cls) GNUNET_assert ( 3 == - AUDITORDB_get_auditor_progress ( + TALER_AUDITORDB_get_auditor_progress ( pg, "Test", &value, @@ -216,7 +216,7 @@ run (void *cls) GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_get_auditor_progress ( + TALER_AUDITORDB_get_auditor_progress ( pg, "Test2", &value, @@ -229,7 +229,7 @@ run (void *cls) GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_get_auditor_progress ( + TALER_AUDITORDB_get_auditor_progress ( pg, "Test3", &value, @@ -243,7 +243,7 @@ run (void *cls) /* Try fetching value that does not exist */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_get_auditor_progress ( + TALER_AUDITORDB_get_auditor_progress ( pg, "TestNX", &value, @@ -255,53 +255,53 @@ run (void *cls) /* Test inserting a blank value, should tell us one result */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_insert_balance (pg, - "Test", - &a1, - NULL) + TALER_AUDITORDB_insert_balance (pg, + "Test", + &a1, + NULL) ); /* Test re-inserting the same value; should yield no results */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == - AUDITORDB_insert_balance (pg, - "Test", - &a1, - NULL) + TALER_AUDITORDB_insert_balance (pg, + "Test", + &a1, + NULL) ); /* Test inserting multiple values, with one already existing */ GNUNET_assert ( - 2 == AUDITORDB_insert_balance (pg, - "Test", - &a1, - "Test2", - &a2, - "Test3", - &a3, - NULL) + 2 == TALER_AUDITORDB_insert_balance (pg, + "Test", + &a1, + "Test2", + &a2, + "Test3", + &a3, + NULL) ); /* Test re-re-inserting the same key with a different value; should also yield no results */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == - AUDITORDB_insert_balance (pg, - "Test", - &a2, - NULL) + TALER_AUDITORDB_insert_balance (pg, + "Test", + &a2, + NULL) ); /* Test updating the same key (again) with a different value; should yield a result */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_update_balance (pg, - "Test", - &a2, - NULL) + TALER_AUDITORDB_update_balance (pg, + "Test", + &a2, + NULL) ); /* Test updating a key that doesn't exist; should yield 0 */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == - AUDITORDB_update_balance (pg, - "NonexistentTest", - &a2, - NULL) + TALER_AUDITORDB_update_balance (pg, + "NonexistentTest", + &a2, + NULL) ); /* Right now, the state should look like this: @@ -311,7 +311,7 @@ run (void *cls) * Let's make sure that's the case! */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_get_balance ( + TALER_AUDITORDB_get_balance ( pg, "Test", &a1, @@ -324,7 +324,7 @@ run (void *cls) /* Ensure the rest are also at their expected values */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_get_balance ( + TALER_AUDITORDB_get_balance ( pg, "Test2", &a1, @@ -335,7 +335,7 @@ run (void *cls) &a2)); GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_get_balance ( + TALER_AUDITORDB_get_balance ( pg, "Test3", &a1, @@ -348,7 +348,7 @@ run (void *cls) /* Try fetching value that does not exist */ GNUNET_assert ( GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == - AUDITORDB_get_balance ( + TALER_AUDITORDB_get_balance ( pg, "TestNX", &a1, @@ -358,11 +358,11 @@ run (void *cls) result = 0; GNUNET_break (0 <= - AUDITORDB_commit (pg)); + TALER_AUDITORDB_commit (pg)); drop: GNUNET_break (GNUNET_OK == - AUDITORDB_drop_tables (pg, - GNUNET_YES)); + TALER_AUDITORDB_drop_tables (pg, + GNUNET_YES)); unload: TALER_AUDITORDB_disconnect (pg); pg = NULL; diff --git a/src/auditordb/update_auditor_progress.c b/src/auditordb/update_auditor_progress.c @@ -24,10 +24,11 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_update_auditor_progress (struct AUDITORDB_PostgresContext *pg, - const char *progress_key, - uint64_t progress_offset, - ...) +TALER_AUDITORDB_update_auditor_progress (struct + TALER_AUDITORDB_PostgresContext *pg, + const char *progress_key, + uint64_t progress_offset, + ...) { unsigned int cnt = 1; va_list ap; diff --git a/src/auditordb/update_balance.c b/src/auditordb/update_balance.c @@ -24,10 +24,10 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_update_balance (struct AUDITORDB_PostgresContext *pg, - const char *balance_key, - const struct TALER_Amount *balance_amount, - ...) +TALER_AUDITORDB_update_balance (struct TALER_AUDITORDB_PostgresContext *pg, + const char *balance_key, + const struct TALER_Amount *balance_amount, + ...) { unsigned int cnt = 1; va_list ap; diff --git a/src/auditordb/update_denomination_balance.c b/src/auditordb/update_denomination_balance.c @@ -24,12 +24,15 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_update_denomination_balance (struct AUDITORDB_PostgresContext *pg, - const struct TALER_DenominationHashP * - denom_pub_hash, - const struct - TALER_AUDITORDB_DenominationCirculationData - *dcd) +TALER_AUDITORDB_update_denomination_balance (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_DenominationHashP * + denom_pub_hash, + const struct + TALER_AUDITORDB_DenominationCirculationData + *dcd) { struct GNUNET_PQ_QueryParam params[] = { TALER_PQ_query_param_amount (pg->conn, diff --git a/src/auditordb/update_generic_suppressed.c b/src/auditordb/update_generic_suppressed.c @@ -27,18 +27,19 @@ struct Preparations /** * Which DB did we do prepare for. */ - struct AUDITORDB_PostgresContext *pg; + struct TALER_AUDITORDB_PostgresContext *pg; }; enum GNUNET_DB_QueryStatus -AUDITORDB_update_generic_suppressed (struct AUDITORDB_PostgresContext *pg, - enum - TALER_AUDITORDB_DeletableSuppressableTables - table, - uint64_t row_id, - bool suppressed) +TALER_AUDITORDB_update_generic_suppressed (struct + TALER_AUDITORDB_PostgresContext *pg, + enum + TALER_AUDITORDB_DeletableSuppressableTables + table, + uint64_t row_id, + bool suppressed) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&row_id), @@ -49,7 +50,8 @@ AUDITORDB_update_generic_suppressed (struct AUDITORDB_PostgresContext *pg, TALER_AUDITORDB_DELETABLESUPPRESSABLE_TABLES_MAX]; struct Preparations *prep = &preps[table]; - const char *table_name = AUDITORDB_get_deletable_suppressable_table_name ( + const char *table_name = TALER_AUDITORDB_get_deletable_suppressable_table_name + ( table); char statement_name[256]; diff --git a/src/auditordb/update_purse_info.c b/src/auditordb/update_purse_info.c @@ -24,10 +24,10 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_update_purse_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_PurseContractPublicKeyP * - purse_pub, - const struct TALER_Amount *balance) +TALER_AUDITORDB_update_purse_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_PurseContractPublicKeyP * + purse_pub, + const struct TALER_Amount *balance) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (purse_pub), diff --git a/src/auditordb/update_reserve_info.c b/src/auditordb/update_reserve_info.c @@ -24,12 +24,15 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_update_reserve_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_ReservePublicKeyP *reserve_pub - , - const struct TALER_AUDITORDB_ReserveFeeBalance * - rfb, - struct GNUNET_TIME_Timestamp expiration_date) +TALER_AUDITORDB_update_reserve_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_ReservePublicKeyP * + reserve_pub + , + const struct + TALER_AUDITORDB_ReserveFeeBalance * + rfb, + struct GNUNET_TIME_Timestamp + expiration_date) { struct GNUNET_PQ_QueryParam params[] = { TALER_PQ_query_param_amount (pg->conn, diff --git a/src/auditordb/update_wire_fee_summary.c b/src/auditordb/update_wire_fee_summary.c @@ -24,8 +24,10 @@ enum GNUNET_DB_QueryStatus -AUDITORDB_update_wire_fee_summary (struct AUDITORDB_PostgresContext *pg, - const struct TALER_Amount *wire_fee_balance) +TALER_AUDITORDB_update_wire_fee_summary (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_Amount * + wire_fee_balance) { struct GNUNET_PQ_QueryParam params[] = { TALER_PQ_query_param_amount (pg->conn, diff --git a/src/include/auditor-database/create_tables.h b/src/include/auditor-database/create_tables.h @@ -35,9 +35,9 @@ * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure */ enum GNUNET_GenericReturnValue -AUDITORDB_create_tables (const struct GNUNET_CONFIGURATION_Handle *cfg, - bool support_partitions, - uint32_t num_partitions); +TALER_AUDITORDB_create_tables (const struct GNUNET_CONFIGURATION_Handle *cfg, + bool support_partitions, + uint32_t num_partitions); #endif diff --git a/src/include/auditor-database/del_denomination_balance.h b/src/include/auditor-database/del_denomination_balance.h @@ -33,8 +33,9 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_del_denomination_balance (struct AUDITORDB_PostgresContext *pg, - const struct TALER_DenominationHashP * - denom_pub_hash); +TALER_AUDITORDB_del_denomination_balance (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_DenominationHashP * + denom_pub_hash); #endif diff --git a/src/include/auditor-database/del_reserve_info.h b/src/include/auditor-database/del_reserve_info.h @@ -33,8 +33,9 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_del_reserve_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_ReservePublicKeyP *reserve_pub); +TALER_AUDITORDB_del_reserve_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_ReservePublicKeyP * + reserve_pub); #endif diff --git a/src/include/auditor-database/delete_auditor_closure_lag.h b/src/include/auditor-database/delete_auditor_closure_lag.h @@ -38,11 +38,14 @@ * found */ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_auditor_closure_lag (struct AUDITORDB_PostgresContext *pg, - const struct TALER_Amount *amount, - const struct - TALER_WireTransferIdentifierRawP *wtid, - struct TALER_FullPayto credit_account_uri) +TALER_AUDITORDB_delete_auditor_closure_lag (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_Amount *amount, + const struct + TALER_WireTransferIdentifierRawP * + wtid, + struct TALER_FullPayto + credit_account_uri) ; #endif diff --git a/src/include/auditor-database/delete_early_aggregation.h b/src/include/auditor-database/delete_early_aggregation.h @@ -34,8 +34,9 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_early_aggregation (struct AUDITORDB_PostgresContext *pg, - uint64_t batch_deposit_serial_id); +TALER_AUDITORDB_delete_early_aggregation (struct + TALER_AUDITORDB_PostgresContext *pg, + uint64_t batch_deposit_serial_id); #endif diff --git a/src/include/auditor-database/delete_generic.h b/src/include/auditor-database/delete_generic.h @@ -29,9 +29,10 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_generic (struct AUDITORDB_PostgresContext *pg, - enum TALER_AUDITORDB_DeletableSuppressableTables table - , - uint64_t row_id); +TALER_AUDITORDB_delete_generic (struct TALER_AUDITORDB_PostgresContext *pg, + enum TALER_AUDITORDB_DeletableSuppressableTables + table + , + uint64_t row_id); #endif diff --git a/src/include/auditor-database/delete_pending_deposit.h b/src/include/auditor-database/delete_pending_deposit.h @@ -34,8 +34,9 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_pending_deposit (struct AUDITORDB_PostgresContext *pg, - uint64_t batch_deposit_serial_id); +TALER_AUDITORDB_delete_pending_deposit (struct TALER_AUDITORDB_PostgresContext * + pg, + uint64_t batch_deposit_serial_id); #endif diff --git a/src/include/auditor-database/delete_purse_info.h b/src/include/auditor-database/delete_purse_info.h @@ -32,9 +32,9 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_purse_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_PurseContractPublicKeyP * - purse_pub); +TALER_AUDITORDB_delete_purse_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_PurseContractPublicKeyP * + purse_pub); #endif diff --git a/src/include/auditor-database/delete_reserve_in_inconsistency.h b/src/include/auditor-database/delete_reserve_in_inconsistency.h @@ -32,7 +32,9 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_reserve_in_inconsistency (struct AUDITORDB_PostgresContext *pg, - uint64_t row_id); +TALER_AUDITORDB_delete_reserve_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + uint64_t row_id); #endif diff --git a/src/include/auditor-database/delete_wire_out_inconsistency_if_matching.h b/src/include/auditor-database/delete_wire_out_inconsistency_if_matching.h @@ -27,11 +27,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_delete_wire_out_inconsistency_if_matching (struct - AUDITORDB_PostgresContext * - pg, - const struct - TALER_AUDITORDB_WireOutInconsistency - *dc); +TALER_AUDITORDB_delete_wire_out_inconsistency_if_matching (struct + TALER_AUDITORDB_PostgresContext + * + pg, + const struct + TALER_AUDITORDB_WireOutInconsistency + *dc); #endif diff --git a/src/include/auditor-database/drop_tables.h b/src/include/auditor-database/drop_tables.h @@ -31,14 +31,14 @@ * This should only be used by testcases or when restarting the * auditor from scratch. * - * @param cls the `struct AUDITORDB_PostgresContext` with the plugin-specific state + * @param cls the `struct TALER_AUDITORDB_PostgresContext` with the plugin-specific state * @param drop_exchangelist drop all tables, including schema versioning * and the exchange and deposit_confirmations table; NOT to be * used when restarting the auditor * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure */ enum GNUNET_GenericReturnValue -AUDITORDB_drop_tables (void *cls, - bool drop_exchangelist); +TALER_AUDITORDB_drop_tables (void *cls, + bool drop_exchangelist); #endif diff --git a/src/include/auditor-database/event_listen.h b/src/include/auditor-database/event_listen.h @@ -36,11 +36,11 @@ * @return handle useful to cancel the listener */ struct GNUNET_DB_EventHandler * -AUDITORDB_event_listen (struct AUDITORDB_PostgresContext *pg, - const struct GNUNET_DB_EventHeaderP *es, - struct GNUNET_TIME_Relative timeout, - GNUNET_DB_EventCallback cb, - void *cb_cls); +TALER_AUDITORDB_event_listen (struct TALER_AUDITORDB_PostgresContext *pg, + const struct GNUNET_DB_EventHeaderP *es, + struct GNUNET_TIME_Relative timeout, + GNUNET_DB_EventCallback cb, + void *cb_cls); /** @@ -49,7 +49,7 @@ AUDITORDB_event_listen (struct AUDITORDB_PostgresContext *pg, * @param eh handle to unregister. */ void -AUDITORDB_event_listen_cancel (struct GNUNET_DB_EventHandler *eh); +TALER_AUDITORDB_event_listen_cancel (struct GNUNET_DB_EventHandler *eh); #endif diff --git a/src/include/auditor-database/event_notify.h b/src/include/auditor-database/event_notify.h @@ -34,9 +34,9 @@ * @param extra_size number of bytes in @a extra */ void -AUDITORDB_event_notify (struct AUDITORDB_PostgresContext *pg, - const struct GNUNET_DB_EventHeaderP *es, - const void *extra, - size_t extra_size); +TALER_AUDITORDB_event_notify (struct TALER_AUDITORDB_PostgresContext *pg, + const struct GNUNET_DB_EventHeaderP *es, + const void *extra, + size_t extra_size); #endif diff --git a/src/include/auditor-database/gc.h b/src/include/auditor-database/gc.h @@ -35,7 +35,7 @@ * #GNUNET_SYSERR on DB errors */ enum GNUNET_GenericReturnValue -AUDITORDB_gc (struct AUDITORDB_PostgresContext *pg); +TALER_AUDITORDB_gc (struct TALER_AUDITORDB_PostgresContext *pg); #endif diff --git a/src/include/auditor-database/get_amount_arithmetic_inconsistency.h b/src/include/auditor-database/get_amount_arithmetic_inconsistency.h @@ -47,13 +47,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_amount_arithmetic_inconsistency (struct - AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_AmountArithmeticInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_amount_arithmetic_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_AmountArithmeticInconsistencyCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_auditor_closure_lags.h b/src/include/auditor-database/get_auditor_closure_lags.h @@ -63,11 +63,13 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_auditor_closure_lags (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_ClosureLagsCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_auditor_closure_lags (struct + TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_ClosureLagsCallback cb + , + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_auditor_progress.h b/src/include/auditor-database/get_auditor_progress.h @@ -34,9 +34,10 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_auditor_progress (struct AUDITORDB_PostgresContext *pg, - const char *progress_key, - uint64_t *progress_offset, - ...); +TALER_AUDITORDB_get_auditor_progress (struct TALER_AUDITORDB_PostgresContext *pg + , + const char *progress_key, + uint64_t *progress_offset, + ...); #endif diff --git a/src/include/auditor-database/get_bad_sig_losses.h b/src/include/auditor-database/get_bad_sig_losses.h @@ -63,14 +63,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_bad_sig_losses (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - const struct GNUNET_CRYPTO_EddsaPublicKey * - op_spec_pub, - const char *op, - TALER_AUDITORDB_BadSigLossesCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_bad_sig_losses (struct TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + const struct GNUNET_CRYPTO_EddsaPublicKey * + op_spec_pub, + const char *op, + TALER_AUDITORDB_BadSigLossesCallback cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_balance.h b/src/include/auditor-database/get_balance.h @@ -36,9 +36,9 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_balance (struct AUDITORDB_PostgresContext *pg, - const char *balance_key, - struct TALER_Amount *balance_value, - ...); +TALER_AUDITORDB_get_balance (struct TALER_AUDITORDB_PostgresContext *pg, + const char *balance_key, + struct TALER_Amount *balance_value, + ...); #endif diff --git a/src/include/auditor-database/get_balances.h b/src/include/auditor-database/get_balances.h @@ -55,9 +55,9 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_balances (struct AUDITORDB_PostgresContext *pg, - const char *balance_key, - TALER_AUDITORDB_BalancesCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_balances (struct TALER_AUDITORDB_PostgresContext *pg, + const char *balance_key, + TALER_AUDITORDB_BalancesCallback cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_coin_inconsistency.h b/src/include/auditor-database/get_coin_inconsistency.h @@ -65,12 +65,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_coin_inconsistency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_CoinInconsistencyCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_coin_inconsistency (struct TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_CoinInconsistencyCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_denomination_balance.h b/src/include/auditor-database/get_denomination_balance.h @@ -34,11 +34,12 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_denomination_balance (struct AUDITORDB_PostgresContext *pg, - const struct TALER_DenominationHashP * - denom_pub_hash, - struct - TALER_AUDITORDB_DenominationCirculationData - *dcd); +TALER_AUDITORDB_get_denomination_balance (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_DenominationHashP * + denom_pub_hash, + struct + TALER_AUDITORDB_DenominationCirculationData + *dcd); #endif diff --git a/src/include/auditor-database/get_denomination_key_validity_withdraw_inconsistency.h b/src/include/auditor-database/get_denomination_key_validity_withdraw_inconsistency.h @@ -63,15 +63,18 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_denomination_key_validity_withdraw_inconsistency (struct - AUDITORDB_PostgresContext - *pg, - int64_t limit, - uint64_t offset, - bool - return_suppressed, - TALER_AUDITORDB_DenominationKeyValidityWithdrawInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_denomination_key_validity_withdraw_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t + limit, + uint64_t + offset, + bool + return_suppressed, + TALER_AUDITORDB_DenominationKeyValidityWithdrawInconsistencyCallback + cb, + void * + cb_cls); #endif diff --git a/src/include/auditor-database/get_denomination_pending.h b/src/include/auditor-database/get_denomination_pending.h @@ -46,11 +46,12 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_denomination_pending (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - TALER_AUDITORDB_DenominationPendingCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_denomination_pending (struct + TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + TALER_AUDITORDB_DenominationPendingCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_denominations_without_sigs.h b/src/include/auditor-database/get_denominations_without_sigs.h @@ -47,12 +47,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_denominations_without_sigs (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_DenominationsWithoutSigsCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_denominations_without_sigs (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_DenominationsWithoutSigsCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_deposit_confirmations.h b/src/include/auditor-database/get_deposit_confirmations.h @@ -51,8 +51,8 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_deposit_confirmations ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_get_deposit_confirmations ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/include/auditor-database/get_emergency.h b/src/include/auditor-database/get_emergency.h @@ -61,11 +61,11 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_emergency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_EmergencyCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_emergency (struct TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_EmergencyCallback cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_emergency_by_count.h b/src/include/auditor-database/get_emergency_by_count.h @@ -61,11 +61,13 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_emergency_by_count (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_EmergenciesByCountCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_emergency_by_count (struct TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_EmergenciesByCountCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_exchange_signkeys.h b/src/include/auditor-database/get_exchange_signkeys.h @@ -61,11 +61,13 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_exchange_signkeys (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_ExchangeSignkeysCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_exchange_signkeys (struct TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_ExchangeSignkeysCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_fee_time_inconsistency.h b/src/include/auditor-database/get_fee_time_inconsistency.h @@ -61,12 +61,13 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_fee_time_inconsistency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_FeeTimeInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_fee_time_inconsistency (struct + TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_FeeTimeInconsistencyCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_misattribution_in_inconsistency.h b/src/include/auditor-database/get_misattribution_in_inconsistency.h @@ -47,13 +47,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_misattribution_in_inconsistency (struct - AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_MisattributionInInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_misattribution_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_MisattributionInInconsistencyCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_progress_points.h b/src/include/auditor-database/get_progress_points.h @@ -57,10 +57,10 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_progress_points (struct AUDITORDB_PostgresContext *pg, - const char *progress_key, - TALER_AUDITORDB_ProgressPointsCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_progress_points (struct TALER_AUDITORDB_PostgresContext *pg, + const char *progress_key, + TALER_AUDITORDB_ProgressPointsCallback cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_purse_info.h b/src/include/auditor-database/get_purse_info.h @@ -37,10 +37,11 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_purse_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_PurseContractPublicKeyP *purse_pub, - uint64_t *rowid, - struct TALER_Amount *balance, - struct GNUNET_TIME_Timestamp *expiration_date); +TALER_AUDITORDB_get_purse_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_PurseContractPublicKeyP * + purse_pub, + uint64_t *rowid, + struct TALER_Amount *balance, + struct GNUNET_TIME_Timestamp *expiration_date); #endif diff --git a/src/include/auditor-database/get_purse_not_closed_inconsistencies.h b/src/include/auditor-database/get_purse_not_closed_inconsistencies.h @@ -61,13 +61,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_purse_not_closed_inconsistencies (struct - AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_PurseNotClosedInconsistenciesCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_purse_not_closed_inconsistencies (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_PurseNotClosedInconsistenciesCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_purses.h b/src/include/auditor-database/get_purses.h @@ -58,10 +58,10 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_purses (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - TALER_AUDITORDB_PursesCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_purses (struct TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + TALER_AUDITORDB_PursesCallback cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_reserve_balance_insufficient_inconsistency.h b/src/include/auditor-database/get_reserve_balance_insufficient_inconsistency.h @@ -61,15 +61,16 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_balance_insufficient_inconsistency (struct - AUDITORDB_PostgresContext - *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed - , - TALER_AUDITORDB_ReserveBalanceInsufficientInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_reserve_balance_insufficient_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool + return_suppressed + , + TALER_AUDITORDB_ReserveBalanceInsufficientInconsistencyCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_reserve_balance_summary_wrong_inconsistency.h b/src/include/auditor-database/get_reserve_balance_summary_wrong_inconsistency.h @@ -47,15 +47,16 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_balance_summary_wrong_inconsistency (struct - AUDITORDB_PostgresContext - *pg, - int64_t limit, - uint64_t offset, - bool - return_suppressed, - TALER_AUDITORDB_ReserveBalanceSummaryWrongInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_reserve_balance_summary_wrong_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset + , + bool + return_suppressed, + TALER_AUDITORDB_ReserveBalanceSummaryWrongInconsistencyCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_reserve_in_inconsistency.h b/src/include/auditor-database/get_reserve_in_inconsistency.h @@ -47,12 +47,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_in_inconsistency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_ReserveInInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_reserve_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_ReserveInInconsistencyCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_reserve_info.h b/src/include/auditor-database/get_reserve_info.h @@ -38,12 +38,13 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_ReservePublicKeyP *reserve_pub, - uint64_t *rowid, - struct TALER_AUDITORDB_ReserveFeeBalance *rfb, - struct GNUNET_TIME_Timestamp *expiration_date, - struct TALER_FullPayto *sender_account); +TALER_AUDITORDB_get_reserve_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_ReservePublicKeyP * + reserve_pub, + uint64_t *rowid, + struct TALER_AUDITORDB_ReserveFeeBalance *rfb, + struct GNUNET_TIME_Timestamp *expiration_date, + struct TALER_FullPayto *sender_account); #endif diff --git a/src/include/auditor-database/get_reserve_not_closed_inconsistency.h b/src/include/auditor-database/get_reserve_not_closed_inconsistency.h @@ -47,13 +47,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserve_not_closed_inconsistency (struct - AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_ReserveNotClosedInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_reserve_not_closed_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_ReserveNotClosedInconsistencyCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_reserves.h b/src/include/auditor-database/get_reserves.h @@ -64,10 +64,10 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_reserves (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - TALER_AUDITORDB_ReservesCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_reserves (struct TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + TALER_AUDITORDB_ReservesCallback cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_row_inconsistency.h b/src/include/auditor-database/get_row_inconsistency.h @@ -65,12 +65,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_row_inconsistency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_RowInconsistencyCallback cb, - void *cb_cls); +TALER_AUDITORDB_get_row_inconsistency (struct TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_RowInconsistencyCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_row_minor_inconsistencies.h b/src/include/auditor-database/get_row_minor_inconsistencies.h @@ -47,12 +47,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_row_minor_inconsistencies (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_RowMinorInconsistenciesCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_row_minor_inconsistencies (struct + TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_RowMinorInconsistenciesCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/get_wire_fee_summary.h b/src/include/auditor-database/get_wire_fee_summary.h @@ -34,8 +34,9 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_wire_fee_summary (struct AUDITORDB_PostgresContext *pg, - struct TALER_Amount *wire_fee_balance); +TALER_AUDITORDB_get_wire_fee_summary (struct TALER_AUDITORDB_PostgresContext *pg + , + struct TALER_Amount *wire_fee_balance); #endif diff --git a/src/include/auditor-database/get_wire_format_inconsistency.h b/src/include/auditor-database/get_wire_format_inconsistency.h @@ -47,12 +47,14 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_wire_format_inconsistency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_WireFormatInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_wire_format_inconsistency (struct + TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_WireFormatInconsistencyCallback + cb, + void *cb_cls); #endif // AUDITOR_DATABASE_GET_WIRE_FORMAT_INCONSISTENCY_H diff --git a/src/include/auditor-database/get_wire_out_inconsistency.h b/src/include/auditor-database/get_wire_out_inconsistency.h @@ -47,12 +47,13 @@ typedef enum GNUNET_GenericReturnValue * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_get_wire_out_inconsistency (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_WireOutInconsistencyCallback - cb, - void *cb_cls); +TALER_AUDITORDB_get_wire_out_inconsistency (struct + TALER_AUDITORDB_PostgresContext *pg, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_WireOutInconsistencyCallback + cb, + void *cb_cls); #endif // AUDITOR_DATABASE_GET_WIRE_OUT_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_amount_arithmetic_inconsistency.h b/src/include/auditor-database/insert_amount_arithmetic_inconsistency.h @@ -28,10 +28,11 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_amount_arithmetic_inconsistency (struct - AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_AmountArithmeticInconsistency - *dc); +TALER_AUDITORDB_insert_amount_arithmetic_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + const struct + TALER_AUDITORDB_AmountArithmeticInconsistency + *dc); #endif // AUDITOR_DATABASE_INSERT_AMOUNT_ARITHMETIC_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_auditor_closure_lags.h b/src/include/auditor-database/insert_auditor_closure_lags.h @@ -28,8 +28,10 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_auditor_closure_lags (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_ClosureLags *dc); +TALER_AUDITORDB_insert_auditor_closure_lags (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_AUDITORDB_ClosureLags *dc); #endif // AUDITOR_DATABASE_INSERT_AUDITOR_CLOSURE_LAGS_H diff --git a/src/include/auditor-database/insert_auditor_progress.h b/src/include/auditor-database/insert_auditor_progress.h @@ -35,9 +35,10 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_auditor_progress (struct AUDITORDB_PostgresContext *pg, - const char *progress_key, - uint64_t progress_offset, - ...); +TALER_AUDITORDB_insert_auditor_progress (struct + TALER_AUDITORDB_PostgresContext *pg, + const char *progress_key, + uint64_t progress_offset, + ...); #endif diff --git a/src/include/auditor-database/insert_bad_sig_losses.h b/src/include/auditor-database/insert_bad_sig_losses.h @@ -27,7 +27,9 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_bad_sig_losses (struct AUDITORDB_PostgresContext *pg, - const struct TALER_AUDITORDB_BadSigLosses *dc); +TALER_AUDITORDB_insert_bad_sig_losses (struct TALER_AUDITORDB_PostgresContext * + pg, + const struct + TALER_AUDITORDB_BadSigLosses *dc); #endif // AUDITOR_DATABASE_INSERT_BAD_SIG_LOSSES_H diff --git a/src/include/auditor-database/insert_balance.h b/src/include/auditor-database/insert_balance.h @@ -36,10 +36,10 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_balance (struct AUDITORDB_PostgresContext *pg, - const char *balance_key, - const struct TALER_Amount *balance_value, - ...); +TALER_AUDITORDB_insert_balance (struct TALER_AUDITORDB_PostgresContext *pg, + const char *balance_key, + const struct TALER_Amount *balance_value, + ...); #endif diff --git a/src/include/auditor-database/insert_coin_inconsistency.h b/src/include/auditor-database/insert_coin_inconsistency.h @@ -29,8 +29,10 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_coin_inconsistency (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_CoinInconsistency *dc); +TALER_AUDITORDB_insert_coin_inconsistency (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct + TALER_AUDITORDB_CoinInconsistency *dc + ); #endif // AUDITOR_DATABASE_INSERT_COIN_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_denomination_balance.h b/src/include/auditor-database/insert_denomination_balance.h @@ -35,12 +35,15 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_denomination_balance (struct AUDITORDB_PostgresContext *pg, - const struct TALER_DenominationHashP * - denom_pub_hash, - const struct - TALER_AUDITORDB_DenominationCirculationData - *dcd); +TALER_AUDITORDB_insert_denomination_balance (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_DenominationHashP * + denom_pub_hash, + const struct + TALER_AUDITORDB_DenominationCirculationData + *dcd); #endif diff --git a/src/include/auditor-database/insert_denomination_key_validity_withdraw_inconsistency.h b/src/include/auditor-database/insert_denomination_key_validity_withdraw_inconsistency.h @@ -30,12 +30,13 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_denomination_key_validity_withdraw_inconsistency (struct - AUDITORDB_PostgresContext - *pg, - const struct - TALER_AUDITORDB_DenominationKeyValidityWithdrawInconsistency - *dc); +TALER_AUDITORDB_insert_denomination_key_validity_withdraw_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + const + struct + TALER_AUDITORDB_DenominationKeyValidityWithdrawInconsistency + *dc); #endif \ // AUDITOR_DATABASE_INSERT_DENOMINATION_KEY_VALIDITY_WITHDRAW_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_denomination_pending.h b/src/include/auditor-database/insert_denomination_pending.h @@ -29,8 +29,11 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_denomination_pending (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_DenominationPending *dc); +TALER_AUDITORDB_insert_denomination_pending (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_AUDITORDB_DenominationPending + *dc); #endif // AUDITOR_DATABASE_INSERT_DENOMINATION_PENDING_H diff --git a/src/include/auditor-database/insert_denominations_without_sigs.h b/src/include/auditor-database/insert_denominations_without_sigs.h @@ -29,10 +29,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_denominations_without_sigs (struct AUDITORDB_PostgresContext * - pg, - const struct - TALER_AUDITORDB_DenominationsWithoutSigs - *dc); +TALER_AUDITORDB_insert_denominations_without_sigs (struct + TALER_AUDITORDB_PostgresContext + * + pg, + const struct + TALER_AUDITORDB_DenominationsWithoutSigs + *dc); #endif // AUDITOR_DATABASE_INSERT_DENOMINATIONS_WITHOUT_SIGS_H diff --git a/src/include/auditor-database/insert_deposit_confirmation.h b/src/include/auditor-database/insert_deposit_confirmation.h @@ -32,9 +32,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_deposit_confirmation (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_DepositConfirmation *dc); +TALER_AUDITORDB_insert_deposit_confirmation (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_AUDITORDB_DepositConfirmation + *dc); #endif diff --git a/src/include/auditor-database/insert_early_aggregation.h b/src/include/auditor-database/insert_early_aggregation.h @@ -39,9 +39,11 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_early_aggregation (struct AUDITORDB_PostgresContext *pg, - uint64_t batch_deposit_serial_id, - uint64_t tracking_serial_id, - const struct TALER_Amount *total_amount); +TALER_AUDITORDB_insert_early_aggregation (struct + TALER_AUDITORDB_PostgresContext *pg, + uint64_t batch_deposit_serial_id, + uint64_t tracking_serial_id, + const struct TALER_Amount * + total_amount); #endif diff --git a/src/include/auditor-database/insert_emergency.h b/src/include/auditor-database/insert_emergency.h @@ -28,7 +28,7 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_emergency (struct AUDITORDB_PostgresContext *pg, - const struct TALER_AUDITORDB_Emergency *dc); +TALER_AUDITORDB_insert_emergency (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_AUDITORDB_Emergency *dc); #endif // AUDITOR_DATABASE_INSERT_EMERGENCY_H diff --git a/src/include/auditor-database/insert_emergency_by_count.h b/src/include/auditor-database/insert_emergency_by_count.h @@ -28,8 +28,10 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_emergency_by_count (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_EmergenciesByCount *dc); +TALER_AUDITORDB_insert_emergency_by_count (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct + TALER_AUDITORDB_EmergenciesByCount * + dc); #endif // AUDITOR_DATABASE_INSERT_EMERGENCY_BY_COUNT_H diff --git a/src/include/auditor-database/insert_exchange_signkey.h b/src/include/auditor-database/insert_exchange_signkey.h @@ -65,8 +65,10 @@ struct TALER_AUDITORDB_ExchangeSigningKey * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_exchange_signkey (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_ExchangeSigningKey *sk); +TALER_AUDITORDB_insert_exchange_signkey (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct + TALER_AUDITORDB_ExchangeSigningKey *sk) +; #endif diff --git a/src/include/auditor-database/insert_fee_time_inconsistency.h b/src/include/auditor-database/insert_fee_time_inconsistency.h @@ -28,9 +28,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_fee_time_inconsistency (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_FeeTimeInconsistency * - dc); +TALER_AUDITORDB_insert_fee_time_inconsistency (struct + TALER_AUDITORDB_PostgresContext * + pg, + const struct + TALER_AUDITORDB_FeeTimeInconsistency + * + dc); #endif // AUDITOR_DATABASE_INSERT_FEE_TIME_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_historic_denom_revenue.h b/src/include/auditor-database/insert_historic_denom_revenue.h @@ -40,14 +40,18 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_historic_denom_revenue (struct AUDITORDB_PostgresContext *pg, - 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 - ); +TALER_AUDITORDB_insert_historic_denom_revenue (struct + TALER_AUDITORDB_PostgresContext * + pg, + 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 + ); #endif diff --git a/src/include/auditor-database/insert_historic_reserve_revenue.h b/src/include/auditor-database/insert_historic_reserve_revenue.h @@ -36,12 +36,15 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_historic_reserve_revenue (struct AUDITORDB_PostgresContext *pg, - struct GNUNET_TIME_Timestamp - start_time, - struct GNUNET_TIME_Timestamp end_time - , - const struct TALER_Amount * - reserve_profits); +TALER_AUDITORDB_insert_historic_reserve_revenue (struct + TALER_AUDITORDB_PostgresContext + *pg, + struct GNUNET_TIME_Timestamp + start_time, + struct GNUNET_TIME_Timestamp + end_time + , + const struct TALER_Amount * + reserve_profits); #endif diff --git a/src/include/auditor-database/insert_misattribution_in_inconsistency.h b/src/include/auditor-database/insert_misattribution_in_inconsistency.h @@ -29,10 +29,11 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_misattribution_in_inconsistency (struct - AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_MisattributionInInconsistency - *dc); +TALER_AUDITORDB_insert_misattribution_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + const struct + TALER_AUDITORDB_MisattributionInInconsistency + *dc); #endif // AUDITOR_DATABASE_INSERT_MISATTRIBUTION_IN_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_pending_deposit.h b/src/include/auditor-database/insert_pending_deposit.h @@ -37,12 +37,13 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_pending_deposit (struct AUDITORDB_PostgresContext *pg, - uint64_t batch_deposit_serial_id, - const struct TALER_FullPaytoHashP * - wire_target_h_payto, - const struct TALER_Amount *total_amount, - struct GNUNET_TIME_Timestamp deadline); +TALER_AUDITORDB_insert_pending_deposit (struct TALER_AUDITORDB_PostgresContext * + pg, + uint64_t batch_deposit_serial_id, + const struct TALER_FullPaytoHashP * + wire_target_h_payto, + const struct TALER_Amount *total_amount, + struct GNUNET_TIME_Timestamp deadline); #endif diff --git a/src/include/auditor-database/insert_purse_info.h b/src/include/auditor-database/insert_purse_info.h @@ -37,10 +37,11 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_purse_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_PurseContractPublicKeyP * - purse_pub, - const struct TALER_Amount *balance, - struct GNUNET_TIME_Timestamp expiration_date); +TALER_AUDITORDB_insert_purse_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_PurseContractPublicKeyP * + purse_pub, + const struct TALER_Amount *balance, + struct GNUNET_TIME_Timestamp expiration_date) +; #endif diff --git a/src/include/auditor-database/insert_purse_not_closed_inconsistencies.h b/src/include/auditor-database/insert_purse_not_closed_inconsistencies.h @@ -28,11 +28,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_purse_not_closed_inconsistencies (struct - AUDITORDB_PostgresContext *pg - , - const struct - TALER_AUDITORDB_PurseNotClosedInconsistencies - *dc); +TALER_AUDITORDB_insert_purse_not_closed_inconsistencies (struct + TALER_AUDITORDB_PostgresContext + *pg + , + const struct + TALER_AUDITORDB_PurseNotClosedInconsistencies + *dc); #endif // AUDITOR_DATABASE_INSERT_PURSE_NOT_CLOSED_INCONSISTENCIES_H diff --git a/src/include/auditor-database/insert_reserve_balance_insufficient_inconsistency.h b/src/include/auditor-database/insert_reserve_balance_insufficient_inconsistency.h @@ -28,11 +28,11 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_balance_insufficient_inconsistency (struct - AUDITORDB_PostgresContext - *pg, - const struct - TALER_AUDITORDB_ReserveBalanceInsufficientInconsistency - *dc); +TALER_AUDITORDB_insert_reserve_balance_insufficient_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + const struct + TALER_AUDITORDB_ReserveBalanceInsufficientInconsistency + *dc); #endif // AUDITOR_DATABASE_INSERT_RESERVE_BALANCE_INSUFFICIENT_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_reserve_balance_summary_wrong_inconsistency.h b/src/include/auditor-database/insert_reserve_balance_summary_wrong_inconsistency.h @@ -29,11 +29,11 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_balance_summary_wrong_inconsistency (struct - AUDITORDB_PostgresContext - *pg, - const struct - TALER_AUDITORDB_ReserveBalanceSummaryWrongInconsistency - *dc); +TALER_AUDITORDB_insert_reserve_balance_summary_wrong_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + const struct + TALER_AUDITORDB_ReserveBalanceSummaryWrongInconsistency + *dc); #endif // AUDITOR_DATABASE_INSERT_RESERVE_BALANCE_SUMMARY_WRONG_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_reserve_in_inconsistency.h b/src/include/auditor-database/insert_reserve_in_inconsistency.h @@ -29,9 +29,11 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_in_inconsistency (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_ReserveInInconsistency - *dc); +TALER_AUDITORDB_insert_reserve_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + const struct + TALER_AUDITORDB_ReserveInInconsistency + *dc); #endif // AUDITOR_DATABASE_INSERT_RESERVE_IN_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_reserve_info.h b/src/include/auditor-database/insert_reserve_info.h @@ -38,12 +38,16 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_ReservePublicKeyP *reserve_pub - , - const struct TALER_AUDITORDB_ReserveFeeBalance * - rfb, - struct GNUNET_TIME_Timestamp expiration_date, - const struct TALER_FullPayto origin_account); +TALER_AUDITORDB_insert_reserve_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_ReservePublicKeyP * + reserve_pub + , + const struct + TALER_AUDITORDB_ReserveFeeBalance * + rfb, + struct GNUNET_TIME_Timestamp + expiration_date, + const struct TALER_FullPayto origin_account + ); #endif diff --git a/src/include/auditor-database/insert_reserve_not_closed_inconsistency.h b/src/include/auditor-database/insert_reserve_not_closed_inconsistency.h @@ -29,11 +29,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_reserve_not_closed_inconsistency (struct - AUDITORDB_PostgresContext *pg - , - const struct - TALER_AUDITORDB_ReserveNotClosedInconsistency - *dc); +TALER_AUDITORDB_insert_reserve_not_closed_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg + , + const struct + TALER_AUDITORDB_ReserveNotClosedInconsistency + *dc); #endif // AUDITOR_DATABASE_INSERT_RESERVE_NOT_CLOSED_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_row_inconsistency.h b/src/include/auditor-database/insert_row_inconsistency.h @@ -28,8 +28,9 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_row_inconsistency (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_RowInconsistency *dc); +TALER_AUDITORDB_insert_row_inconsistency (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct + TALER_AUDITORDB_RowInconsistency *dc); #endif // AUDITOR_DATABASE_INSERT_ROW_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_row_minor_inconsistencies.h b/src/include/auditor-database/insert_row_minor_inconsistencies.h @@ -29,10 +29,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_row_minor_inconsistencies (struct AUDITORDB_PostgresContext *pg - , - const struct - TALER_AUDITORDB_RowMinorInconsistencies - *dc); +TALER_AUDITORDB_insert_row_minor_inconsistencies (struct + TALER_AUDITORDB_PostgresContext + *pg + , + const struct + TALER_AUDITORDB_RowMinorInconsistencies + *dc); #endif // AUDITOR_DATABASE_INSERT_ROW_MINOR_INCONSISTENCIES_H diff --git a/src/include/auditor-database/insert_wire_format_inconsistency.h b/src/include/auditor-database/insert_wire_format_inconsistency.h @@ -29,10 +29,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_wire_format_inconsistency (struct AUDITORDB_PostgresContext *pg - , - const struct - TALER_AUDITORDB_WireFormatInconsistency - *dc); +TALER_AUDITORDB_insert_wire_format_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg + , + const struct + TALER_AUDITORDB_WireFormatInconsistency + *dc); #endif // AUDITOR_DATABASE_INSERT_WIRE_FORMAT_INCONSISTENCY_H diff --git a/src/include/auditor-database/insert_wire_out_inconsistency.h b/src/include/auditor-database/insert_wire_out_inconsistency.h @@ -29,9 +29,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_insert_wire_out_inconsistency (struct AUDITORDB_PostgresContext *pg, - const struct - TALER_AUDITORDB_WireOutInconsistency * - dc); +TALER_AUDITORDB_insert_wire_out_inconsistency (struct + TALER_AUDITORDB_PostgresContext * + pg, + const struct + TALER_AUDITORDB_WireOutInconsistency + * + dc); #endif // AUDITOR_DATABASE_INSERT_WIRE_OUT_INCONSISTENCY_H diff --git a/src/include/auditor-database/lookup_reserve_in_inconsistency.h b/src/include/auditor-database/lookup_reserve_in_inconsistency.h @@ -28,10 +28,12 @@ * @return query result status */ enum GNUNET_DB_QueryStatus -AUDITORDB_lookup_reserve_in_inconsistency (struct AUDITORDB_PostgresContext *pg, - uint64_t bank_row_id, - struct - TALER_AUDITORDB_ReserveInInconsistency - *dc); +TALER_AUDITORDB_lookup_reserve_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + uint64_t bank_row_id, + struct + TALER_AUDITORDB_ReserveInInconsistency + *dc); #endif diff --git a/src/include/auditor-database/preflight.h b/src/include/auditor-database/preflight.h @@ -36,7 +36,7 @@ * #GNUNET_SYSERR if we have no DB connection */ enum GNUNET_GenericReturnValue -AUDITORDB_preflight (struct AUDITORDB_PostgresContext *pg); +TALER_AUDITORDB_preflight (struct TALER_AUDITORDB_PostgresContext *pg); #endif diff --git a/src/include/auditor-database/select_early_aggregations.h b/src/include/auditor-database/select_early_aggregations.h @@ -84,8 +84,8 @@ typedef enum GNUNET_GenericReturnValue * @return transaction status */ enum GNUNET_DB_QueryStatus -AUDITORDB_select_early_aggregations ( - struct AUDITORDB_PostgresContext *pg, +TALER_AUDITORDB_select_early_aggregations ( + struct TALER_AUDITORDB_PostgresContext *pg, int64_t limit, uint64_t offset, bool return_suppressed, diff --git a/src/include/auditor-database/select_historic_denom_revenue.h b/src/include/auditor-database/select_historic_denom_revenue.h @@ -99,11 +99,13 @@ typedef enum GNUNET_GenericReturnValue * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_select_historic_denom_revenue (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - TALER_AUDITORDB_HistoricDenominationRevenueDataCallback - cb, - void *cb_cls); +TALER_AUDITORDB_select_historic_denom_revenue (struct + TALER_AUDITORDB_PostgresContext * + pg, + int64_t limit, + uint64_t offset, + TALER_AUDITORDB_HistoricDenominationRevenueDataCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/select_historic_reserve_revenue.h b/src/include/auditor-database/select_historic_reserve_revenue.h @@ -83,12 +83,14 @@ typedef enum GNUNET_GenericReturnValue * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_select_historic_reserve_revenue (struct AUDITORDB_PostgresContext *pg, - int64_t limit, - uint64_t offset, - TALER_AUDITORDB_HistoricReserveRevenueDataCallback - cb, - void *cb_cls); +TALER_AUDITORDB_select_historic_reserve_revenue (struct + TALER_AUDITORDB_PostgresContext + *pg, + int64_t limit, + uint64_t offset, + TALER_AUDITORDB_HistoricReserveRevenueDataCallback + cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/select_pending_deposits.h b/src/include/auditor-database/select_pending_deposits.h @@ -86,12 +86,13 @@ typedef void * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_select_pending_deposits (struct AUDITORDB_PostgresContext *pg, - struct GNUNET_TIME_Absolute deadline, - int64_t limit, - uint64_t offset, - bool return_suppressed, - TALER_AUDITORDB_WireMissingCallback cb, - void *cb_cls); +TALER_AUDITORDB_select_pending_deposits (struct + TALER_AUDITORDB_PostgresContext *pg, + struct GNUNET_TIME_Absolute deadline, + int64_t limit, + uint64_t offset, + bool return_suppressed, + TALER_AUDITORDB_WireMissingCallback cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/select_purse_expired.h b/src/include/auditor-database/select_purse_expired.h @@ -69,8 +69,9 @@ typedef enum GNUNET_GenericReturnValue * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_select_purse_expired (struct AUDITORDB_PostgresContext *pg, - TALER_AUDITORDB_ExpiredPurseCallback cb, - void *cb_cls); +TALER_AUDITORDB_select_purse_expired (struct TALER_AUDITORDB_PostgresContext *pg + , + TALER_AUDITORDB_ExpiredPurseCallback cb, + void *cb_cls); #endif diff --git a/src/include/auditor-database/select_reserve_in_inconsistency.h b/src/include/auditor-database/select_reserve_in_inconsistency.h @@ -33,11 +33,13 @@ * @param[out] dc details to return */ enum GNUNET_DB_QueryStatus -AUDITORDB_select_reserve_in_inconsistency (struct AUDITORDB_PostgresContext *pg, - uint64_t bank_row_id, - struct - TALER_AUDITORDB_ReserveInInconsistency - *dc); +TALER_AUDITORDB_select_reserve_in_inconsistency (struct + TALER_AUDITORDB_PostgresContext + *pg, + uint64_t bank_row_id, + struct + TALER_AUDITORDB_ReserveInInconsistency + *dc); #endif diff --git a/src/include/auditor-database/start.h b/src/include/auditor-database/start.h @@ -33,7 +33,7 @@ * @return #GNUNET_OK on success */ enum GNUNET_GenericReturnValue -AUDITORDB_start (struct AUDITORDB_PostgresContext *pg); +TALER_AUDITORDB_start (struct TALER_AUDITORDB_PostgresContext *pg); /** @@ -42,7 +42,7 @@ AUDITORDB_start (struct AUDITORDB_PostgresContext *pg); * @param pg the database context */ void -AUDITORDB_rollback (struct AUDITORDB_PostgresContext *pg); +TALER_AUDITORDB_rollback (struct TALER_AUDITORDB_PostgresContext *pg); /** @@ -52,7 +52,7 @@ AUDITORDB_rollback (struct AUDITORDB_PostgresContext *pg); * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_commit (struct AUDITORDB_PostgresContext *pg); +TALER_AUDITORDB_commit (struct TALER_AUDITORDB_PostgresContext *pg); #endif diff --git a/src/include/auditor-database/update_auditor_progress.h b/src/include/auditor-database/update_auditor_progress.h @@ -35,9 +35,10 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_update_auditor_progress (struct AUDITORDB_PostgresContext *pg, - const char *progress_key, - uint64_t progress_offset, - ...); +TALER_AUDITORDB_update_auditor_progress (struct + TALER_AUDITORDB_PostgresContext *pg, + const char *progress_key, + uint64_t progress_offset, + ...); #endif diff --git a/src/include/auditor-database/update_balance.h b/src/include/auditor-database/update_balance.h @@ -37,10 +37,10 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_update_balance (struct AUDITORDB_PostgresContext *pg, - const char *balance_key, - const struct TALER_Amount *balance_amount, - ...); +TALER_AUDITORDB_update_balance (struct TALER_AUDITORDB_PostgresContext *pg, + const char *balance_key, + const struct TALER_Amount *balance_amount, + ...); #endif diff --git a/src/include/auditor-database/update_denomination_balance.h b/src/include/auditor-database/update_denomination_balance.h @@ -35,12 +35,15 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_update_denomination_balance (struct AUDITORDB_PostgresContext *pg, - const struct TALER_DenominationHashP * - denom_pub_hash, - const struct - TALER_AUDITORDB_DenominationCirculationData - *dcd); +TALER_AUDITORDB_update_denomination_balance (struct + TALER_AUDITORDB_PostgresContext *pg + , + const struct + TALER_DenominationHashP * + denom_pub_hash, + const struct + TALER_AUDITORDB_DenominationCirculationData + *dcd); #endif diff --git a/src/include/auditor-database/update_generic_suppressed.h b/src/include/auditor-database/update_generic_suppressed.h @@ -29,11 +29,12 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_update_generic_suppressed (struct AUDITORDB_PostgresContext *pg, - enum - TALER_AUDITORDB_DeletableSuppressableTables - table, - uint64_t row_id, - bool suppressed); +TALER_AUDITORDB_update_generic_suppressed (struct + TALER_AUDITORDB_PostgresContext *pg, + enum + TALER_AUDITORDB_DeletableSuppressableTables + table, + uint64_t row_id, + bool suppressed); #endif diff --git a/src/include/auditor-database/update_purse_info.h b/src/include/auditor-database/update_purse_info.h @@ -36,10 +36,10 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_update_purse_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_PurseContractPublicKeyP * - purse_pub, - const struct TALER_Amount *balance); +TALER_AUDITORDB_update_purse_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_PurseContractPublicKeyP * + purse_pub, + const struct TALER_Amount *balance); #endif diff --git a/src/include/auditor-database/update_reserve_info.h b/src/include/auditor-database/update_reserve_info.h @@ -36,11 +36,14 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_update_reserve_info (struct AUDITORDB_PostgresContext *pg, - const struct TALER_ReservePublicKeyP *reserve_pub - , - const struct TALER_AUDITORDB_ReserveFeeBalance * - rfb, - struct GNUNET_TIME_Timestamp expiration_date); +TALER_AUDITORDB_update_reserve_info (struct TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_ReservePublicKeyP * + reserve_pub + , + const struct + TALER_AUDITORDB_ReserveFeeBalance * + rfb, + struct GNUNET_TIME_Timestamp + expiration_date); #endif diff --git a/src/include/auditor-database/update_wire_fee_summary.h b/src/include/auditor-database/update_wire_fee_summary.h @@ -35,7 +35,9 @@ * @return transaction status code */ enum GNUNET_DB_QueryStatus -AUDITORDB_update_wire_fee_summary (struct AUDITORDB_PostgresContext *pg, - const struct TALER_Amount *wire_fee_balance); +TALER_AUDITORDB_update_wire_fee_summary (struct + TALER_AUDITORDB_PostgresContext *pg, + const struct TALER_Amount * + wire_fee_balance); #endif diff --git a/src/include/taler/taler_auditordb_lib.h b/src/include/taler/taler_auditordb_lib.h @@ -32,7 +32,7 @@ /** * Connection to the postgres database of the auditor. */ -struct AUDITORDB_PostgresContext; +struct TALER_AUDITORDB_PostgresContext; /** @@ -611,7 +611,7 @@ struct TALER_AUDITORDB_AmountArithmeticInconsistency * operational; only taler-auditor-dbinit should use true here. * @return NULL on failure */ -struct AUDITORDB_PostgresContext * +struct TALER_AUDITORDB_PostgresContext * TALER_AUDITORDB_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, bool skip_preflight); @@ -622,7 +622,7 @@ TALER_AUDITORDB_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, * @param[in] pg connection to disconnect */ void -TALER_AUDITORDB_disconnect (struct AUDITORDB_PostgresContext *pg); +TALER_AUDITORDB_disconnect (struct TALER_AUDITORDB_PostgresContext *pg); #endif diff --git a/src/meson.build b/src/meson.build @@ -11,9 +11,7 @@ subdir('util') subdir('json') subdir('extensions') subdir('curl') -if pq_dep.found() - subdir('pq') -endif +subdir('pq') if sqlite_dep.found() subdir('sq') endif