/*
This file is part of GNUnet.
- (C) 2010,2011 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2010,2011 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
*/
static struct GNUNET_ATS_SchedulingHandle *sched_ats;
+/**
+ * Our address record.
+ */
+static struct GNUNET_ATS_AddressRecord *ar;
+
/**
* Return value
*/
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Statistics observed address added, now destroying address\n");
- GNUNET_ATS_address_destroyed (sched_ats,
- &test_hello_address,
- test_session);
+ GNUNET_ATS_address_destroy (ar);
+ ar = NULL;
}
return GNUNET_OK;
}
const struct GNUNET_HELLO_Address *address,
struct Session *session,
struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
- struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
- const struct GNUNET_ATS_Information *atsi,
- uint32_t ats_count)
+ struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Did not expect suggestion callback!\n");
test_hello_address.address_length = test_addr.addr_len;
/* Adding address */
- GNUNET_ATS_address_add (sched_ats,
- &test_hello_address,
- test_session,
- test_ats_info,
- test_ats_count);
+ ar = GNUNET_ATS_address_add (sched_ats,
+ &test_hello_address,
+ test_session,
+ test_ats_info,
+ test_ats_count);
}