summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-08-29 15:35:43 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-08-29 15:35:43 +0000
commit1c8365e96ffb75fcae3729c1358f37a78559e93d (patch)
treee862a1aff8a72be17c4f8748b2c0e7088bf60286 /src
parentf5136eb1b1a24c5b307ce8123dfc4cc0c85facaf (diff)
downloadgnunet-1c8365e96ffb75fcae3729c1358f37a78559e93d.tar.gz
gnunet-1c8365e96ffb75fcae3729c1358f37a78559e93d.zip
rename to match api name
Diffstat (limited to 'src')
-rw-r--r--src/ats-tool/gnunet-ats.c2
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c2
-rw-r--r--src/fs/gnunet-service-fs_cp.c2
-rw-r--r--src/include/gnunet_ats_service.h16
4 files changed, 16 insertions, 6 deletions
diff --git a/src/ats-tool/gnunet-ats.c b/src/ats-tool/gnunet-ats.c
index e79517076..b42b7f372 100644
--- a/src/ats-tool/gnunet-ats.c
+++ b/src/ats-tool/gnunet-ats.c
@@ -454,7 +454,7 @@ testservice_ats (void *cls,
454 if (NULL == ph) 454 if (NULL == ph)
455 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n")); 455 fprintf (stderr, _("Cannot connect to ATS service, exiting...\n"));
456 456
457 GNUNET_ATS_change_preference (ph, &pid, type, (double) value, GNUNET_ATS_PREFERENCE_END); 457 GNUNET_ATS_performance_change_preference (ph, &pid, type, (double) value, GNUNET_ATS_PREFERENCE_END);
458 458
459 end_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &end, NULL); 459 end_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &end, NULL);
460 } 460 }
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 349c572b9..21772c2c4 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -500,7 +500,7 @@ update_core_preference (void *cls,
500 GNUNET_STATISTICS_update (GDS_stats, 500 GNUNET_STATISTICS_update (GDS_stats,
501 gettext_noop ("# Preference updates given to core"), 501 gettext_noop ("# Preference updates given to core"),
502 1, GNUNET_NO); 502 1, GNUNET_NO);
503 GNUNET_ATS_change_preference (atsAPI, &peer->id, 503 GNUNET_ATS_performance_change_preference (atsAPI, &peer->id,
504 GNUNET_ATS_PREFERENCE_BANDWIDTH, 504 GNUNET_ATS_PREFERENCE_BANDWIDTH,
505 (double) preference, GNUNET_ATS_PREFERENCE_END); 505 (double) preference, GNUNET_ATS_PREFERENCE_END);
506 peer->preference_task = 506 peer->preference_task =
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c
index 5f047665e..561d73c0d 100644
--- a/src/fs/gnunet-service-fs_cp.c
+++ b/src/fs/gnunet-service-fs_cp.c
@@ -414,7 +414,7 @@ schedule_transmission (struct GSF_PeerTransmitHandle *pth)
414 414
415 if (0 != cp->inc_preference) 415 if (0 != cp->inc_preference)
416 { 416 {
417 GNUNET_ATS_change_preference (GSF_ats, &target, GNUNET_ATS_PREFERENCE_BANDWIDTH, 417 GNUNET_ATS_performance_change_preference (GSF_ats, &target, GNUNET_ATS_PREFERENCE_BANDWIDTH,
418 (double) cp->inc_preference, 418 (double) cp->inc_preference,
419 GNUNET_ATS_PREFERENCE_END); 419 GNUNET_ATS_PREFERENCE_END);
420 cp->inc_preference = 0; 420 cp->inc_preference = 0;
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index 9a4bb6d6b..d5db26720 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -772,7 +772,6 @@ GNUNET_ATS_performance_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
772 GNUNET_ATS_AddressInformationCallback addr_info_cb, 772 GNUNET_ATS_AddressInformationCallback addr_info_cb,
773 void *addr_info_cb_cls); 773 void *addr_info_cb_cls);
774 774
775
776/** 775/**
777 * Get information about addresses known to the ATS subsystem. 776 * Get information about addresses known to the ATS subsystem.
778 * 777 *
@@ -929,10 +928,21 @@ GNUNET_ATS_print_preference_type (uint32_t type);
929 * @param ... 0-terminated specification of the desired changes 928 * @param ... 0-terminated specification of the desired changes
930 */ 929 */
931void 930void
932GNUNET_ATS_change_preference (struct GNUNET_ATS_PerformanceHandle *ph, 931GNUNET_ATS_performance_change_preference (struct GNUNET_ATS_PerformanceHandle *ph,
933 const struct GNUNET_PeerIdentity *peer, ...); 932 const struct GNUNET_PeerIdentity *peer, ...);
934 933
935 934
935/**
936 * Send feedback to ATS on how good a the requirements for a peer and a
937 * preference is satisfied by ATS
938 *
939 * @param ph performance handle
940 * @param peer identifies the peer
941 * @param ... 0-terminated specification of the desired changes
942 */
943void
944GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph,
945 const struct GNUNET_PeerIdentity *peer, ...);
936 946
937#endif 947#endif
938/* end of file gnunet-service-transport_ats.h */ 948/* end of file gnunet-service-transport_ats.h */