diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-17 10:48:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-17 10:48:12 +0100 |
commit | 0119f629b3603e9635932b691fc31967ff085f7e (patch) | |
tree | f190d9584f6483773668653d6700eb99dfe2e9c2 /src/include | |
parent | 293b4018d1270fa3edc9f893d6a80a78b5f091a7 (diff) | |
download | exchange-0119f629b3603e9635932b691fc31967ff085f7e.tar.xz |
move TALER_CONFIG_get_denom into util lib
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 74feb037a..3569bd782 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -84,5 +84,19 @@ struct GNUNET_CONFIGURATION_Handle * TALER_config_load (const char *base_dir); +/** + * Obtain denomination amount from configuration file. + * + * @param section section of the configuration to access + * @param option option of the configuration to access + * @param denom[OUT] set to the amount found in configuration + * @return #GNUNET_OK on success, #GNUNET_SYSERR on error + */ +int +TALER_config_get_denom (struct GNUNET_CONFIGURATION_Handle *cfg, + const char *section, + const char *option, + struct TALER_Amount *denom); + #endif |