differentiate starting functions better
This commit is contained in:
parent
0a2c2fba3f
commit
4ee150eac2
10
brandt.c
10
brandt.c
@ -51,8 +51,8 @@ BRANDT_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BRANDT_start (struct BRANDT_Auction *auction,
|
BRANDT_bidder_start (struct BRANDT_Auction *auction,
|
||||||
uint16_t n)
|
uint16_t n)
|
||||||
{
|
{
|
||||||
GNUNET_assert (n > 0);
|
GNUNET_assert (n > 0);
|
||||||
auction->n = n;
|
auction->n = n;
|
||||||
@ -61,7 +61,7 @@ BRANDT_start (struct BRANDT_Auction *auction,
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
start_auction (void *arg)
|
seller_start (void *arg)
|
||||||
{
|
{
|
||||||
struct BRANDT_Auction *ad = (struct BRANDT_Auction *)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);
|
until_start = GNUNET_TIME_absolute_get_remaining (time_start);
|
||||||
ret->task = GNUNET_SCHEDULER_add_delayed (until_start,
|
ret->task = GNUNET_SCHEDULER_add_delayed (until_start,
|
||||||
&start_auction,
|
&seller_start,
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
*auction_desc_len = sizeof (struct BRANDT_DescrP);
|
*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);
|
gcry_mpi_clear_highbit (ad->round_progress, 0);
|
||||||
if (msg_last == ++(ad->cur_round))
|
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] ||
|
if (!handler_out[atype][outcome][ad->cur_round] ||
|
||||||
|
4
brandt.h
4
brandt.h
@ -222,8 +222,8 @@ BRANDT_new (BRANDT_CbResult result,
|
|||||||
* @param[in] n The amount of bidders (from the start announcement message).
|
* @param[in] n The amount of bidders (from the start announcement message).
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
BRANDT_start (struct BRANDT_Auction *auction,
|
BRANDT_bidder_start (struct BRANDT_Auction *auction,
|
||||||
uint16_t n);
|
uint16_t n);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user