From 4322bbf2f1722b4c53114901768772dabdb7e822 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Mar 2020 20:08:38 +0100 Subject: move common logic to parse currency into libtalerutil --- src/include/taler_util.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/include/taler_util.h') diff --git a/src/include/taler_util.h b/src/include/taler_util.h index cf44f0238..c7bf9c02a 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -137,6 +137,19 @@ TALER_config_get_amount (const struct GNUNET_CONFIGURATION_Handle *cfg, struct TALER_Amount *denom); +/** + * Load our currency from the @a cfg (in section [taler] + * the option "CURRENCY"). + * + * @param cfg configuration to use + * @param[out] currency where to write the result + * @return #GNUNET_OK on success, #GNUNET_SYSERR on failure + */ +int +TALER_config_get_currency (const struct GNUNET_CONFIGURATION_Handle *cfg, + char **currency); + + /** * Allow user to specify an amount on the command line. * -- cgit v1.2.3