aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r--src/include/gnunet_ats_service.h65
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 */
201struct GNUNET_ATS_ConnectivityHandle * 201struct GNUNET_ATS_ConnectivityHandle *
202GNUNET_ATS_connectivity_init (const struct GNUNET_CONFIGURATION_Handle *cfg); 202GNUNET_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 */
210void 212void
211GNUNET_ATS_connectivity_done (struct GNUNET_ATS_ConnectivityHandle *ch); 213GNUNET_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);
223struct GNUNET_ATS_ConnectivitySuggestHandle * 227struct GNUNET_ATS_ConnectivitySuggestHandle *
224GNUNET_ATS_connectivity_suggest (struct GNUNET_ATS_ConnectivityHandle *ch, 228GNUNET_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 */
234void 238void
235GNUNET_ATS_connectivity_suggest_cancel (struct 239GNUNET_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
288struct GNUNET_ATS_SchedulingHandle * 293struct GNUNET_ATS_SchedulingHandle *
289GNUNET_ATS_scheduling_init (const struct GNUNET_CONFIGURATION_Handle *cfg, 294GNUNET_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 */
299void 304void
300GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh); 305GNUNET_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 *
322GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, 329GNUNET_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 */
334void 342void
335GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar, 343GNUNET_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 */
351int 360int
352GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar, 361GNUNET_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 */
369void 379void
370GNUNET_ATS_address_update (struct GNUNET_ATS_AddressRecord *ar, 380GNUNET_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 */
380void 392void
381GNUNET_ATS_address_destroy (struct GNUNET_ATS_AddressRecord *ar); 393GNUNET_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;
434struct GNUNET_ATS_PerformanceHandle * 447struct GNUNET_ATS_PerformanceHandle *
435GNUNET_ATS_performance_init (const struct GNUNET_CONFIGURATION_Handle *cfg, 448GNUNET_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 */
466void 481void
467GNUNET_ATS_performance_list_addresses_cancel (struct 482GNUNET_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 */
476void 492void
477GNUNET_ATS_performance_done (struct GNUNET_ATS_PerformanceHandle *ph); 493GNUNET_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 */
530void 548void
531GNUNET_ATS_reserve_bandwidth_cancel (struct GNUNET_ATS_ReservationContext *rc); 549GNUNET_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 */
581const char * 601const char *
582GNUNET_ATS_print_preference_type (enum GNUNET_ATS_PreferenceKind type); 602GNUNET_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
620GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph, 641GNUNET_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