From 513a22c34404d87c0fba1f6054ef049553e19d6e Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 16 Feb 2018 10:57:23 +0100 Subject: offering amount _objects_ as traits (a string version of it was already implemented). "Withdraw" command uses it. --- src/include/taler_testing_lib.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/include/taler_testing_lib.h') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 89790330..f7af8331 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 -- cgit v1.2.3