/*
* This file is part of GNUnet.
- * (C)
+ * Copyright (C)
*
* GNUnet is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
/**
* GNUNET scheduler task that forces the anomaly after a stabilization delay
*/
- GNUNET_SCHEDULER_TaskIdentifier delay_task;
+ struct GNUNET_SCHEDULER_Task * delay_task;
};
/**
* Task used to shutdown / expire the test
*/
-static GNUNET_SCHEDULER_TaskIdentifier shutdown_task;
+static struct GNUNET_SCHEDULER_Task * shutdown_task;
/**
* Status of the test to be returned by main()
static void
destroy_peer (struct TestPeer *peer)
{
- if (GNUNET_SCHEDULER_NO_TASK != peer->delay_task)
+ if (NULL != peer->delay_task)
{
GNUNET_SCHEDULER_cancel (peer->delay_task);
- peer->delay_task = GNUNET_SCHEDULER_NO_TASK;
+ peer->delay_task = NULL;
}
if (NULL != peer->sensor_op)
{
* @return #GNUNET_YES to continue iterating, #GNUNET_NO to stop
*/
static int
-peerstore_watch_cb (void *cls, struct GNUNET_PEERSTORE_Record *record,
- char *emsg)
+peerstore_watch_cb (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
struct TestPeer *peer = cls;
struct GNUNET_SENSOR_DashboardAnomalyEntry *anomaly;
{
struct TestPeer *peer = cls;
- peer->delay_task = GNUNET_SCHEDULER_NO_TASK;
+ peer->delay_task = NULL;
GNUNET_SENSOR_force_anomaly (peer->sensor, (char *) sensor_name, GNUNET_YES,
NULL, NULL);
}
peer = GNUNET_new (struct TestPeer);
peer->testbed_peer = testbed_peer;
- peer->delay_task = GNUNET_SCHEDULER_NO_TASK;
+ peer->delay_task = NULL;
GNUNET_CRYPTO_get_peer_identity (pinfo->result.cfg, &peer->peer_id);
if (NULL == peer_head) /* First peer (collection point) */
{