/*
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
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
*/
/**
/**
* GNUnet scheduler task that starts the update check process.
*/
-static GNUNET_SCHEDULER_TaskIdentifier update_task;
+static struct GNUNET_SCHEDULER_Task * update_task;
/**
* Pointer to service reset function called when we have new sensor updates.
up_default = NULL;
up = up_head;
- if (GNUNET_SCHEDULER_NO_TASK != update_task)
+ if (NULL != update_task)
{
GNUNET_SCHEDULER_cancel (update_task);
- update_task = GNUNET_SCHEDULER_NO_TASK;
+ update_task = NULL;
}
while (NULL != up)
{
struct GNUNET_MessageHeader *msg;
size_t msg_size;
- update_task = GNUNET_SCHEDULER_NO_TASK;
+ update_task = NULL;
if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
return;
if (GNUNET_YES == updating)
int count = 0;
if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (cfg, "sensor", "UPDATE_POINTS",
- &points_list))
+ GNUNET_CONFIGURATION_get_value_string (cfg, "sensor-update",
+ "UPDATE_POINTS", &points_list))
{
return 0;
}
{
updating = GNUNET_NO;
cleanup_updatepoint (up_default);
- GNUNET_SCHEDULER_add_continuation (&reset, NULL, 0);
+ GNUNET_SCHEDULER_add_now (&reset, NULL);
}
else
GNUNET_CADET_receive_done (channel);