summaryrefslogtreecommitdiff
path: root/brandt.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-08-12 14:38:10 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-08-12 15:22:57 +0200
commit6483328c4805b92390032ac45f55c50be7b6f103 (patch)
tree2a9fb3d125a0f850046973af0c061e5f3a7e2acb /brandt.h
parent155d0a2370721f1ba50759c25daa27b37c2234c7 (diff)
fill descr struct on new()
Diffstat (limited to 'brandt.h')
-rw-r--r--brandt.h26
1 files changed, 16 insertions, 10 deletions
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);
/**