summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-09 01:39:42 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-09 01:39:42 -0400
commitf708e4d64cd72775a640182d308a7549fb3006d9 (patch)
treec69fb0e2d347abe13615e056c9bccb9e977e3148 /src/include
parent92ac6dd11a35f3c484a54ecb47ef3ca66cf30d0f (diff)
downloadexchange-f708e4d64cd72775a640182d308a7549fb3006d9.tar.gz
exchange-f708e4d64cd72775a640182d308a7549fb3006d9.tar.bz2
exchange-f708e4d64cd72775a640182d308a7549fb3006d9.zip
made a uuid 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 d4251364f..c3278b55f 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -2938,6 +2938,35 @@ TALER_TESTING_get_trait_cmd (const struct TALER_TESTING_Command *cmd,
/**
+ * Obtain a uuid from @a cmd.
+ *
+ * @param cmd command to extract the uuid from.
+ * @param index which amount to pick if @a cmd has multiple
+ * on offer
+ * @param[out] uuid where to write the uuid.
+ * @return #GNUNET_OK on success.
+ */
+int
+TALER_TESTING_get_trait_uuid (const struct TALER_TESTING_Command *cmd,
+ unsigned int index,
+ struct GNUNET_Uuid **uuid);
+
+
+/**
+ * Offer a uuid in a trait.
+ *
+ * @param index which uuid to offer, in case there are
+ * multiple available.
+ * @param uuid the uuid to offer.
+ *
+ * @return the trait.
+ */
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_uuid (unsigned int index,
+ const struct GNUNET_Uuid *uuid);
+
+
+/**
* Obtain a absolute time from @a cmd.
*
* @param cmd command to extract trait from