diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-02 11:46:53 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-02 11:47:25 +0200 |
commit | ed7b39b035fa18b777b71ddc568deff2f7977c82 (patch) | |
tree | a0b6e7b61deb1ee359d73dc5087452cdd166319b /src/testing/testing_api_trait_payment_secret.c | |
parent | 3e8be4c4f824a09df14734ac4ccb9bcc5b2535d2 (diff) | |
download | anastasis-ed7b39b035fa18b777b71ddc568deff2f7977c82.tar.gz anastasis-ed7b39b035fa18b777b71ddc568deff2f7977c82.tar.bz2 anastasis-ed7b39b035fa18b777b71ddc568deff2f7977c82.zip |
-more documentation fixes
Diffstat (limited to 'src/testing/testing_api_trait_payment_secret.c')
-rw-r--r-- | src/testing/testing_api_trait_payment_secret.c | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/testing/testing_api_trait_payment_secret.c b/src/testing/testing_api_trait_payment_secret.c index 6238879..c885fb7 100644 --- a/src/testing/testing_api_trait_payment_secret.c +++ b/src/testing/testing_api_trait_payment_secret.c @@ -17,7 +17,7 @@ <http://www.gnu.org/licenses/> */ /** - * @file lib/testing_api_trait_payment_secret.c + * @file testing/testing_api_trait_payment_secret.c * @brief traits to offer a payment identifier * @author Dennis Neufeld */ @@ -28,17 +28,9 @@ "anastasis-payment_secret" -/** - * Obtain an account public key from @a cmd. - * - * @param cmd command to extract the payment identifier from. - * @param index the payment identifier's index number. - * @param n[out] set to the payment identifier coming from @a cmd. - * @return #GNUNET_OK on success. - */ int -ANASTASIS_TESTING_get_trait_payment_secret - (const struct TALER_TESTING_Command *cmd, +ANASTASIS_TESTING_get_trait_payment_secret ( + const struct TALER_TESTING_Command *cmd, unsigned int index, const struct ANASTASIS_PaymentSecretP **payment_secret) { @@ -49,16 +41,9 @@ ANASTASIS_TESTING_get_trait_payment_secret } -/** - * Offer a payment identifier. - * - * @param index usually zero - * @param h the payment identifier to offer. - * @return #GNUNET_OK on success. - */ struct TALER_TESTING_Trait -ANASTASIS_TESTING_make_trait_payment_secret - (unsigned int index, +ANASTASIS_TESTING_make_trait_payment_secret ( + unsigned int index, const struct ANASTASIS_PaymentSecretP *h) { struct TALER_TESTING_Trait ret = { @@ -66,6 +51,7 @@ ANASTASIS_TESTING_make_trait_payment_secret .trait_name = ANASTASIS_TESTING_TRAIT_PAYMENT_SECRET, .ptr = (const void *) h }; + return ret; } |