summaryrefslogtreecommitdiff
path: root/src/include/taler_amount_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-03 15:41:09 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-03 15:41:09 +0200
commitc3ab96b242ab18a7a856d59a3618f4bd13ac3384 (patch)
tree8fb70e805bc02ac8bf11b6a3ad85fd458636dacb /src/include/taler_amount_lib.h
parentd4f5af21513c229d336e6a9dd99dc98c8179d4ce (diff)
downloadexchange-c3ab96b242ab18a7a856d59a3618f4bd13ac3384.tar.gz
exchange-c3ab96b242ab18a7a856d59a3618f4bd13ac3384.tar.bz2
exchange-c3ab96b242ab18a7a856d59a3618f4bd13ac3384.zip
more documenting, checking for consistency between prepared statements and functional logic
Diffstat (limited to 'src/include/taler_amount_lib.h')
-rw-r--r--src/include/taler_amount_lib.h14
1 files changed, 14 insertions, 0 deletions
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
@@ -182,6 +182,20 @@ TALER_amount_cmp_currency (const struct TALER_Amount *a1,
/**
+ * 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.
*
* @param diff where to store (@a a1 - @a a2), or invalid if @a a2 > @a a1