diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-06-27 10:36:13 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-06-27 10:36:13 +0200 |
commit | 5633ad5a26d435c32b0df2b757950c416c6faaec (patch) | |
tree | 3937f9f21f394ffbf6798f7561e054f8367710ba /src/include | |
parent | a6544069f98fdbfce4ac215dd5f0ee0660469c2c (diff) | |
download | exchange-5633ad5a26d435c32b0df2b757950c416c6faaec.tar.xz |
better api for parsing a denomination group
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_json_lib.h | 8 |
1 files changed, 3 insertions, 5 deletions
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); /** |