diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-28 17:23:05 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-28 17:23:05 +0200 |
commit | 7a1146f147da5446b4b8488cc60d4368aadfe66a (patch) | |
tree | 491f2717ee32db73cca774baab3a0c2aa5f517de /src/exchange-lib/testing_api_trait_amount.c | |
parent | 939c1dd6a57ec0cd93e255a933c5e55bca76f7f5 (diff) |
Commenting the remaining "lib" traits.
Diffstat (limited to 'src/exchange-lib/testing_api_trait_amount.c')
-rw-r--r-- | src/exchange-lib/testing_api_trait_amount.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/exchange-lib/testing_api_trait_amount.c b/src/exchange-lib/testing_api_trait_amount.c index f21ec8704..9c37783b5 100644 --- a/src/exchange-lib/testing_api_trait_amount.c +++ b/src/exchange-lib/testing_api_trait_amount.c @@ -19,7 +19,7 @@ /** * @file exchange-lib/testing_api_trait_amount.c - * @brief offer amounts as traits + * @brief offer amounts as traits. * @author Marcello Stanisci */ @@ -35,10 +35,11 @@ /** * Obtain an amount from a @a cmd. * - * @param cmd command to extract trait from - * @param selector which amount to pick if @a cmd has multiple + * @param cmd command to extract the amount from. + * @param index which amount to pick if @a cmd has multiple * on offer - * @param amount[out] set to the amount + * @param amount[out] set to the amount. + * * @return #GNUNET_OK on success */ int @@ -53,6 +54,16 @@ TALER_TESTING_get_trait_amount_obj ( index); } + +/** + * Offer amount. + * + * @param index which amount to offer, in case there are + * multiple available. + * @param amount the amount to offer. + * + * @return the trait. + */ struct TALER_TESTING_Trait TALER_TESTING_make_trait_amount_obj ( unsigned int index, |