diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-01-27 04:29:52 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-01-27 04:29:52 +0100 |
commit | 1c9f269ea5cadb20bb5f7fc209274ba5d6af4749 (patch) | |
tree | ce241e18c8db4876be1fd7ed4d7b7460994fd815 /src/include/gnunet_cadet_service.h | |
parent | f0b35049f6d9e743d2bc5fcf11664633d130d6fc (diff) | |
download | gnunet-1c9f269ea5cadb20bb5f7fc209274ba5d6af4749.tar.gz gnunet-1c9f269ea5cadb20bb5f7fc209274ba5d6af4749.zip |
in principle finished with #5385, could use some testing...
Diffstat (limited to 'src/include/gnunet_cadet_service.h')
-rw-r--r-- | src/include/gnunet_cadet_service.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h index 82350ed32..ac3d11216 100644 --- a/src/include/gnunet_cadet_service.h +++ b/src/include/gnunet_cadet_service.h | |||
@@ -649,65 +649,6 @@ void * | |||
649 | GNUNET_CADET_list_tunnels_cancel (struct GNUNET_CADET_ListTunnels *lt); | 649 | GNUNET_CADET_list_tunnels_cancel (struct GNUNET_CADET_ListTunnels *lt); |
650 | 650 | ||
651 | 651 | ||
652 | |||
653 | /** | ||
654 | * Method called to retrieve information about a specific tunnel the cadet peer | ||
655 | * has established, o`r is trying to establish. | ||
656 | * | ||
657 | * @param cls Closure. | ||
658 | * @param peer Peer towards whom the tunnel is directed. | ||
659 | * @param n_channels Number of channels. | ||
660 | * @param n_connections Number of connections. | ||
661 | * @param channels Channels. | ||
662 | * @param connections Connections. | ||
663 | * @param estate Encryption state. | ||
664 | * @param cstate Connectivity state. | ||
665 | */ | ||
666 | typedef void | ||
667 | (*GNUNET_CADET_TunnelCB) (void *cls, | ||
668 | const struct GNUNET_PeerIdentity *peer, | ||
669 | unsigned int n_channels, | ||
670 | unsigned int n_connections, | ||
671 | const struct GNUNET_CADET_ChannelTunnelNumber *channels, | ||
672 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *connections, | ||
673 | unsigned int estate, | ||
674 | unsigned int cstate); | ||
675 | |||
676 | |||
677 | /** | ||
678 | * Operation handle. | ||
679 | */ | ||
680 | struct GNUNET_CADET_GetTunnel; | ||
681 | |||
682 | |||
683 | /** | ||
684 | * Request information about a tunnel of the running cadet peer. | ||
685 | * The callback will be called for the tunnel once. | ||
686 | * Only one info request (of any kind) can be active at once. | ||
687 | * | ||
688 | * @param cfg configuration to use | ||
689 | * @param id Peer whose tunnel to examine. | ||
690 | * @param callback Function to call with the requested data. | ||
691 | * @param callback_cls Closure for @c callback. | ||
692 | * @return NULL on error | ||
693 | */ | ||
694 | struct GNUNET_CADET_GetTunnel * | ||
695 | GNUNET_CADET_get_tunnel (const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
696 | const struct GNUNET_PeerIdentity *id, | ||
697 | GNUNET_CADET_TunnelCB callback, | ||
698 | void *callback_cls); | ||
699 | |||
700 | |||
701 | /** | ||
702 | * Cancel a monitor request. The monitor callback will not be called. | ||
703 | * | ||
704 | * @param lt operation handle | ||
705 | * @return Closure given to #GNUNET_CADET_get_tunnel(), if any. | ||
706 | */ | ||
707 | void * | ||
708 | GNUNET_CADET_get_tunnel_cancel (struct GNUNET_CADET_GetTunnel *gt); | ||
709 | |||
710 | |||
711 | #if 0 /* keep Emacsens' auto-indent happy */ | 652 | #if 0 /* keep Emacsens' auto-indent happy */ |
712 | { | 653 | { |
713 | #endif | 654 | #endif |