aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2024-08-14 11:54:27 +0200
committerChristian Grothoff <grothoff@gnunet.org>2024-08-14 11:54:27 +0200
commitaa32787f20ee7a08775c5412608067a4ced17d98 (patch)
tree3476991e6448b267b33ddbd7b2ae341fb2c15c7f /src/include
parent93b4b8819d2de6adec46e3275deaa9004173d92a (diff)
add generic suppression sql code
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_auditordb_lib.h18
-rw-r--r--src/include/taler_auditordb_plugin.h7
2 files changed, 24 insertions, 1 deletions
diff --git a/src/include/taler_auditordb_lib.h b/src/include/taler_auditordb_lib.h
index 3ba3bb376..a05f59fc7 100644
--- a/src/include/taler_auditordb_lib.h
+++ b/src/include/taler_auditordb_lib.h
@@ -23,7 +23,23 @@
#ifndef TALER_AUDITORDB_LIB_H
#define TALER_AUDITORDB_LIB_H
-#include "taler_auditordb_plugin.h"
+
+enum TALER_AUDITORDB_SuppressableTables
+{
+ /**
+ * For auditor_amount_arithmetic_inconsistency table.
+ */
+ TALER_AUDITORDB_AMOUNT_ARITHMETIC_INCONSISTENCY,
+ /**
+ * Terminal.
+ */
+ TALER_AUDITORDB_SUPPRESSABLE_TABLES_MAX
+};
+
+
+// FIXME: comment
+const char *
+TALER_AUDITORDB_get_table_name (enum TALER_AUDITORDB_SuppressableTables table);
/**
* Initialize the plugin.
diff --git a/src/include/taler_auditordb_plugin.h b/src/include/taler_auditordb_plugin.h
index c4186e50f..2c9f94f86 100644
--- a/src/include/taler_auditordb_plugin.h
+++ b/src/include/taler_auditordb_plugin.h
@@ -1540,6 +1540,13 @@ struct TALER_AUDITORDB_Plugin
void *cls,
const struct TALER_AUDITORDB_Generic_Update *gu);
+ enum GNUNET_DB_QueryStatus
+ (*update_generic_suppressed)(
+ void *cls,
+ enum TALER_AUDITORDB_SuppressableTables table,
+ uint64_t row_id,
+ bool suppressed);
+
enum GNUNET_DB_QueryStatus
(*update_emergency_by_count)(