aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-02-16 10:57:23 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-02-16 10:57:23 +0100
commit513a22c34404d87c0fba1f6054ef049553e19d6e (patch)
treebaf95b8fd5bb054648877a7be3bde24feb24ad44 /src/include
parent63109b69105930654889f5a5641989b29c92f467 (diff)
offering amount _objects_ as traits (a string version of
it was already implemented). "Withdraw" command uses it.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_testing_lib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 897903303..f7af83311 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -1309,4 +1309,27 @@ TALER_TESTING_make_trait_order_id
(unsigned int index,
const char *order_id);
+
+/**
+ * Obtain an amount from a @a cmd.
+ *
+ * @param cmd command to extract trait from
+ * @param selector which amount to pick if @a cmd has multiple
+ * on offer
+ * @param amount[out] set to the amount
+ * @return #GNUNET_OK on success
+ */
+int
+TALER_TESTING_get_trait_amount_obj (
+ const struct TALER_TESTING_Command *cmd,
+ unsigned int index,
+ struct TALER_Amount **amount);
+
+
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_amount_obj (
+ unsigned int index,
+ const struct TALER_Amount *amount);
+
+
#endif