diff options
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r-- | src/include/gnunet_transport_service.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h index 72cdbe0a7..2fc40a1f5 100644 --- a/src/include/gnunet_transport_service.h +++ b/src/include/gnunet_transport_service.h | |||
@@ -60,7 +60,7 @@ extern "C" { | |||
60 | /** | 60 | /** |
61 | * Handle for a #GNUNET_TRANSPORT_offer_hello operation | 61 | * Handle for a #GNUNET_TRANSPORT_offer_hello operation |
62 | */ | 62 | */ |
63 | struct GNUNET_TRANSPORT_OfferHelloHandle; | 63 | struct GNUNET_TRANSPORT_OfferHelloHandle __attribute__((deprecated)); |
64 | 64 | ||
65 | 65 | ||
66 | /** | 66 | /** |
@@ -82,7 +82,7 @@ struct GNUNET_TRANSPORT_OfferHelloHandle * | |||
82 | GNUNET_TRANSPORT_offer_hello (const struct GNUNET_CONFIGURATION_Handle *cfg, | 82 | GNUNET_TRANSPORT_offer_hello (const struct GNUNET_CONFIGURATION_Handle *cfg, |
83 | const struct GNUNET_MessageHeader *hello, | 83 | const struct GNUNET_MessageHeader *hello, |
84 | GNUNET_SCHEDULER_TaskCallback cont, | 84 | GNUNET_SCHEDULER_TaskCallback cont, |
85 | void *cont_cls); | 85 | void *cont_cls) __attribute__((deprecated)); |
86 | 86 | ||
87 | 87 | ||
88 | /** | 88 | /** |
@@ -92,7 +92,7 @@ GNUNET_TRANSPORT_offer_hello (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
92 | */ | 92 | */ |
93 | void | 93 | void |
94 | GNUNET_TRANSPORT_offer_hello_cancel ( | 94 | GNUNET_TRANSPORT_offer_hello_cancel ( |
95 | struct GNUNET_TRANSPORT_OfferHelloHandle *ohh); | 95 | struct GNUNET_TRANSPORT_OfferHelloHandle *ohh) __attribute__((deprecated)); |
96 | 96 | ||
97 | 97 | ||
98 | /* *********************** Address to String ******************* */ | 98 | /* *********************** Address to String ******************* */ |
@@ -285,7 +285,7 @@ enum GNUNET_TRANSPORT_PeerState | |||
285 | * freed (the exception being the cleanup code in #free_neighbour()). | 285 | * freed (the exception being the cleanup code in #free_neighbour()). |
286 | */ | 286 | */ |
287 | GNUNET_TRANSPORT_PS_DISCONNECT_FINISHED | 287 | GNUNET_TRANSPORT_PS_DISCONNECT_FINISHED |
288 | }; | 288 | } __attribute__((deprecated)); |
289 | 289 | ||
290 | 290 | ||
291 | /** | 291 | /** |
@@ -294,7 +294,7 @@ enum GNUNET_TRANSPORT_PeerState | |||
294 | * @param state the state | 294 | * @param state the state |
295 | */ | 295 | */ |
296 | const char * | 296 | const char * |
297 | GNUNET_TRANSPORT_ps2s (enum GNUNET_TRANSPORT_PeerState state); | 297 | GNUNET_TRANSPORT_ps2s (enum GNUNET_TRANSPORT_PeerState state) __attribute__((deprecated)); |
298 | 298 | ||
299 | 299 | ||
300 | /** | 300 | /** |
@@ -304,13 +304,13 @@ GNUNET_TRANSPORT_ps2s (enum GNUNET_TRANSPORT_PeerState state); | |||
304 | * @return #GNUNET_YES or #GNUNET_NO | 304 | * @return #GNUNET_YES or #GNUNET_NO |
305 | */ | 305 | */ |
306 | int | 306 | int |
307 | GNUNET_TRANSPORT_is_connected (enum GNUNET_TRANSPORT_PeerState state); | 307 | GNUNET_TRANSPORT_is_connected (enum GNUNET_TRANSPORT_PeerState state) __attribute__((deprecated)); |
308 | 308 | ||
309 | 309 | ||
310 | /** | 310 | /** |
311 | * Handle for a #GNUNET_TRANSPORT_monitor_peers operation. | 311 | * Handle for a #GNUNET_TRANSPORT_monitor_peers operation. |
312 | */ | 312 | */ |
313 | struct GNUNET_TRANSPORT_PeerMonitoringContext; | 313 | struct GNUNET_TRANSPORT_PeerMonitoringContext __attribute__((deprecated)); |
314 | 314 | ||
315 | 315 | ||
316 | /** | 316 | /** |
@@ -337,7 +337,7 @@ typedef void | |||
337 | const struct GNUNET_PeerIdentity *peer, | 337 | const struct GNUNET_PeerIdentity *peer, |
338 | const struct GNUNET_HELLO_Address *address, | 338 | const struct GNUNET_HELLO_Address *address, |
339 | enum GNUNET_TRANSPORT_PeerState state, | 339 | enum GNUNET_TRANSPORT_PeerState state, |
340 | struct GNUNET_TIME_Absolute state_timeout); | 340 | struct GNUNET_TIME_Absolute state_timeout) __attribute__((deprecated)); |
341 | 341 | ||
342 | 342 | ||
343 | /** | 343 | /** |
@@ -373,7 +373,7 @@ GNUNET_TRANSPORT_monitor_peers ( | |||
373 | const struct GNUNET_PeerIdentity *peer, | 373 | const struct GNUNET_PeerIdentity *peer, |
374 | int one_shot, | 374 | int one_shot, |
375 | GNUNET_TRANSPORT_PeerIterateCallback peer_callback, | 375 | GNUNET_TRANSPORT_PeerIterateCallback peer_callback, |
376 | void *peer_callback_cls); | 376 | void *peer_callback_cls) __attribute__((deprecated)) __attribute__((deprecated)); |
377 | 377 | ||
378 | 378 | ||
379 | /** | 379 | /** |
@@ -383,7 +383,7 @@ GNUNET_TRANSPORT_monitor_peers ( | |||
383 | */ | 383 | */ |
384 | void | 384 | void |
385 | GNUNET_TRANSPORT_monitor_peers_cancel ( | 385 | GNUNET_TRANSPORT_monitor_peers_cancel ( |
386 | struct GNUNET_TRANSPORT_PeerMonitoringContext *pic); | 386 | struct GNUNET_TRANSPORT_PeerMonitoringContext *pic) __attribute__((deprecated)) __attribute__((deprecated)); |
387 | 387 | ||
388 | 388 | ||
389 | /* *********************** Blacklisting ************************ */ | 389 | /* *********************** Blacklisting ************************ */ |
@@ -391,7 +391,7 @@ GNUNET_TRANSPORT_monitor_peers_cancel ( | |||
391 | /** | 391 | /** |
392 | * Handle for blacklisting peers. | 392 | * Handle for blacklisting peers. |
393 | */ | 393 | */ |
394 | struct GNUNET_TRANSPORT_Blacklist; | 394 | struct GNUNET_TRANSPORT_Blacklist __attribute__((deprecated)); |
395 | 395 | ||
396 | 396 | ||
397 | /** | 397 | /** |
@@ -404,7 +404,7 @@ struct GNUNET_TRANSPORT_Blacklist; | |||
404 | typedef int | 404 | typedef int |
405 | (*GNUNET_TRANSPORT_BlacklistCallback) ( | 405 | (*GNUNET_TRANSPORT_BlacklistCallback) ( |
406 | void *cls, | 406 | void *cls, |
407 | const struct GNUNET_PeerIdentity *pid); | 407 | const struct GNUNET_PeerIdentity *pid) __attribute__((deprecated)); |
408 | 408 | ||
409 | 409 | ||
410 | /** | 410 | /** |
@@ -424,7 +424,7 @@ typedef int | |||
424 | struct GNUNET_TRANSPORT_Blacklist * | 424 | struct GNUNET_TRANSPORT_Blacklist * |
425 | GNUNET_TRANSPORT_blacklist (const struct GNUNET_CONFIGURATION_Handle *cfg, | 425 | GNUNET_TRANSPORT_blacklist (const struct GNUNET_CONFIGURATION_Handle *cfg, |
426 | GNUNET_TRANSPORT_BlacklistCallback cb, | 426 | GNUNET_TRANSPORT_BlacklistCallback cb, |
427 | void *cb_cls); | 427 | void *cb_cls) __attribute__((deprecated)); |
428 | 428 | ||
429 | 429 | ||
430 | /** | 430 | /** |
@@ -434,19 +434,19 @@ GNUNET_TRANSPORT_blacklist (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
434 | * @param br handle of the request that is to be cancelled | 434 | * @param br handle of the request that is to be cancelled |
435 | */ | 435 | */ |
436 | void | 436 | void |
437 | GNUNET_TRANSPORT_blacklist_cancel (struct GNUNET_TRANSPORT_Blacklist *br); | 437 | GNUNET_TRANSPORT_blacklist_cancel (struct GNUNET_TRANSPORT_Blacklist *br) __attribute__((deprecated)); |
438 | 438 | ||
439 | 439 | ||
440 | /** | 440 | /** |
441 | * Handle for a plugin session state monitor. | 441 | * Handle for a plugin session state monitor. |
442 | */ | 442 | */ |
443 | struct GNUNET_TRANSPORT_PluginMonitor; | 443 | struct GNUNET_TRANSPORT_PluginMonitor __attribute__((deprecated)); |
444 | 444 | ||
445 | /** | 445 | /** |
446 | * Abstract representation of a plugin's session. | 446 | * Abstract representation of a plugin's session. |
447 | * Corresponds to the `struct GNUNET_ATS_Session` within the TRANSPORT service. | 447 | * Corresponds to the `struct GNUNET_ATS_Session` within the TRANSPORT service. |
448 | */ | 448 | */ |
449 | struct GNUNET_TRANSPORT_PluginSession; | 449 | struct GNUNET_TRANSPORT_PluginSession __attribute__((deprecated)); |
450 | 450 | ||
451 | 451 | ||
452 | /** | 452 | /** |
@@ -480,7 +480,7 @@ enum GNUNET_TRANSPORT_SessionState | |||
480 | * Last call for each session object. | 480 | * Last call for each session object. |
481 | */ | 481 | */ |
482 | GNUNET_TRANSPORT_SS_DONE | 482 | GNUNET_TRANSPORT_SS_DONE |
483 | }; | 483 | } __attribute__((deprecated)); |
484 | 484 | ||
485 | 485 | ||
486 | /** | 486 | /** |
@@ -529,7 +529,7 @@ struct GNUNET_TRANSPORT_SessionInfo | |||
529 | * Address used by the session. Can be NULL if none is available. | 529 | * Address used by the session. Can be NULL if none is available. |
530 | */ | 530 | */ |
531 | const struct GNUNET_HELLO_Address *address; | 531 | const struct GNUNET_HELLO_Address *address; |
532 | }; | 532 | } __attribute__((deprecated)); |
533 | 533 | ||
534 | 534 | ||
535 | /** | 535 | /** |
@@ -554,7 +554,7 @@ typedef void | |||
554 | void *cls, | 554 | void *cls, |
555 | struct GNUNET_TRANSPORT_PluginSession *session, | 555 | struct GNUNET_TRANSPORT_PluginSession *session, |
556 | void **session_ctx, | 556 | void **session_ctx, |
557 | const struct GNUNET_TRANSPORT_SessionInfo *info); | 557 | const struct GNUNET_TRANSPORT_SessionInfo *info) __attribute__((deprecated)); |
558 | 558 | ||
559 | 559 | ||
560 | /** | 560 | /** |
@@ -569,7 +569,7 @@ typedef void | |||
569 | struct GNUNET_TRANSPORT_PluginMonitor * | 569 | struct GNUNET_TRANSPORT_PluginMonitor * |
570 | GNUNET_TRANSPORT_monitor_plugins (const struct GNUNET_CONFIGURATION_Handle *cfg, | 570 | GNUNET_TRANSPORT_monitor_plugins (const struct GNUNET_CONFIGURATION_Handle *cfg, |
571 | GNUNET_TRANSPORT_SessionMonitorCallback cb, | 571 | GNUNET_TRANSPORT_SessionMonitorCallback cb, |
572 | void *cb_cls); | 572 | void *cb_cls) __attribute__((deprecated)); |
573 | 573 | ||
574 | 574 | ||
575 | /** | 575 | /** |
@@ -581,7 +581,7 @@ GNUNET_TRANSPORT_monitor_plugins (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
581 | */ | 581 | */ |
582 | void | 582 | void |
583 | GNUNET_TRANSPORT_monitor_plugins_cancel ( | 583 | GNUNET_TRANSPORT_monitor_plugins_cancel ( |
584 | struct GNUNET_TRANSPORT_PluginMonitor *pm); | 584 | struct GNUNET_TRANSPORT_PluginMonitor *pm) __attribute__((deprecated)); |
585 | 585 | ||
586 | 586 | ||
587 | /** | 587 | /** |
@@ -647,7 +647,7 @@ typedef void | |||
647 | (*GNUNET_TRANSPORT_NotifyExcessBandwidth) ( | 647 | (*GNUNET_TRANSPORT_NotifyExcessBandwidth) ( |
648 | void *cls, | 648 | void *cls, |
649 | const struct GNUNET_PeerIdentity *neighbour, | 649 | const struct GNUNET_PeerIdentity *neighbour, |
650 | void *handlers_cls); | 650 | void *handlers_cls) __attribute__((deprecated)); |
651 | 651 | ||
652 | 652 | ||
653 | /** | 653 | /** |
@@ -674,7 +674,7 @@ GNUNET_TRANSPORT_core_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
674 | void *cls, | 674 | void *cls, |
675 | GNUNET_TRANSPORT_NotifyConnect nc, | 675 | GNUNET_TRANSPORT_NotifyConnect nc, |
676 | GNUNET_TRANSPORT_NotifyDisconnect nd, | 676 | GNUNET_TRANSPORT_NotifyDisconnect nd, |
677 | GNUNET_TRANSPORT_NotifyExcessBandwidth neb); | 677 | GNUNET_TRANSPORT_NotifyExcessBandwidth neb) __attribute__((deprecated)); |
678 | 678 | ||
679 | 679 | ||
680 | /** | 680 | /** |