summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-02-14 12:46:01 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-02-14 12:46:01 +0100
commit5b1e17617faf356f0d85e7e6bf2b188483bcf351 (patch)
tree0cc53564805d03d47a7a6368ecc0cd5343333853 /src/include
parentfe6960cce854cd4c665a27c4368e4397c8e7bcfb (diff)
downloadexchange-5b1e17617faf356f0d85e7e6bf2b188483bcf351.tar.gz
exchange-5b1e17617faf356f0d85e7e6bf2b188483bcf351.tar.bz2
exchange-5b1e17617faf356f0d85e7e6bf2b188483bcf351.zip
offer url trait
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_testing_lib.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index de671c9f7..a78f7f3f5 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -1251,4 +1251,33 @@ TALER_TESTING_get_trait_amount
unsigned int index,
const char **amount);
+
+/**
+ * Offer url in a trait.
+ *
+ * @param index which url is to be picked, in case
+ * multiple are offered.
+ * @param url 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 *url);
+
+/**
+ * Obtain a url from @a cmd.
+ *
+ * @param cmd command to extract trait from
+ * @param index which url is to be picked, in case
+ * multiple are offered.
+ * @param amount[out] where to write the url.
+ * @return #GNUNET_OK on success
+ */
+int
+TALER_TESTING_get_trait_url
+ (const struct TALER_TESTING_Command *cmd,
+ unsigned int index,
+ const char **url);
+
#endif