From c3ab96b242ab18a7a856d59a3618f4bd13ac3384 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 3 Jun 2015 15:41:09 +0200 Subject: more documenting, checking for consistency between prepared statements and functional logic --- src/include/taler_amount_lib.h | 14 ++++++++++++++ 1 file changed, 14 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 783b32547..06549bac1 100644 --- a/src/include/taler_amount_lib.h +++ b/src/include/taler_amount_lib.h @@ -181,6 +181,20 @@ TALER_amount_cmp_currency (const struct TALER_Amount *a1, const struct TALER_Amount *a2); +/** + * Test if @a a1 and @a a2 are the same currency, NBO variant. + * + * @param a1 amount to test + * @param a2 amount to test + * @return #GNUNET_YES if @a a1 and @a a2 are the same currency + * #GNUNET_NO if the currencies are different + * #GNUNET_SYSERR if either amount is invalid + */ +int +TALER_amount_cmp_currency_nbo (const struct TALER_AmountNBO *a1, + const struct TALER_AmountNBO *a2); + + /** * Perform saturating subtraction of amounts. * -- cgit v1.2.3