From 6483328c4805b92390032ac45f55c50be7b6f103 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Fri, 12 Aug 2016 14:38:10 +0200 Subject: fill descr struct on new() --- brandt.h | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'brandt.h') diff --git a/brandt.h b/brandt.h index 318da4f..108e082 100644 --- a/brandt.h +++ b/brandt.h @@ -153,21 +153,27 @@ BRANDT_join (BRANDT_CbBroadcast broadcast, * black-box pointer, do NOT dereference/change it or the data it points to! */ struct BRANDT_Auction * -BRANDT_new (BRANDT_CbBroadcast broadcast, - BRANDT_CbResult result, - void *auction_closure, - void **auction_data, - size_t *auction_data_len, +BRANDT_new (BRANDT_CbBroadcast broadcast, + BRANDT_CbResult result, + 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); + void *description, + uint32_t description_len, + uint16_t num_prices, + uint16_t m, + int outcome_public); -/** \todo */ +/** + * Clean up this auction on shutdown. + * + * @param[in] auction The pointer returned by BRANDT_join() or BRANDT_new(). + * \todo: implement (de)serialization */ void -BRANDT_free (); +BRANDT_destroy (struct BRANDT_Auction *auction); /** -- cgit v1.2.3