aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-08-19 22:55:42 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-08-19 22:55:42 +0200
commit4ee150eac2c2f976d2b75f7c46a2623fd3a12376 (patch)
tree74cea18eea184bac65e4cd8ac2ed9da42e58accb
parent0a2c2fba3fbd6809013dd2607707dbe99c4dc4b8 (diff)
differentiate starting functions better
-rw-r--r--brandt.c10
-rw-r--r--brandt.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/brandt.c b/brandt.c
index 571d5b8..a376242 100644
--- a/brandt.c
+++ b/brandt.c
@@ -51,8 +51,8 @@ BRANDT_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx)
void
-BRANDT_start (struct BRANDT_Auction *auction,
- uint16_t n)
+BRANDT_bidder_start (struct BRANDT_Auction *auction,
+ uint16_t n)
{
GNUNET_assert (n > 0);
auction->n = n;
@@ -61,7 +61,7 @@ BRANDT_start (struct BRANDT_Auction *auction,
static void
-start_auction (void *arg)
+seller_start (void *arg)
{
struct BRANDT_Auction *ad = (struct BRANDT_Auction *)arg;
@@ -127,7 +127,7 @@ BRANDT_new (BRANDT_CbResult result,
until_start = GNUNET_TIME_absolute_get_remaining (time_start);
ret->task = GNUNET_SCHEDULER_add_delayed (until_start,
- &start_auction,
+ &seller_start,
ret);
*auction_desc_len = sizeof (struct BRANDT_DescrP);
@@ -273,7 +273,7 @@ advance_round (struct BRANDT_Auction *ad,
gcry_mpi_clear_highbit (ad->round_progress, 0);
if (msg_last == ++(ad->cur_round))
{
- /** \todo: finish */
+ /** \todo: unify …_determine_outcome function signature and call here */
}
if (!handler_out[atype][outcome][ad->cur_round] ||
diff --git a/brandt.h b/brandt.h
index 9487e06..569db11 100644
--- a/brandt.h
+++ b/brandt.h
@@ -222,8 +222,8 @@ BRANDT_new (BRANDT_CbResult result,
* @param[in] n The amount of bidders (from the start announcement message).
*/
void
-BRANDT_start (struct BRANDT_Auction *auction,
- uint16_t n);
+BRANDT_bidder_start (struct BRANDT_Auction *auction,
+ uint16_t n);
/**