summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-12-22 14:54:48 +0800
committerChristian Grothoff <grothoff@gnunet.org>2023-12-22 14:54:48 +0800
commita5ee672256b1c362b67b6d9ed1a08f2e00ac133a (patch)
treec7e80af879803242568b913d627a8f609d449fce /src/include
parentafdccca78c95fe863f43614c92e4288a6bd79024 (diff)
downloadexchange-a5ee672256b1c362b67b6d9ed1a08f2e00ac133a.tar.gz
exchange-a5ee672256b1c362b67b6d9ed1a08f2e00ac133a.tar.bz2
exchange-a5ee672256b1c362b67b6d9ed1a08f2e00ac133a.zip
deprecating currency code in currency specifications
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_json_lib.h2
-rw-r--r--src/include/taler_util.h2
2 files changed, 3 insertions, 1 deletions
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];