diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-04 16:47:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-04 16:47:11 +0200 |
commit | 0ff76b5abbf09aa273b7998f4d16bb0c0e4d90bb (patch) | |
tree | 285f10a9026d5af1d763ab6a28c2f1b0db734974 /src/include | |
parent | bd6fb59e4ba0afd537563f356e6f1abf7b980666 (diff) | |
download | exchange-0ff76b5abbf09aa273b7998f4d16bb0c0e4d90bb.tar.xz |
fix test to ensure DB invariants are met
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_amount_lib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/taler_amount_lib.h b/src/include/taler_amount_lib.h index 094b96f7f..2fd547196 100644 --- a/src/include/taler_amount_lib.h +++ b/src/include/taler_amount_lib.h @@ -128,6 +128,19 @@ TALER_string_to_amount (const char *str, /** + * Parse denomination description, in the format "T:V.F". + * + * @param str denomination description + * @param denom denomination to write the result to, in NBO + * @return #GNUNET_OK if the string is a valid denomination specification, + * #GNUNET_SYSERR if it is invalid. + */ +int +TALER_string_to_amount_nbo (const char *str, + struct TALER_AmountNBO *denom); + + +/** * Get the value of "zero" in a particular currency. * * @param cur currency description |