diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-10-08 10:51:02 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-10-08 10:51:02 +0200 |
commit | 2bccd24ecf7286ff35d464544358ffa414d39619 (patch) | |
tree | 960863b33412470dc863143f11c37470484d2af9 /src/include/taler_util.h | |
parent | 4c4e5f9cb4faf71c304060b0622a7b43b6280fb2 (diff) | |
download | exchange-2bccd24ecf7286ff35d464544358ffa414d39619.tar.xz |
currency DD51 JSON generation
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r-- | src/include/taler_util.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 66951e124..4c3a1c9f2 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -220,6 +220,12 @@ struct TALER_CurrencySpecification char currency[TALER_CURRENCY_LEN]; /** + * Human-readable long name of the currency, e.g. + * "Japanese Yen". + */ + char *name; + + /** * Character used to separate decimals. String as * multi-byte sequences may be required (UTF-8!). */ @@ -287,6 +293,18 @@ TALER_CONFIG_free_currencies ( /** + * Convert a currency specification to the + * respective JSON object. + * + * @param cspec currency specification + * @return JSON object encoding @a cspec for `/config`. + */ +json_t * +TALER_CONFIG_currency_specs_to_json (const struct + TALER_CurrencySpecification *cspec); + + +/** * Allow user to specify an amount on the command line. * * @param shortName short name of the option |