/*
This file is part of GNUnet.
- (C) 2010-2013 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2010-2013 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
{
struct BenchmarkPartner *p = cls;
double pref_value;
- p->pg->set_task = GNUNET_SCHEDULER_NO_TASK;
+ p->pg->set_task = NULL;
pref_value = get_preference (p->pg);
GNUNET_ATS_print_preference_type (p->pg->kind), pref_value);
GNUNET_ATS_performance_change_preference(p->me->ats_perf_handle,
- &p->dest->id, p->pg->kind, pref_value, GNUNET_ATS_PREFERENCE_END);
+ &p->dest->id,
+ p->pg->kind,
+ pref_value,
+ GNUNET_ATS_PREFERENCE_END);
switch (p->pg->kind) {
case GNUNET_ATS_PREFERENCE_BANDWIDTH:
* @param src source
* @param dest partner
* @param type type of preferences to generate
- * @param base_rate traffic base rate to send data with
- * @param max_rate traffic maximum rate to send data with
- * @param period duration of a period of traffic generation (~ 1/frequency)
- * @param duration how long to generate traffic
- * @return the traffic generator
+ * @param base_value traffic base rate to send data with
+ * @param value_rate traffic maximum rate to send data with
+ * @param period duration of a period of preferences generation (~ 1/frequency)
+ * @param frequency how long to generate preferences
+ * @param kind ATS preference to generate
+ * @return the preference generator
*/
struct PreferenceGenerator *
GNUNET_ATS_TEST_generate_preferences_start (struct BenchmarkPeer *src,
GNUNET_CONTAINER_DLL_remove (pg_head, pg_tail, pg);
pg->dest->pg = NULL;
- if (GNUNET_SCHEDULER_NO_TASK != pg->set_task)
+ if (NULL != pg->set_task)
{
GNUNET_SCHEDULER_cancel (pg->set_task);
- pg->set_task = GNUNET_SCHEDULER_NO_TASK;
+ pg->set_task = NULL;
}
GNUNET_free (pg);
}
/* end of file ats-testing-preferences.c */
-