aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_trait_truth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_trait_truth.c')
-rw-r--r--src/testing/testing_trait_truth.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/testing/testing_trait_truth.c b/src/testing/testing_trait_truth.c
index 51696e1..36b33d6 100644
--- a/src/testing/testing_trait_truth.c
+++ b/src/testing/testing_trait_truth.c
@@ -29,14 +29,6 @@
29#define ANASTASIS_TESTING_TRAIT_TRUTH "anastasis-truth" 29#define ANASTASIS_TESTING_TRAIT_TRUTH "anastasis-truth"
30 30
31 31
32/**
33 * Obtain a truth from @a cmd.
34 *
35 * @param cmd command to extract the truth from.
36 * @param index the index of the truth
37 * @param t[out] set to the truth coming from @a cmd.
38 * @return #GNUNET_OK on success.
39 */
40int 32int
41ANASTASIS_TESTING_get_trait_truth (const struct TALER_TESTING_Command *cmd, 33ANASTASIS_TESTING_get_trait_truth (const struct TALER_TESTING_Command *cmd,
42 unsigned int index, 34 unsigned int index,
@@ -49,23 +41,16 @@ ANASTASIS_TESTING_get_trait_truth (const struct TALER_TESTING_Command *cmd,
49} 41}
50 42
51 43
52/**
53 * Offer a truth.
54 *
55 * @param index the truth's index number.
56 * @param t the truth to offer.
57 * @return #GNUNET_OK on success.
58 */
59struct TALER_TESTING_Trait 44struct TALER_TESTING_Trait
60ANASTASIS_TESTING_make_trait_truth 45ANASTASIS_TESTING_make_trait_truth (unsigned int index,
61 (unsigned int index, 46 const struct ANASTASIS_Truth *t)
62 const struct ANASTASIS_Truth *t)
63{ 47{
64 struct TALER_TESTING_Trait ret = { 48 struct TALER_TESTING_Trait ret = {
65 .index = index, 49 .index = index,
66 .trait_name = ANASTASIS_TESTING_TRAIT_TRUTH, 50 .trait_name = ANASTASIS_TESTING_TRAIT_TRUTH,
67 .ptr = (const void *) t 51 .ptr = (const void *) t
68 }; 52 };
53
69 return ret; 54 return ret;
70} 55}
71 56