aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2024-08-01 21:23:02 +0200
committerChristian Grothoff <grothoff@gnunet.org>2024-08-01 21:23:02 +0200
commitc1c95e4385eba5257cb796234aaf47d80051b957 (patch)
treef4e6a49f9d263e75708fb0021039bfb5d25eabea /src/auditordb
parentdc922c1c70a6eaeb31eb27b8812e5c5ff88fca02 (diff)
more doxygen fixes
Diffstat (limited to 'src/auditordb')
-rw-r--r--src/auditordb/pg_del_auditor_emergency.c41
-rw-r--r--src/auditordb/pg_del_auditor_emergency.h35
-rw-r--r--src/auditordb/pg_del_emergency.h4
-rw-r--r--src/auditordb/pg_del_emergency_by_count.h2
-rw-r--r--src/auditordb/pg_get_auditor_closure_lags.c4
-rw-r--r--src/auditordb/pg_get_auditor_closure_lags.h2
-rw-r--r--src/auditordb/pg_get_balances.h2
-rw-r--r--src/auditordb/pg_get_purse_not_closed_inconsistencies.c4
-rw-r--r--src/auditordb/pg_get_reserve_balance_insufficient_inconsistency.c4
9 files changed, 9 insertions, 89 deletions
diff --git a/src/auditordb/pg_del_auditor_emergency.c b/src/auditordb/pg_del_auditor_emergency.c
deleted file mode 100644
index a4afd14c5..000000000
--- a/src/auditordb/pg_del_auditor_emergency.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-#include "pg_del_auditor_emergency.h"
-
-#include "taler_pq_lib.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_emergency (
- void *cls,
- uint64_t row_id)
-{
- struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&row_id),
- GNUNET_PQ_query_param_end
- };
-
- PREPARE (pg,
- "auditor_delete_emergency",
- "DELETE"
- " FROM auditor_emergency"
- " WHERE row_id=$1;");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_delete_emergency",
- params);
-} \ No newline at end of file
diff --git a/src/auditordb/pg_del_auditor_emergency.h b/src/auditordb/pg_del_auditor_emergency.h
deleted file mode 100644
index 94c8bc4e9..000000000
--- a/src/auditordb/pg_del_auditor_emergency.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-#ifndef SRC_PG_DEL_AUDITOR_EMERGENCY_H
-#define SRC_PG_DEL_AUDITOR_EMERGENCY_H
-
-#include "taler_util.h"
-#include "taler_auditordb_plugin.h"
-
-/**
- * Delete a row from the emergency table.
- *
- * @param cls the @e cls of this struct with the plugin-specific state
- * @param row_id row to delete
- * @return query transaction status
- */
-enum GNUNET_DB_QueryStatus
-TAH_PG_del_emergency (
- void *cls,
- uint64_t row_id);
-
-#endif // SRC_PG_DEL_AUDITOR_EMERGENCY_H
diff --git a/src/auditordb/pg_del_emergency.h b/src/auditordb/pg_del_emergency.h
index a99d09c93..91cef7363 100644
--- a/src/auditordb/pg_del_emergency.h
+++ b/src/auditordb/pg_del_emergency.h
@@ -23,7 +23,7 @@
/**
* Delete a row from the denom key validity withdraw inconsistency table.
*
- * @param cls the @e cls of this struct with the plugin-specific state
+ * @param cls the plugin-specific state
* @param row_id row to delete
* @return query transaction status
*/
@@ -32,4 +32,4 @@ TAH_PG_del_emergency (
void *cls,
uint64_t row_id);
-#endif // SRC_PG_DEL_EMERGENCY_H
+#endif
diff --git a/src/auditordb/pg_del_emergency_by_count.h b/src/auditordb/pg_del_emergency_by_count.h
index 734c7ae7e..52f7f4db8 100644
--- a/src/auditordb/pg_del_emergency_by_count.h
+++ b/src/auditordb/pg_del_emergency_by_count.h
@@ -32,4 +32,4 @@ TAH_PG_del_emergency_by_count (
void *cls,
uint64_t row_id);
-#endif // SRC_PG_DEL_EMERGENCY_BY_COUNT_H
+#endif
diff --git a/src/auditordb/pg_get_auditor_closure_lags.c b/src/auditordb/pg_get_auditor_closure_lags.c
index 751ff2641..e13fe1319 100644
--- a/src/auditordb/pg_get_auditor_closure_lags.c
+++ b/src/auditordb/pg_get_auditor_closure_lags.c
@@ -49,7 +49,7 @@ struct ClosureLagsContext
/**
- * Helper function for #TAH_PG_get_closure_lags().
+ * Helper function for #TAH_PG_get_auditor_closure_lags().
* To be called with the results of a SELECT statement
* that has returned @a num_results results.
*
@@ -172,4 +172,4 @@ TAH_PG_get_auditor_closure_lags (
return dcc.qs;
GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != qs);
return qs;
-} \ No newline at end of file
+}
diff --git a/src/auditordb/pg_get_auditor_closure_lags.h b/src/auditordb/pg_get_auditor_closure_lags.h
index 7c1148575..45db7c8c7 100644
--- a/src/auditordb/pg_get_auditor_closure_lags.h
+++ b/src/auditordb/pg_get_auditor_closure_lags.h
@@ -26,8 +26,6 @@
* Get information about auditor closure lags from the database.
*
* @param cls the @e cls of this struct with the plugin-specific state
- * @param start_id row/serial ID where to start the iteration (0 from
- * the start, exclusive, i.e. serial_ids must start from 1)
* @param limit number of records to return, negative for descending
* @param offset table row to start from, exclusive, direction determined by @a limit
* @param return_suppressed should suppressed rows be returned anyway?
diff --git a/src/auditordb/pg_get_balances.h b/src/auditordb/pg_get_balances.h
index 4507c277f..e2883ad8f 100644
--- a/src/auditordb/pg_get_balances.h
+++ b/src/auditordb/pg_get_balances.h
@@ -27,8 +27,6 @@
* Get information about balances from the database.
*
* @param cls the @e cls of this struct with the plugin-specific state
- * @param start_id row/serial ID where to start the iteration (0 from
- * the start, exclusive, i.e. serial_ids must start from 1)
* @param limit number of records to return, negative for descending
* @param offset table row to start from, exclusive, direction determined by @a limit
* @param return_suppressed should suppressed rows be returned anyway?
diff --git a/src/auditordb/pg_get_purse_not_closed_inconsistencies.c b/src/auditordb/pg_get_purse_not_closed_inconsistencies.c
index adf306ed5..c764292fe 100644
--- a/src/auditordb/pg_get_purse_not_closed_inconsistencies.c
+++ b/src/auditordb/pg_get_purse_not_closed_inconsistencies.c
@@ -54,7 +54,7 @@ struct PurseNotClosedInconsistenciesContext
/**
- * Helper function for #TAH_PG_purse_not_closed_inconsistencies().
+ * Helper function for #TAH_PG_get_purse_not_closed_inconsistencies().
* To be called with the results of a SELECT statement
* that has returned @a num_results results.
*
@@ -176,4 +176,4 @@ TAH_PG_get_purse_not_closed_inconsistencies (
return dcc.qs;
GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != qs);
return qs;
-} \ No newline at end of file
+}
diff --git a/src/auditordb/pg_get_reserve_balance_insufficient_inconsistency.c b/src/auditordb/pg_get_reserve_balance_insufficient_inconsistency.c
index f84d5bbaa..97f2f523b 100644
--- a/src/auditordb/pg_get_reserve_balance_insufficient_inconsistency.c
+++ b/src/auditordb/pg_get_reserve_balance_insufficient_inconsistency.c
@@ -52,7 +52,7 @@ struct ReserveBalanceInsufficientInconsistencyContext
/**
- * Helper function for #TAH_PG_reserve_balance_insufficient_inconsistency().
+ * Helper function for #TAH_PG_get_reserve_balance_insufficient_inconsistency().
* To be called with the results of a SELECT statement
* that has returned @a num_results results.
*
@@ -174,4 +174,4 @@ TAH_PG_get_reserve_balance_insufficient_inconsistency (
return dcc.qs;
GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != qs);
return qs;
-} \ No newline at end of file
+}