summaryrefslogtreecommitdiff
path: root/brandt.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-08-10 14:53:31 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-08-10 14:53:31 +0200
commita19b226167966952138a9905a78c5b29067717d0 (patch)
treec6f9e9ac44a6bccfb00ae7d6ee7a8821d14f3b59 /brandt.h
parentf64f620b074bec1bbcca0a5cbc9331ff8c323605 (diff)
work on public interface implementation
Diffstat (limited to 'brandt.h')
-rw-r--r--brandt.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/brandt.h b/brandt.h
index ec3c959..318da4f 100644
--- a/brandt.h
+++ b/brandt.h
@@ -97,20 +97,21 @@ BRANDT_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx);
* @param[in] unicast Pointer to the unicast callback function
* @param[in] result Pointer to the result callback function
* @param[in] auction_closure Closure pointer representing the auction. This
- * will not be touched by libbrandt. It is only passed to the callbacks.
- * @param[in] auction_data The auction information data a an opaque data
- * structure. It will be parsed and checked by BRANDT_join().
+ * will not be touched by libbrandt itself. It is only passed to the callbacks.
+ * @param[in] auction_data The auction information data published by the seller.
+ * This is an opaque data structure. It will be parsed and checked by
+ * BRANDT_join().
* @param[in] auction_data_len The length in bytes of the @a auction_data
* structure.
* @return A pointer, which should only be remembered and passed to
* libbrandt functions when the client needs to refer to this auction. This is a
- * black-box pointer, do NOT access/change it or the data it points to!
+ * black-box pointer, do NOT dereference/change it or the data it points to!
*/
struct BRANDT_Auction *
BRANDT_join (BRANDT_CbBroadcast broadcast,
BRANDT_CbUnicast unicast,
BRANDT_CbResult result,
- const void *auction_closure,
+ void *auction_closure,
const void *auction_data,
size_t auction_data_len);
/* \todo: where do I specify my bid? */
@@ -149,7 +150,7 @@ BRANDT_join (BRANDT_CbBroadcast broadcast,
* winner and the seller.
* @return A pointer, which should only be remembered and passed to
* libbrandt functions when the client needs to refer to this auction. This is a
- * black-box pointer, do NOT access/change it or the data it points to!
+ * black-box pointer, do NOT dereference/change it or the data it points to!
*/
struct BRANDT_Auction *
BRANDT_new (BRANDT_CbBroadcast broadcast,
@@ -157,6 +158,8 @@ BRANDT_new (BRANDT_CbBroadcast broadcast,
void *auction_closure,
void **auction_data,
size_t *auction_data_len,
+ struct GNUNET_TIME_Absolute time_start,
+ struct GNUNET_TIME_Relative time_round,
uint16_t num_prices,
uint16_t m,
int outcome_public);