diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-26 15:02:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-26 15:02:37 +0000 |
commit | fec18deaff1382f2fc7598cb4a5c87865447ddda (patch) | |
tree | 7f3319f352f1b53efde2c4f66eb09297237f9339 /src/include | |
parent | 916a78761f48b4fabf4fd7d3d93f12cb679f4bd6 (diff) | |
download | gnunet-fec18deaff1382f2fc7598cb4a5c87865447ddda.tar.gz gnunet-fec18deaff1382f2fc7598cb4a5c87865447ddda.zip |
api change
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_ats_service.h | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index 6f6f9ee9e..692592148 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -698,23 +698,6 @@ GNUNET_ATS_address_destroyed (struct GNUNET_ATS_SchedulingHandle *sh, | |||
698 | struct GNUNET_ATS_PerformanceHandle; | 698 | struct GNUNET_ATS_PerformanceHandle; |
699 | 699 | ||
700 | /** | 700 | /** |
701 | * Signature of a function that is called with QoS information about an peer. | ||
702 | * | ||
703 | * @param cls closure | ||
704 | * @param peer the peer | ||
705 | * @param ats data for the peer | ||
706 | * @param ats_count number of performance records in 'ats' | ||
707 | */ | ||
708 | typedef void | ||
709 | (*GNUNET_ATS_PerformanceMonitorCb) (void *cls, | ||
710 | const struct GNUNET_PeerIdentity *peer, | ||
711 | const struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | ||
712 | const struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, | ||
713 | const struct GNUNET_ATS_Information *ats, | ||
714 | uint32_t ats_count); | ||
715 | |||
716 | |||
717 | /** | ||
718 | * Signature of a function that is called with QoS information about an address. | 701 | * Signature of a function that is called with QoS information about an address. |
719 | * | 702 | * |
720 | * @param cls closure | 703 | * @param cls closure |
@@ -728,7 +711,7 @@ typedef void | |||
728 | */ | 711 | */ |
729 | typedef void (*GNUNET_ATS_AddressInformationCallback) (void *cls, | 712 | typedef void (*GNUNET_ATS_AddressInformationCallback) (void *cls, |
730 | const struct GNUNET_HELLO_Address *address, | 713 | const struct GNUNET_HELLO_Address *address, |
731 | unsigned int address_active, | 714 | int address_active, |
732 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 715 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
733 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, | 716 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, |
734 | const struct GNUNET_ATS_Information *ats, | 717 | const struct GNUNET_ATS_Information *ats, |
@@ -744,9 +727,6 @@ struct GNUNET_ATS_AddressListHandle; | |||
744 | * Get handle to access performance API of the ATS subsystem. | 727 | * Get handle to access performance API of the ATS subsystem. |
745 | * | 728 | * |
746 | * @param cfg configuration to use | 729 | * @param cfg configuration to use |
747 | * @param perf_monitor_cb callback called when performance characteristics for | ||
748 | * a peer change | ||
749 | * @param perf_monitor_cb closure for the perf_monitor_cb | ||
750 | * @param addr_info_cb callback called when performance characteristics for | 730 | * @param addr_info_cb callback called when performance characteristics for |
751 | * an address change | 731 | * an address change |
752 | * @param addr_info_cb_cls closure for infocb | 732 | * @param addr_info_cb_cls closure for infocb |
@@ -754,37 +734,11 @@ struct GNUNET_ATS_AddressListHandle; | |||
754 | */ | 734 | */ |
755 | struct GNUNET_ATS_PerformanceHandle * | 735 | struct GNUNET_ATS_PerformanceHandle * |
756 | GNUNET_ATS_performance_init (const struct GNUNET_CONFIGURATION_Handle *cfg, | 736 | GNUNET_ATS_performance_init (const struct GNUNET_CONFIGURATION_Handle *cfg, |
757 | GNUNET_ATS_PerformanceMonitorCb perf_monitor_cb, | ||
758 | void *perf_monitor_cb_cls, | ||
759 | GNUNET_ATS_AddressInformationCallback addr_info_cb, | 737 | GNUNET_ATS_AddressInformationCallback addr_info_cb, |
760 | void *addr_info_cb_cls); | 738 | void *addr_info_cb_cls); |
761 | 739 | ||
762 | 740 | ||
763 | /** | 741 | /** |
764 | * Start monitoring performance information | ||
765 | * | ||
766 | * @param ph performance handle to use | ||
767 | * @param monitor_cb function to call on performance changes | ||
768 | * @param monitor_cb_cls closure for infocb | ||
769 | * @return a performance monitor handle | ||
770 | */ | ||
771 | struct GNUNET_ATS_PerformanceMonitorHandle * | ||
772 | GNUNET_ATS_performance_monitor_start (struct GNUNET_ATS_PerformanceHandle * ph, | ||
773 | GNUNET_ATS_PerformanceMonitorCb monitor_cb, | ||
774 | void * monitor_cb_cls); | ||
775 | |||
776 | |||
777 | /** | ||
778 | * Stop monitoring performance information | ||
779 | * | ||
780 | * @param phm performance monitoring handle to use | ||
781 | */ | ||
782 | void | ||
783 | GNUNET_ATS_performance_monitor_stop (struct GNUNET_ATS_PerformanceMonitorHandle * phm); | ||
784 | |||
785 | |||
786 | |||
787 | /** | ||
788 | * Get information about addresses known to the ATS subsystem. | 742 | * Get information about addresses known to the ATS subsystem. |
789 | * | 743 | * |
790 | * @param handle the performance handle to use | 744 | * @param handle the performance handle to use |