/*
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;
}
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);
}