aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-29 01:26:36 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-29 01:26:36 -0400
commitefa567fbb473ee60a74d18177ec79ff25683c3e2 (patch)
treec0c877609c67800075d3294551a2fc5cffca80cc /src/include
parent7a9086fa185f3ef5f1957bf0662007ef31864ff2 (diff)
trait for claim token
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 f13823fe6..85ea5b010 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -2974,6 +2974,35 @@ TALER_TESTING_make_trait_uuid (unsigned int index,
/**
+ * Obtain a claim token from @a cmd.
+ *
+ * @param cmd command to extract the token from.
+ * @param index which amount to pick if @a cmd has multiple
+ * on offer
+ * @param[out] ct where to write the token.
+ * @return #GNUNET_OK on success.
+ */
+int
+TALER_TESTING_get_trait_claim_token (const struct TALER_TESTING_Command *cmd,
+ unsigned int index,
+ const struct TALER_ClaimTokenP **ct);
+
+
+/**
+ * Offer a claim token in a trait.
+ *
+ * @param index which token to offer, in case there are
+ * multiple available.
+ * @param ct the token to offer.
+ *
+ * @return the trait.
+ */
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_claim_token (unsigned int index,
+ const struct TALER_ClaimTokenP *ct);
+
+
+/**
* Obtain a absolute time from @a cmd.
*
* @param cmd command to extract trait from