diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-12-22 14:54:48 +0800 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-22 14:54:48 +0800 |
commit | a5ee672256b1c362b67b6d9ed1a08f2e00ac133a (patch) | |
tree | c7e80af879803242568b913d627a8f609d449fce /src/json | |
parent | afdccca78c95fe863f43614c92e4288a6bd79024 (diff) |
deprecating currency code in currency specifications
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/json_helper.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c index 450cc194c..e1670d0dc 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -162,15 +162,13 @@ parse_cspec (void *cls, struct GNUNET_JSON_Specification *spec) { struct TALER_CurrencySpecification *r_cspec = spec->ptr; + const char *currency = spec->cls; const char *name; - const char *currency; uint32_t fid; uint32_t fnd; uint32_t ftzd; const json_t *map; struct GNUNET_JSON_Specification gspec[] = { - GNUNET_JSON_spec_string ("currency", - ¤cy), GNUNET_JSON_spec_string ("name", &name), GNUNET_JSON_spec_uint32 ("num_fractional_input_digits", @@ -257,12 +255,13 @@ clean_cspec (void *cls, struct GNUNET_JSON_Specification TALER_JSON_spec_currency_specification ( const char *name, + const char *currency, struct TALER_CurrencySpecification *r_cspec) { struct GNUNET_JSON_Specification ret = { .parser = &parse_cspec, .cleaner = &clean_cspec, - .cls = NULL, + .cls = currency, .field = name, .ptr = r_cspec, .ptr_size = 0, |