From e0d46f96859b33b3f04791028e30bce4f0173567 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 18 Jan 2024 12:08:53 +0100 Subject: auditordb tabularasa --- src/auditor/report-lib.h | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) (limited to 'src/auditor/report-lib.h') diff --git a/src/auditor/report-lib.h b/src/auditor/report-lib.h index db15494cd..db29abc3a 100644 --- a/src/auditor/report-lib.h +++ b/src/auditor/report-lib.h @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2016-2020 Taler Systems SA + Copyright (C) 2016-2024 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Affero Public License as published by the Free Software @@ -28,6 +28,52 @@ #include "taler_bank_service.h" #include "taler_signatures.h" +/** + * Macro to use to access progress point value @a name. + */ +#define TALER_ARL_USE_PP(name) TAC_ ## name + +/** + * Macro to use to declare progress point value @a name. + */ +#define TALER_ARL_DEF_PP(name) \ + uint64_t TALER_ARL_USE_PP (name) = 0 + +/** + * Macro to use to GET progress point value @a name from DB. + */ +#define TALER_ARL_GET_PP(name) \ + TALER_S (name), &TALER_ARL_USE_PP (name) + +/** + * Macro to use to SET progress point value @a name in DB. + */ +#define TALER_ARL_SET_PP(name) \ + TALER_S (name), TALER_ARL_USE_PP (name) + +/** + * Macro to use to access amount balance @a name. + */ +#define TALER_ARL_USE_AB(name) TAC_ ## name + +/** + * Macro to use to declare amount balance @a name. + */ +#define TALER_ARL_DEF_AB(name) \ + struct TALER_Amount TALER_ARL_USE_AB (name) + +/** + * Macro to use to GET amount balance @a name from DB. + */ +#define TALER_ARL_GET_AB(name) \ + TALER_S (name), &TALER_ARL_USE_AB (name) + +/** + * Macro to use to SET amount balance @a name in DB. + */ +#define TALER_ARL_SET_AB(name) \ + TALER_S (name), &TALER_ARL_USE_AB (name) + /** * Command-line option "-r": restart audit from scratch -- cgit v1.2.3