diff options
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r-- | src/include/gnunet_ats_service.h | 65 |
1 files changed, 43 insertions, 22 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index ce149875a..1bf5d40b0 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -199,7 +199,9 @@ struct GNUNET_ATS_ConnectivitySuggestHandle; | |||
199 | * @return ats connectivity handle, NULL on error | 199 | * @return ats connectivity handle, NULL on error |
200 | */ | 200 | */ |
201 | struct GNUNET_ATS_ConnectivityHandle * | 201 | struct GNUNET_ATS_ConnectivityHandle * |
202 | GNUNET_ATS_connectivity_init (const struct GNUNET_CONFIGURATION_Handle *cfg); | 202 | GNUNET_ATS_connectivity_init (const struct |
203 | GNUNET_CONFIGURATION_Handle *cfg) __attribute__( | ||
204 | (deprecated)); | ||
203 | 205 | ||
204 | 206 | ||
205 | /** | 207 | /** |
@@ -208,7 +210,9 @@ GNUNET_ATS_connectivity_init (const struct GNUNET_CONFIGURATION_Handle *cfg); | |||
208 | * @param ch handle to destroy | 210 | * @param ch handle to destroy |
209 | */ | 211 | */ |
210 | void | 212 | void |
211 | GNUNET_ATS_connectivity_done (struct GNUNET_ATS_ConnectivityHandle *ch); | 213 | GNUNET_ATS_connectivity_done (struct |
214 | GNUNET_ATS_ConnectivityHandle *ch) __attribute__( | ||
215 | (deprecated)); | ||
212 | 216 | ||
213 | 217 | ||
214 | /** | 218 | /** |
@@ -223,7 +227,7 @@ GNUNET_ATS_connectivity_done (struct GNUNET_ATS_ConnectivityHandle *ch); | |||
223 | struct GNUNET_ATS_ConnectivitySuggestHandle * | 227 | struct GNUNET_ATS_ConnectivitySuggestHandle * |
224 | GNUNET_ATS_connectivity_suggest (struct GNUNET_ATS_ConnectivityHandle *ch, | 228 | GNUNET_ATS_connectivity_suggest (struct GNUNET_ATS_ConnectivityHandle *ch, |
225 | const struct GNUNET_PeerIdentity *peer, | 229 | const struct GNUNET_PeerIdentity *peer, |
226 | uint32_t strength); | 230 | uint32_t strength) __attribute__((deprecated)); |
227 | 231 | ||
228 | 232 | ||
229 | /** | 233 | /** |
@@ -233,7 +237,8 @@ GNUNET_ATS_connectivity_suggest (struct GNUNET_ATS_ConnectivityHandle *ch, | |||
233 | */ | 237 | */ |
234 | void | 238 | void |
235 | GNUNET_ATS_connectivity_suggest_cancel (struct | 239 | GNUNET_ATS_connectivity_suggest_cancel (struct |
236 | GNUNET_ATS_ConnectivitySuggestHandle *sh); | 240 | GNUNET_ATS_ConnectivitySuggestHandle *sh) |
241 | __attribute__((deprecated)); | ||
237 | 242 | ||
238 | 243 | ||
239 | /* ******************************** Scheduling API ***************************** */ | 244 | /* ******************************** Scheduling API ***************************** */ |
@@ -288,7 +293,7 @@ typedef void | |||
288 | struct GNUNET_ATS_SchedulingHandle * | 293 | struct GNUNET_ATS_SchedulingHandle * |
289 | GNUNET_ATS_scheduling_init (const struct GNUNET_CONFIGURATION_Handle *cfg, | 294 | GNUNET_ATS_scheduling_init (const struct GNUNET_CONFIGURATION_Handle *cfg, |
290 | GNUNET_ATS_AddressSuggestionCallback suggest_cb, | 295 | GNUNET_ATS_AddressSuggestionCallback suggest_cb, |
291 | void *suggest_cb_cls); | 296 | void *suggest_cb_cls) __attribute__((deprecated)); |
292 | 297 | ||
293 | 298 | ||
294 | /** | 299 | /** |
@@ -297,7 +302,9 @@ GNUNET_ATS_scheduling_init (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
297 | * @param sh handle to release | 302 | * @param sh handle to release |
298 | */ | 303 | */ |
299 | void | 304 | void |
300 | GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh); | 305 | GNUNET_ATS_scheduling_done (struct |
306 | GNUNET_ATS_SchedulingHandle *sh) __attribute__( | ||
307 | (deprecated)); | ||
301 | 308 | ||
302 | 309 | ||
303 | /** | 310 | /** |
@@ -322,7 +329,8 @@ struct GNUNET_ATS_AddressRecord * | |||
322 | GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, | 329 | GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, |
323 | const struct GNUNET_HELLO_Address *address, | 330 | const struct GNUNET_HELLO_Address *address, |
324 | struct GNUNET_ATS_Session *session, | 331 | struct GNUNET_ATS_Session *session, |
325 | const struct GNUNET_ATS_Properties *prop); | 332 | const struct GNUNET_ATS_Properties *prop) __attribute__( |
333 | (deprecated)); | ||
326 | 334 | ||
327 | 335 | ||
328 | /** | 336 | /** |
@@ -333,7 +341,8 @@ GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, | |||
333 | */ | 341 | */ |
334 | void | 342 | void |
335 | GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar, | 343 | GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar, |
336 | struct GNUNET_ATS_Session *session); | 344 | struct GNUNET_ATS_Session *session) |
345 | __attribute__((deprecated)); | ||
337 | 346 | ||
338 | 347 | ||
339 | /** | 348 | /** |
@@ -350,7 +359,8 @@ GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar, | |||
350 | */ | 359 | */ |
351 | int | 360 | int |
352 | GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar, | 361 | GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar, |
353 | struct GNUNET_ATS_Session *session); | 362 | struct GNUNET_ATS_Session *session) |
363 | __attribute__((deprecated)); | ||
354 | 364 | ||
355 | 365 | ||
356 | /** | 366 | /** |
@@ -368,7 +378,9 @@ GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar, | |||
368 | */ | 378 | */ |
369 | void | 379 | void |
370 | GNUNET_ATS_address_update (struct GNUNET_ATS_AddressRecord *ar, | 380 | GNUNET_ATS_address_update (struct GNUNET_ATS_AddressRecord *ar, |
371 | const struct GNUNET_ATS_Properties *prop); | 381 | const struct |
382 | GNUNET_ATS_Properties *prop) __attribute__( | ||
383 | (deprecated)); | ||
372 | 384 | ||
373 | 385 | ||
374 | /** | 386 | /** |
@@ -378,7 +390,8 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_AddressRecord *ar, | |||
378 | * expired and ATS may no longer use it | 390 | * expired and ATS may no longer use it |
379 | */ | 391 | */ |
380 | void | 392 | void |
381 | GNUNET_ATS_address_destroy (struct GNUNET_ATS_AddressRecord *ar); | 393 | GNUNET_ATS_address_destroy (struct GNUNET_ATS_AddressRecord *ar) __attribute__( |
394 | (deprecated)); | ||
382 | 395 | ||
383 | 396 | ||
384 | /* ******************************** Performance API ***************************** */ | 397 | /* ******************************** Performance API ***************************** */ |
@@ -434,7 +447,8 @@ struct GNUNET_ATS_AddressListHandle; | |||
434 | struct GNUNET_ATS_PerformanceHandle * | 447 | struct GNUNET_ATS_PerformanceHandle * |
435 | GNUNET_ATS_performance_init (const struct GNUNET_CONFIGURATION_Handle *cfg, | 448 | GNUNET_ATS_performance_init (const struct GNUNET_CONFIGURATION_Handle *cfg, |
436 | GNUNET_ATS_AddressInformationCallback addr_info_cb, | 449 | GNUNET_ATS_AddressInformationCallback addr_info_cb, |
437 | void *addr_info_cb_cls); | 450 | void *addr_info_cb_cls) __attribute__( |
451 | (deprecated)); | ||
438 | 452 | ||
439 | 453 | ||
440 | /** | 454 | /** |
@@ -455,7 +469,8 @@ GNUNET_ATS_performance_list_addresses (struct GNUNET_ATS_PerformanceHandle *ph, | |||
455 | int all, | 469 | int all, |
456 | GNUNET_ATS_AddressInformationCallback | 470 | GNUNET_ATS_AddressInformationCallback |
457 | infocb, | 471 | infocb, |
458 | void *infocb_cls); | 472 | void *infocb_cls) __attribute__( |
473 | (deprecated)); | ||
459 | 474 | ||
460 | 475 | ||
461 | /** | 476 | /** |
@@ -465,7 +480,8 @@ GNUNET_ATS_performance_list_addresses (struct GNUNET_ATS_PerformanceHandle *ph, | |||
465 | */ | 480 | */ |
466 | void | 481 | void |
467 | GNUNET_ATS_performance_list_addresses_cancel (struct | 482 | GNUNET_ATS_performance_list_addresses_cancel (struct |
468 | GNUNET_ATS_AddressListHandle *alh); | 483 | GNUNET_ATS_AddressListHandle *alh) |
484 | __attribute__((deprecated)); | ||
469 | 485 | ||
470 | 486 | ||
471 | /** | 487 | /** |
@@ -474,7 +490,9 @@ GNUNET_ATS_performance_list_addresses_cancel (struct | |||
474 | * @param ph handle | 490 | * @param ph handle |
475 | */ | 491 | */ |
476 | void | 492 | void |
477 | GNUNET_ATS_performance_done (struct GNUNET_ATS_PerformanceHandle *ph); | 493 | GNUNET_ATS_performance_done (struct |
494 | GNUNET_ATS_PerformanceHandle *ph) __attribute__( | ||
495 | (deprecated)); | ||
478 | 496 | ||
479 | 497 | ||
480 | /** | 498 | /** |
@@ -519,7 +537,7 @@ GNUNET_ATS_reserve_bandwidth (struct GNUNET_ATS_PerformanceHandle *ph, | |||
519 | const struct GNUNET_PeerIdentity *peer, | 537 | const struct GNUNET_PeerIdentity *peer, |
520 | int32_t amount, | 538 | int32_t amount, |
521 | GNUNET_ATS_ReservationCallback rcb, | 539 | GNUNET_ATS_ReservationCallback rcb, |
522 | void *rcb_cls); | 540 | void *rcb_cls) __attribute__((deprecated)); |
523 | 541 | ||
524 | 542 | ||
525 | /** | 543 | /** |
@@ -528,7 +546,9 @@ GNUNET_ATS_reserve_bandwidth (struct GNUNET_ATS_PerformanceHandle *ph, | |||
528 | * @param rc context returned by the original #GNUNET_ATS_reserve_bandwidth() call | 546 | * @param rc context returned by the original #GNUNET_ATS_reserve_bandwidth() call |
529 | */ | 547 | */ |
530 | void | 548 | void |
531 | GNUNET_ATS_reserve_bandwidth_cancel (struct GNUNET_ATS_ReservationContext *rc); | 549 | GNUNET_ATS_reserve_bandwidth_cancel (struct |
550 | GNUNET_ATS_ReservationContext *rc) | ||
551 | __attribute__((deprecated)); | ||
532 | 552 | ||
533 | 553 | ||
534 | /** | 554 | /** |
@@ -579,14 +599,15 @@ enum GNUNET_ATS_PreferenceKind | |||
579 | * @return a string or NULL if invalid | 599 | * @return a string or NULL if invalid |
580 | */ | 600 | */ |
581 | const char * | 601 | const char * |
582 | GNUNET_ATS_print_preference_type (enum GNUNET_ATS_PreferenceKind type); | 602 | GNUNET_ATS_print_preference_type (enum GNUNET_ATS_PreferenceKind |
603 | type) __attribute__((deprecated)); | ||
583 | 604 | ||
584 | 605 | ||
585 | /** | 606 | /** |
586 | * Change preferences for the given peer. Preference changes are | 607 | * Change preferences for the given peer. Preference changes are |
587 | * forgotten if peers disconnect. | 608 | * forgotten if peers disconnect. |
588 | * | 609 | * |
589 | * @param ph performance handle | 610 | * @param ph performance handle |
590 | * @param peer identifies the peer | 611 | * @param peer identifies the peer |
591 | * @param ... #GNUNET_ATS_PREFERENCE_END-terminated specification of the | 612 | * @param ... #GNUNET_ATS_PREFERENCE_END-terminated specification of the |
592 | * desired changes | 613 | * desired changes |
@@ -596,7 +617,7 @@ GNUNET_ATS_performance_change_preference (struct | |||
596 | GNUNET_ATS_PerformanceHandle *ph, | 617 | GNUNET_ATS_PerformanceHandle *ph, |
597 | const struct | 618 | const struct |
598 | GNUNET_PeerIdentity *peer, | 619 | GNUNET_PeerIdentity *peer, |
599 | ...); | 620 | ...) __attribute__((deprecated)); |
600 | 621 | ||
601 | 622 | ||
602 | /** | 623 | /** |
@@ -620,7 +641,7 @@ void | |||
620 | GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph, | 641 | GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph, |
621 | const struct GNUNET_PeerIdentity *peer, | 642 | const struct GNUNET_PeerIdentity *peer, |
622 | const struct GNUNET_TIME_Relative scope, | 643 | const struct GNUNET_TIME_Relative scope, |
623 | ...); | 644 | ...) __attribute__((deprecated)); |
624 | 645 | ||
625 | #endif | 646 | #endif |
626 | 647 | ||