From 5633ad5a26d435c32b0df2b757950c416c6faaec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Mon, 27 Jun 2022 10:36:13 +0200 Subject: better api for parsing a denomination group --- src/include/taler_json_lib.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/include/taler_json_lib.h') diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index 0b58b43d1..1300f8751 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -375,9 +375,6 @@ struct TALER_DenominationGroup struct TALER_DenomFeeSet fees; struct TALER_AgeMask age_mask; - // currency must be set prior to calling TALER_JSON_spec_denomination_group - const char *currency; - // hash is/should be the XOR of all SHA-512 hashes of the public keys in this // group struct GNUNET_HashCode hash; @@ -385,14 +382,15 @@ struct TALER_DenominationGroup /** * Generate a parser for a group of denominations. - * NOTE: group.currency MUST have been set prior to calling this function. * - * @param field name of the field, maybe NULL + * @param[in] field name of the field, maybe NULL + * @param[in] currency name of the currency * @param[out] group denomination group information * @return corresponding field spec */ struct GNUNET_JSON_Specification TALER_JSON_spec_denomination_group (const char *field, + const char *currency, struct TALER_DenominationGroup *group); /** -- cgit v1.2.3