diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-05 12:52:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-05 12:52:20 +0000 |
commit | c55971f17dc99f9833af48e078c8f681be771cb7 (patch) | |
tree | 544fd671b67903506419c98d463d086a696e25a1 /src/include | |
parent | 15dd8e6cc1199d611d804853e134882bf13b234a (diff) | |
download | gnunet-c55971f17dc99f9833af48e078c8f681be771cb7.tar.gz gnunet-c55971f17dc99f9833af48e078c8f681be771cb7.zip |
big ATS refactoring, no serious semantic changes should stem from this
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_ats_plugin.h | 38 | ||||
-rw-r--r-- | src/include/gnunet_ats_service.h | 16 |
2 files changed, 10 insertions, 44 deletions
diff --git a/src/include/gnunet_ats_plugin.h b/src/include/gnunet_ats_plugin.h index 02875a070..e2272fdc8 100644 --- a/src/include/gnunet_ats_plugin.h +++ b/src/include/gnunet_ats_plugin.h | |||
@@ -128,34 +128,6 @@ typedef void | |||
128 | struct ATS_Address *address, uint32_t type, uint32_t abs_value, | 128 | struct ATS_Address *address, uint32_t type, uint32_t abs_value, |
129 | double rel_value); | 129 | double rel_value); |
130 | 130 | ||
131 | /** | ||
132 | * Transport session for this address has changed | ||
133 | * | ||
134 | * NOTE: values in addresses are already updated | ||
135 | * | ||
136 | * @param solver solver handle | ||
137 | * @param address the address | ||
138 | * @param cur_session the current session | ||
139 | * @param new_session the new session | ||
140 | */ | ||
141 | typedef void | ||
142 | (*GAS_solver_address_session_changed) (void *solver, | ||
143 | struct ATS_Address *address, uint32_t cur_session, uint32_t new_session); | ||
144 | |||
145 | |||
146 | /** | ||
147 | * Network scope for this address has changed | ||
148 | * | ||
149 | * NOTE: values in addresses are already updated | ||
150 | * | ||
151 | * @param solver solver handle | ||
152 | * @param address the address | ||
153 | * @param current_network the current network | ||
154 | * @param new_network the new network | ||
155 | */ | ||
156 | typedef void | ||
157 | (*GAS_solver_address_network_changed) (void *solver, | ||
158 | struct ATS_Address *address, uint32_t current_network, uint32_t new_network); | ||
159 | 131 | ||
160 | /** | 132 | /** |
161 | * Get the prefered address for a peer from solver | 133 | * Get the prefered address for a peer from solver |
@@ -201,16 +173,6 @@ struct GNUNET_ATS_SolverFunctions | |||
201 | GAS_solver_address_property_changed s_address_update_property; | 173 | GAS_solver_address_property_changed s_address_update_property; |
202 | 174 | ||
203 | /** | 175 | /** |
204 | * Update the session of an address in the solver | ||
205 | */ | ||
206 | GAS_solver_address_session_changed s_address_update_session; | ||
207 | |||
208 | /** | ||
209 | * Notify solver that the network an address is located in has changed | ||
210 | */ | ||
211 | GAS_solver_address_network_changed s_address_update_network; | ||
212 | |||
213 | /** | ||
214 | * Tell solver to notify ATS if the address to use changes for a specific | 176 | * Tell solver to notify ATS if the address to use changes for a specific |
215 | * peer using the bandwidth changed callback | 177 | * peer using the bandwidth changed callback |
216 | * | 178 | * |
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index 380a2a7af..8c3c5361e 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -704,14 +704,16 @@ struct GNUNET_ATS_ReservationContext; | |||
704 | * @param amount reserve N bytes for receiving, negative | 704 | * @param amount reserve N bytes for receiving, negative |
705 | * amounts can be used to undo a (recent) reservation; | 705 | * amounts can be used to undo a (recent) reservation; |
706 | * @param rcb function to call with the resulting reservation information | 706 | * @param rcb function to call with the resulting reservation information |
707 | * @param rcb_cls closure for info | 707 | * @param rcb_cls closure for @a rcb |
708 | * @return NULL on error | 708 | * @return NULL on error |
709 | * @deprecated will be replaced soon | 709 | * @deprecated will be replaced soon |
710 | */ | 710 | */ |
711 | struct GNUNET_ATS_ReservationContext * | 711 | struct GNUNET_ATS_ReservationContext * |
712 | GNUNET_ATS_reserve_bandwidth (struct GNUNET_ATS_PerformanceHandle *ph, | 712 | GNUNET_ATS_reserve_bandwidth (struct GNUNET_ATS_PerformanceHandle *ph, |
713 | const struct GNUNET_PeerIdentity *peer, int32_t amount, | 713 | const struct GNUNET_PeerIdentity *peer, |
714 | GNUNET_ATS_ReservationCallback rcb, void *rcb_cls); | 714 | int32_t amount, |
715 | GNUNET_ATS_ReservationCallback rcb, | ||
716 | void *rcb_cls); | ||
715 | 717 | ||
716 | 718 | ||
717 | /** | 719 | /** |
@@ -786,7 +788,8 @@ GNUNET_ATS_print_preference_type (uint32_t type); | |||
786 | */ | 788 | */ |
787 | void | 789 | void |
788 | GNUNET_ATS_performance_change_preference (struct GNUNET_ATS_PerformanceHandle *ph, | 790 | GNUNET_ATS_performance_change_preference (struct GNUNET_ATS_PerformanceHandle *ph, |
789 | const struct GNUNET_PeerIdentity *peer, ...); | 791 | const struct GNUNET_PeerIdentity *peer, |
792 | ...); | ||
790 | 793 | ||
791 | 794 | ||
792 | /** | 795 | /** |
@@ -808,8 +811,9 @@ GNUNET_ATS_performance_change_preference (struct GNUNET_ATS_PerformanceHandle *p | |||
808 | */ | 811 | */ |
809 | void | 812 | void |
810 | GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph, | 813 | GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph, |
811 | const struct GNUNET_PeerIdentity *peer, | 814 | const struct GNUNET_PeerIdentity *peer, |
812 | const struct GNUNET_TIME_Relative scope, ...); | 815 | const struct GNUNET_TIME_Relative scope, |
816 | ...); | ||
813 | 817 | ||
814 | #endif | 818 | #endif |
815 | /* end of file gnunet-service-transport_ats.h */ | 819 | /* end of file gnunet-service-transport_ats.h */ |