commit 276d2a418ba94d1b0ca290efdba89c9461339537
parent 7975fa1d04ebae33572c2d1c8aecba0b5cd86877
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date: Tue, 5 Mar 2024 10:52:41 +0100
small fix in insert donation units
Diffstat:
5 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/donau/donau-httpd_keys.h b/src/donau/donau-httpd_keys.h
@@ -39,26 +39,26 @@ struct DH_DonationUnitKey
{
/**
+ * Hash code of the donation unit public key.
+ */
+ struct DONAU_DonationUnitHashP h_donation_unit_pub;
+
+ /**
* Decoded donation unit public key (the hash of it is in
* @e issue, but we sometimes need the full public key as well).
*/
struct DONAU_DonationUnitPublicKey donation_unit_pub;
/**
- * Hash code of the donation unit public key.
+ * The validity year.
*/
- struct DONAU_DonationUnitHashP h_donation_unit_pub;
+ uint64_t validity_year;
/**
* Value that the donation unit represents.
*/
struct TALER_Amount value;
- /**
- * The validity year.
- */
- uint64_t validity_year;
-
};
/**
diff --git a/src/donaudb/0002-donation_units.sql b/src/donaudb/0002-donation_units.sql
@@ -1,6 +1,6 @@
--
-- This file is part of TALER
--- Copyright (C) 2023 Taler Systems SA
+-- 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
diff --git a/src/donaudb/pg_insert_donation_unit.c b/src/donaudb/pg_insert_donation_unit.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2022 Taler Systems SA
+ 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
@@ -31,8 +31,8 @@ DH_PG_insert_donation_unit (
void *cls,
const struct DONAU_DonationUnitHashP *h_donation_unit_pub,
const struct DONAU_DonationUnitPublicKey *donation_unit_pub,
- struct TALER_Amount *value,
- uint64_t validity_year)
+ uint64_t validity_year,
+ struct TALER_Amount *value)
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam iparams[] = {
diff --git a/src/donaudb/pg_insert_donation_unit.h b/src/donaudb/pg_insert_donation_unit.h
@@ -40,7 +40,7 @@ DH_PG_insert_donation_unit (
void *cls,
const struct DONAU_DonationUnitHashP *h_donation_unit_pub,
const struct DONAU_DonationUnitPublicKey *donation_unit_pub,
- struct TALER_Amount *value,
- uint64_t validity_year);
+ uint64_t validity_year,
+ struct TALER_Amount *value);
#endif
diff --git a/src/include/donaudb_plugin.h b/src/include/donaudb_plugin.h
@@ -447,10 +447,10 @@ struct DONAUDB_Plugin
enum GNUNET_DB_QueryStatus
(*insert_donation_unit)(
void *cls,
- const struct DONAU_DonationUnitPublicKey *donation_unit_pub,
const struct DONAU_DonationUnitHashP *h_donation_unit_pub,
- struct TALER_Amount value,
- uint64_t validity_year);
+ const struct DONAU_DonationUnitPublicKey *donation_unit_pub,
+ uint64_t validity_year,
+ struct TALER_Amount *value);
/**
* Insert history entry of a charity