diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-02-15 16:36:00 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-02-15 16:36:00 +0100 |
commit | d78f66d5e4753bf0546b3b2e8e2b7184064f92a8 (patch) | |
tree | 4d1ac5e572dd23c439ddea20b8a2c81e5b1eb15f /src/include | |
parent | 5b1e17617faf356f0d85e7e6bf2b188483bcf351 (diff) | |
download | exchange-d78f66d5e4753bf0546b3b2e8e2b7184064f92a8.tar.xz |
adding "order id" trait
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_testing_lib.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index a78f7f3f5..83fcd991c 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 |