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_denom_sig.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_denom_sig.c')
-rw-r--r-- | src/exchange-lib/testing_api_trait_denom_sig.c | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/src/exchange-lib/testing_api_trait_denom_sig.c b/src/exchange-lib/testing_api_trait_denom_sig.c index e50a3ba8a..5d7d708e8 100644 --- a/src/exchange-lib/testing_api_trait_denom_sig.c +++ b/src/exchange-lib/testing_api_trait_denom_sig.c @@ -36,17 +36,17 @@ /** * Obtain a denomination signature from a @a cmd. * - * @param cmd command to extract trait from - * @param selector which signature to pick if @a cmd has multiple - * on offer - * @param denom_sig[out] set to the signature - * @return #GNUNET_OK on success + * @param cmd command to extract the denom sig from. + * @param index index number associated with the denom sig. + * @param denom_sig[out] set to the offered signature. + * + * @return #GNUNET_OK on success. */ int -TALER_TESTING_get_trait_denom_sig ( - const struct TALER_TESTING_Command *cmd, - unsigned int index, - struct TALER_DenominationSignature **denom_sig) +TALER_TESTING_get_trait_denom_sig + (const struct TALER_TESTING_Command *cmd, + unsigned int index, + struct TALER_DenominationSignature **denom_sig) { return cmd->traits (cmd->cls, (void **) denom_sig, @@ -55,10 +55,20 @@ TALER_TESTING_get_trait_denom_sig ( } + +/** + * Offer denom sig. + * + * @param index index number to associate to the signature on + * offer. + * @param denom_sig the denom sig on offer. + * + * @return the trait. + */ struct TALER_TESTING_Trait -TALER_TESTING_make_trait_denom_sig ( - unsigned int index, - const struct TALER_DenominationSignature *denom_sig) +TALER_TESTING_make_trait_denom_sig + (unsigned int index, + const struct TALER_DenominationSignature *denom_sig) { struct TALER_TESTING_Trait ret = { .index = index, |