diff options
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; } |