[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28898 - in gnunet/src: ats-tool dht fs include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28898 - in gnunet/src: ats-tool dht fs include |
Date: |
Thu, 29 Aug 2013 17:35:43 +0200 |
Author: wachs
Date: 2013-08-29 17:35:43 +0200 (Thu, 29 Aug 2013)
New Revision: 28898
Modified:
gnunet/src/ats-tool/gnunet-ats.c
gnunet/src/dht/gnunet-service-dht_neighbours.c
gnunet/src/fs/gnunet-service-fs_cp.c
gnunet/src/include/gnunet_ats_service.h
Log:
rename to match api name
Modified: gnunet/src/ats-tool/gnunet-ats.c
===================================================================
--- gnunet/src/ats-tool/gnunet-ats.c 2013-08-29 15:34:53 UTC (rev 28897)
+++ gnunet/src/ats-tool/gnunet-ats.c 2013-08-29 15:35:43 UTC (rev 28898)
@@ -454,7 +454,7 @@
if (NULL == ph)
fprintf (stderr, _("Cannot connect to ATS service,
exiting...\n"));
- GNUNET_ATS_change_preference (ph, &pid, type, (double) value,
GNUNET_ATS_PREFERENCE_END);
+ GNUNET_ATS_performance_change_preference (ph, &pid, type, (double)
value, GNUNET_ATS_PREFERENCE_END);
end_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
&end, NULL);
}
Modified: gnunet/src/dht/gnunet-service-dht_neighbours.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht_neighbours.c 2013-08-29 15:34:53 UTC
(rev 28897)
+++ gnunet/src/dht/gnunet-service-dht_neighbours.c 2013-08-29 15:35:43 UTC
(rev 28898)
@@ -500,7 +500,7 @@
GNUNET_STATISTICS_update (GDS_stats,
gettext_noop ("# Preference updates given to
core"),
1, GNUNET_NO);
- GNUNET_ATS_change_preference (atsAPI, &peer->id,
+ GNUNET_ATS_performance_change_preference (atsAPI, &peer->id,
GNUNET_ATS_PREFERENCE_BANDWIDTH,
(double) preference,
GNUNET_ATS_PREFERENCE_END);
peer->preference_task =
Modified: gnunet/src/fs/gnunet-service-fs_cp.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_cp.c 2013-08-29 15:34:53 UTC (rev
28897)
+++ gnunet/src/fs/gnunet-service-fs_cp.c 2013-08-29 15:35:43 UTC (rev
28898)
@@ -414,7 +414,7 @@
if (0 != cp->inc_preference)
{
- GNUNET_ATS_change_preference (GSF_ats, &target,
GNUNET_ATS_PREFERENCE_BANDWIDTH,
+ GNUNET_ATS_performance_change_preference (GSF_ats, &target,
GNUNET_ATS_PREFERENCE_BANDWIDTH,
(double) cp->inc_preference,
GNUNET_ATS_PREFERENCE_END);
cp->inc_preference = 0;
Modified: gnunet/src/include/gnunet_ats_service.h
===================================================================
--- gnunet/src/include/gnunet_ats_service.h 2013-08-29 15:34:53 UTC (rev
28897)
+++ gnunet/src/include/gnunet_ats_service.h 2013-08-29 15:35:43 UTC (rev
28898)
@@ -772,7 +772,6 @@
GNUNET_ATS_AddressInformationCallback
addr_info_cb,
void *addr_info_cb_cls);
-
/**
* Get information about addresses known to the ATS subsystem.
*
@@ -929,10 +928,21 @@
* @param ... 0-terminated specification of the desired changes
*/
void
-GNUNET_ATS_change_preference (struct GNUNET_ATS_PerformanceHandle *ph,
- const struct GNUNET_PeerIdentity *peer, ...);
+GNUNET_ATS_performance_change_preference (struct GNUNET_ATS_PerformanceHandle
*ph,
+ const
struct GNUNET_PeerIdentity *peer, ...);
+/**
+ * Send feedback to ATS on how good a the requirements for a peer and a
+ * preference is satisfied by ATS
+ *
+ * @param ph performance handle
+ * @param peer identifies the peer
+ * @param ... 0-terminated specification of the desired changes
+ */
+void
+GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph,
+
const
struct GNUNET_PeerIdentity *peer, ...);
#endif
/* end of file gnunet-service-transport_ats.h */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28898 - in gnunet/src: ats-tool dht fs include,
gnunet <=