This commit is contained in:
Christian Grothoff 2016-07-13 14:50:38 +02:00
parent 81cb7d5241
commit 59ffa3e4b4

View File

@ -360,6 +360,31 @@ cleanup_auction_data ()
free (ad); free (ad);
} }
static void
ending (void *arg)
{
printf ("Good bye!!\n");
}
static void
world (void *arg)
{
printf ("World!\n");
GNUNET_SCHEDULER_shutdown ();
}
static void
hello (void *arg)
{
printf ("Hello\n");
GNUNET_SCHEDULER_add_shutdown (&ending, NULL);
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
&world,
NULL);
}
int int
main (int argc, char *argv[]) main (int argc, char *argv[])
@ -370,6 +395,8 @@ main (int argc, char *argv[])
bidders = 2; bidders = 2;
prizes = 2 * bidders; prizes = 2 * bidders;
GNUNET_SCHEDULER_run (&hello, NULL);
edc = GNUNET_CRYPTO_ecc_dlog_prepare (1024, 16); edc = GNUNET_CRYPTO_ecc_dlog_prepare (1024, 16);
BRANDT_init (edc); BRANDT_init (edc);