summaryrefslogtreecommitdiff
path: root/brandt.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-08-17 23:53:49 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-08-17 23:53:49 +0200
commit25321ed0f5fa06f7c25d9e571c27c8dbeb5ffb96 (patch)
treec9ba7f1466ba4fd1a5185452b1b606f7cb52f00c /brandt.h
parent8daaa565bd5cfa5806296ef25efc2f5ee41af5bf (diff)
get auctions rolling
Diffstat (limited to 'brandt.h')
-rw-r--r--brandt.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/brandt.h b/brandt.h
index 1903301..385d67b 100644
--- a/brandt.h
+++ b/brandt.h
@@ -92,15 +92,16 @@ typedef int
* auction. This is the Pointer given to BRANDT_join() / BRANDT_new().
* @param[in] bidder_id The numeric Id of the bidder this report refers to.
* @param[in] status 1 if the user @a bidder_id has won the auction, 0 if he has
- * lost, -1 if erroneous behaviour was detected.
+ * lost, negative if erroneous behaviour was detected. Check the result_code
+ * enum for more information.
* @param[in] price The price, the winner has to pay or 0 if the auction result
* is private and the user did not win.
*/
typedef void
-(*BRANDT_CbResult)(void *auction_closure,
- unsigned int bidder_id,
- int status,
- uint16_t price);
+(*BRANDT_CbResult)(void *auction_closure,
+ int32_t bidder_id,
+ int status,
+ uint16_t price);
void
@@ -214,6 +215,17 @@ BRANDT_new (BRANDT_CbResult result,
/**
+ * This function must be called when bidding after receipt of the start
+ * notification.
+ *
+ * @param[in] auction The pointer returned by BRANDT_join().
+ * @param[in] n The amount of bidders (from the start announcement message).
+ void
+ BRANDT_start (struct BRANDT_Auction *auction,
+ uint16_t n);
+
+
+ /**
* Clean up this auction on shutdown.
*
* @param[in] auction The pointer returned by BRANDT_join() or BRANDT_new().