From 0ff76b5abbf09aa273b7998f4d16bb0c0e4d90bb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 4 Apr 2016 16:47:11 +0200 Subject: fix test to ensure DB invariants are met --- src/include/taler_amount_lib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/include/taler_amount_lib.h') 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 @@ -127,6 +127,19 @@ TALER_string_to_amount (const char *str, struct TALER_Amount *denom); +/** + * 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. * -- cgit v1.2.3