From d78f66d5e4753bf0546b3b2e8e2b7184064f92a8 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 15 Feb 2018 16:36:00 +0100 Subject: adding "order id" trait --- src/include/taler_testing_lib.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 a78f7f3f..83fcd991 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -1280,4 +1280,33 @@ TALER_TESTING_get_trait_url unsigned int index, const char **url); + +/** + * Obtain a order id from @a cmd. + * + * @param cmd command to extract trait from + * @param index which order id is to be picked, in case + * multiple are offered. + * @param order_id[out] where to write the order id. + * @return #GNUNET_OK on success + */ +int +TALER_TESTING_get_trait_order_id + (const struct TALER_TESTING_Command *cmd, + unsigned int index, + const char **order_id); + +/** + * Offer order id in a trait. + * + * @param index which order id is to be picked, in case + * multiple are offered. + * @param order_id the url to offer + * @return the trait, to be put in the traits array of the command + */ +struct TALER_TESTING_Trait +TALER_TESTING_make_trait_url + (unsigned int index, + const char *order_id); + #endif -- cgit v1.2.3