donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit c0108813b534993cc72244357c4657499ac50de1
parent 7af7babbcfab8e7a4ab5ff09b4f27a3512d711fc
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date:   Tue,  2 Jan 2024 16:36:20 +0100

cleanup

Diffstat:
Dsrc/lib/donau_api_common.c | 83-------------------------------------------------------------------------------
Dsrc/lib/donau_api_common.h | 30------------------------------
Msrc/testing/test_donau_api.c | 9---------
3 files changed, 0 insertions(+), 122 deletions(-)

diff --git a/src/lib/donau_api_common.c b/src/lib/donau_api_common.c @@ -1,83 +0,0 @@ -/* - This file is part of TALER - Copyright (C) 2015-2022 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 CHARITYABILITY 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/> -*/ -/** - * @file lib/donau_api_common.c - * @brief common functions for the donau API - * @author Christian Grothoff - */ -#include "taler/platform.h" -#include "taler/taler_json_lib.h" -#include <gnunet/gnunet_curl_lib.h> -#include "donau_api_common.h" -#include "donau_api_handle.h" -#include "taler_signatures.h" - - -/** - * Context for history entry helpers. - */ -struct HistoryParseContext -{ - - /** - * Keys of the donau we use. - */ - const struct DONAU_Keys *keys; - - /** - * Our reserve public key. - */ - const struct TALER_ReservePublicKeyP *reserve_pub; - - /** - * Array of UUIDs. - */ - struct GNUNET_HashCode *uuids; - - /** - * Where to sum up total inbound amounts. - */ - struct TALER_Amount *total_in; - - /** - * Where to sum up total outbound amounts. - */ - struct TALER_Amount *total_out; - - /** - * Number of entries already used in @e uuids. - */ - unsigned int uuid_off; -}; - - -/** - * Type of a function called to parse a reserve history - * entry @a rh. - * - * @param[in,out] rh where to write the result - * @param[in,out] uc UUID context for duplicate detection - * @param transaction the transaction to parse - * @return #GNUNET_OK on success - */ -typedef enum GNUNET_GenericReturnValue -(*ParseHelper)(struct DONAU_ReserveHistoryEntry *rh, - struct HistoryParseContext *uc, - const json_t *transaction); - - -/* end of donau_api_common.c */ diff --git a/src/lib/donau_api_common.h b/src/lib/donau_api_common.h @@ -1,30 +0,0 @@ -/* - This file is part of TALER - Copyright (C) 2015-2022 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 CHARITYABILITY 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/> -*/ -/** - * @file lib/donau_api_common.h - * @brief common functions for the donau API - * @author Christian Grothoff - */ -#ifndef DONAU_API_COMMON_H -#define DONAU_API_COMMON_H - -#include "taler/taler_json_lib.h" -#include "donau_service.h" - -// Checks - -#endif diff --git a/src/testing/test_donau_api.c b/src/testing/test_donau_api.c @@ -42,12 +42,6 @@ static char *config_file; /** - * Special configuration file to use when we want reserves - * to expire 'immediately'. - */ -static char *config_file_expire_reserve_now; - -/** * Our credentials. */ static struct TALER_TESTING_Credentials cred; @@ -91,9 +85,6 @@ main (int argc, GNUNET_asprintf (&config_file, "test_donau_api-%s.conf", cipher); - GNUNET_asprintf (&config_file_expire_reserve_now, - "test_donau_api_expire_reserve_now-%s.conf", - cipher); GNUNET_free (cipher); } return TALER_TESTING_main (argv,