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_blinding_key.c | |
parent | 939c1dd6a57ec0cd93e255a933c5e55bca76f7f5 (diff) | |
download | exchange-7a1146f147da5446b4b8488cc60d4368aadfe66a.tar.gz exchange-7a1146f147da5446b4b8488cc60d4368aadfe66a.tar.bz2 exchange-7a1146f147da5446b4b8488cc60d4368aadfe66a.zip |
Commenting the remaining "lib" traits.
Diffstat (limited to 'src/exchange-lib/testing_api_trait_blinding_key.c')
-rw-r--r-- | src/exchange-lib/testing_api_trait_blinding_key.c | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/src/exchange-lib/testing_api_trait_blinding_key.c b/src/exchange-lib/testing_api_trait_blinding_key.c index 23eb7acc1..12ce12ae1 100644 --- a/src/exchange-lib/testing_api_trait_blinding_key.c +++ b/src/exchange-lib/testing_api_trait_blinding_key.c @@ -18,7 +18,7 @@ */ /** * @file exchange-lib/testing_api_trait_blinding_key.c - * @brief main interpreter loop for testcases + * @brief offer blinding keys as traits. * @author Christian Grothoff * @author Marcello Stanisci */ @@ -36,15 +36,16 @@ * Obtain a blinding key from a @a cmd. * * @param cmd command to extract trait from - * @param selector which coin to pick if @a cmd has multiple on offer - * @param blinding_key[out] set to the blinding key of the coin - * @return #GNUNET_OK on success + * @param index which coin to pick if @a cmd has multiple on offer. + * @param blinding_key[out] set to the offered blinding key. + * + * @return #GNUNET_OK on success. */ int -TALER_TESTING_get_trait_blinding_key ( - const struct TALER_TESTING_Command *cmd, - unsigned int index, - struct TALER_DenominationBlindingKeyP **blinding_key) +TALER_TESTING_get_trait_blinding_key + (const struct TALER_TESTING_Command *cmd, + unsigned int index, + struct TALER_DenominationBlindingKeyP **blinding_key) { return cmd->traits (cmd->cls, (void **) blinding_key, @@ -53,10 +54,19 @@ TALER_TESTING_get_trait_blinding_key ( } + +/** + * Offer blinding key. + * + * @param index index number to associate to the offered key. + * @param blinding_key blinding key to offer. + * + * @return the trait. + */ struct TALER_TESTING_Trait -TALER_TESTING_make_trait_blinding_key ( - unsigned int index, - const struct TALER_DenominationBlindingKeyP *blinding_key) +TALER_TESTING_make_trait_blinding_key + (unsigned int index, + const struct TALER_DenominationBlindingKeyP *blinding_key) { struct TALER_TESTING_Trait ret = { .index = index, @@ -67,5 +77,4 @@ TALER_TESTING_make_trait_blinding_key ( return ret; } - /* end of testing_api_trait_blinding_key.c */ |