From a5ee672256b1c362b67b6d9ed1a08f2e00ac133a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 22 Dec 2023 14:54:48 +0800 Subject: deprecating currency code in currency specifications --- src/include/taler_json_lib.h | 2 ++ src/include/taler_util.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index 51fd17dd0..31fd7f196 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -234,12 +234,14 @@ TALER_JSON_spec_amount (const char *name, * a currency specification. * * @param name name of the amount field in the JSON + * @param currency_code currency code to parse * @param[out] r_cspec where the currency spec has to be written * @return spec for parsing an amount */ struct GNUNET_JSON_Specification TALER_JSON_spec_currency_specification ( const char *name, + const char *currency_code, struct TALER_CurrencySpecification *r_cspec); diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 7c2cc6880..7d5542a1b 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -215,7 +215,7 @@ TALER_config_get_currency (const struct GNUNET_CONFIGURATION_Handle *cfg, struct TALER_CurrencySpecification { /** - * Name of the currency. + * Currency code of the currency. */ char currency[TALER_CURRENCY_LEN]; -- cgit v1.2.3