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 @@ <http://www.gnu.org/licenses/> */ /** - * @file testing/testing_api_trait_string.c + * @file testing/testing_api_trait_code.c * @brief traits to offers a code for a challenge * @author Dominik Meister * @author Christian Grothoff @@ -28,17 +28,9 @@ #define ANASTASIS_TESTING_TRAIT_CODE "anastasis-code" -/** - * Obtain a code from @a cmd. - * - * @param cmd command to extract the number from. - * @param index the number's index number. - * @param n[out] set to the number coming from @a cmd. - * @return #GNUNET_OK on success. - */ int -ANASTASIS_TESTING_get_trait_code - (const struct TALER_TESTING_Command *cmd, +ANASTASIS_TESTING_get_trait_code ( + const struct TALER_TESTING_Command *cmd, unsigned int index, const char **code) { @@ -49,16 +41,9 @@ ANASTASIS_TESTING_get_trait_code } -/** - * Offer a code. - * - * @param index the number's index number. - * @param code the code to offer. - * @return #GNUNET_OK on success. - */ struct TALER_TESTING_Trait -ANASTASIS_TESTING_make_trait_code - (unsigned int index, +ANASTASIS_TESTING_make_trait_code ( + unsigned int index, const char *code) { struct TALER_TESTING_Trait ret = { @@ -66,8 +51,9 @@ ANASTASIS_TESTING_make_trait_code .trait_name = ANASTASIS_TESTING_TRAIT_CODE, .ptr = (const void *) code }; + return ret; } -/* end of testing_api_trait_string.c */ +/* end of testing_api_trait_code.c */ |