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_reserve_priv.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_reserve_priv.c')
-rw-r--r-- | src/exchange-lib/testing_api_trait_reserve_priv.c | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/src/exchange-lib/testing_api_trait_reserve_priv.c b/src/exchange-lib/testing_api_trait_reserve_priv.c index 971741f65..587a11c6a 100644 --- a/src/exchange-lib/testing_api_trait_reserve_priv.c +++ b/src/exchange-lib/testing_api_trait_reserve_priv.c @@ -35,17 +35,17 @@ /** * Obtain a reserve private 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 reserve_priv[out] set to the private key of the reserve - * @return #GNUNET_OK on success + * @param cmd command to extract the reserve priv from. + * @param index reserve priv's index number. + * @param reserve_priv[out] set to the reserve priv. + * + * @return #GNUNET_OK on success. */ int -TALER_TESTING_get_trait_reserve_priv ( - const struct TALER_TESTING_Command *cmd, - unsigned int index, - struct TALER_ReservePrivateKeyP **reserve_priv) +TALER_TESTING_get_trait_reserve_priv + (const struct TALER_TESTING_Command *cmd, + unsigned int index, + struct TALER_ReservePrivateKeyP **reserve_priv) { return cmd->traits (cmd->cls, (void **) reserve_priv, @@ -54,10 +54,19 @@ TALER_TESTING_get_trait_reserve_priv ( } + +/** + * Offer a reserve private key. + * + * @param index reserve priv's index number. + * @param reserve_priv reserve private key to offer. + * + * @return the trait. + */ struct TALER_TESTING_Trait -TALER_TESTING_make_trait_reserve_priv ( - unsigned int index, - const struct TALER_ReservePrivateKeyP *reserve_priv) +TALER_TESTING_make_trait_reserve_priv + (unsigned int index, + const struct TALER_ReservePrivateKeyP *reserve_priv) { struct TALER_TESTING_Trait ret = { .index = index, @@ -67,5 +76,4 @@ TALER_TESTING_make_trait_reserve_priv ( return ret; } - /* end of testing_api_trait_reserve_priv.c */ |