diff options
Diffstat (limited to 'src/testing/testing_api_trait_code.c')
-rw-r--r-- | src/testing/testing_api_trait_code.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/src/testing/testing_api_trait_code.c b/src/testing/testing_api_trait_code.c index 9989dec..5892065 100644 --- a/src/testing/testing_api_trait_code.c +++ b/src/testing/testing_api_trait_code.c | |||
@@ -17,7 +17,7 @@ | |||
17 | <http://www.gnu.org/licenses/> | 17 | <http://www.gnu.org/licenses/> |
18 | */ | 18 | */ |
19 | /** | 19 | /** |
20 | * @file testing/testing_api_trait_string.c | 20 | * @file testing/testing_api_trait_code.c |
21 | * @brief traits to offers a code for a challenge | 21 | * @brief traits to offers a code for a challenge |
22 | * @author Dominik Meister | 22 | * @author Dominik Meister |
23 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
@@ -28,17 +28,9 @@ | |||
28 | #define ANASTASIS_TESTING_TRAIT_CODE "anastasis-code" | 28 | #define ANASTASIS_TESTING_TRAIT_CODE "anastasis-code" |
29 | 29 | ||
30 | 30 | ||
31 | /** | ||
32 | * Obtain a code from @a cmd. | ||
33 | * | ||
34 | * @param cmd command to extract the number from. | ||
35 | * @param index the number's index number. | ||
36 | * @param n[out] set to the number coming from @a cmd. | ||
37 | * @return #GNUNET_OK on success. | ||
38 | */ | ||
39 | int | 31 | int |
40 | ANASTASIS_TESTING_get_trait_code | 32 | ANASTASIS_TESTING_get_trait_code ( |
41 | (const struct TALER_TESTING_Command *cmd, | 33 | const struct TALER_TESTING_Command *cmd, |
42 | unsigned int index, | 34 | unsigned int index, |
43 | const char **code) | 35 | const char **code) |
44 | { | 36 | { |
@@ -49,16 +41,9 @@ ANASTASIS_TESTING_get_trait_code | |||
49 | } | 41 | } |
50 | 42 | ||
51 | 43 | ||
52 | /** | ||
53 | * Offer a code. | ||
54 | * | ||
55 | * @param index the number's index number. | ||
56 | * @param code the code to offer. | ||
57 | * @return #GNUNET_OK on success. | ||
58 | */ | ||
59 | struct TALER_TESTING_Trait | 44 | struct TALER_TESTING_Trait |
60 | ANASTASIS_TESTING_make_trait_code | 45 | ANASTASIS_TESTING_make_trait_code ( |
61 | (unsigned int index, | 46 | unsigned int index, |
62 | const char *code) | 47 | const char *code) |
63 | { | 48 | { |
64 | struct TALER_TESTING_Trait ret = { | 49 | struct TALER_TESTING_Trait ret = { |
@@ -66,8 +51,9 @@ ANASTASIS_TESTING_make_trait_code | |||
66 | .trait_name = ANASTASIS_TESTING_TRAIT_CODE, | 51 | .trait_name = ANASTASIS_TESTING_TRAIT_CODE, |
67 | .ptr = (const void *) code | 52 | .ptr = (const void *) code |
68 | }; | 53 | }; |
54 | |||
69 | return ret; | 55 | return ret; |
70 | } | 56 | } |
71 | 57 | ||
72 | 58 | ||
73 | /* end of testing_api_trait_string.c */ | 59 | /* end of testing_api_trait_code.c */ |