rename: TALER_config_get_denom->amount

This commit is contained in:
Christian Grothoff 2020-01-19 20:39:27 +01:00
parent bc812a0a51
commit 6f3c682722
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 28 additions and 28 deletions

View File

@ -676,10 +676,10 @@ get_cointype_params (const char *ct,
}
params->rsa_keysize = (unsigned int) rsa_keysize;
if (GNUNET_OK !=
TALER_config_get_denom (kcfg,
ct,
"value",
&params->value))
TALER_config_get_amount (kcfg,
ct,
"value",
&params->value))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,
@ -687,10 +687,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
TALER_config_get_denom (kcfg,
ct,
"fee_withdraw",
&params->fee_withdraw))
TALER_config_get_amount (kcfg,
ct,
"fee_withdraw",
&params->fee_withdraw))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,
@ -698,10 +698,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
TALER_config_get_denom (kcfg,
ct,
"fee_deposit",
&params->fee_deposit))
TALER_config_get_amount (kcfg,
ct,
"fee_deposit",
&params->fee_deposit))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,
@ -709,10 +709,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
TALER_config_get_denom (kcfg,
ct,
"fee_refresh",
&params->fee_refresh))
TALER_config_get_amount (kcfg,
ct,
"fee_refresh",
&params->fee_refresh))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,
@ -720,10 +720,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
TALER_config_get_denom (kcfg,
ct,
"fee_refund",
&params->fee_refund))
TALER_config_get_amount (kcfg,
ct,
"fee_refund",
&params->fee_refund))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,

View File

@ -115,10 +115,10 @@ TALER_b2s (const void *buf,
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/
int
TALER_config_get_denom (const struct GNUNET_CONFIGURATION_Handle *cfg,
const char *section,
const char *option,
struct TALER_Amount *denom);
TALER_config_get_amount (const struct GNUNET_CONFIGURATION_Handle *cfg,
const char *section,
const char *option,
struct TALER_Amount *denom);
/**

View File

@ -33,10 +33,10 @@
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/
int
TALER_config_get_denom (const struct GNUNET_CONFIGURATION_Handle *cfg,
const char *section,
const char *option,
struct TALER_Amount *denom)
TALER_config_get_amount (const struct GNUNET_CONFIGURATION_Handle *cfg,
const char *section,
const char *option,
struct TALER_Amount *denom)
{
char *str;