aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_cadet_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-27 04:29:52 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-27 04:29:52 +0100
commit1c9f269ea5cadb20bb5f7fc209274ba5d6af4749 (patch)
treece241e18c8db4876be1fd7ed4d7b7460994fd815 /src/include/gnunet_cadet_service.h
parentf0b35049f6d9e743d2bc5fcf11664633d130d6fc (diff)
downloadgnunet-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.h59
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 *
649GNUNET_CADET_list_tunnels_cancel (struct GNUNET_CADET_ListTunnels *lt); 649GNUNET_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 */
666typedef 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 */
680struct 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 */
694struct GNUNET_CADET_GetTunnel *
695GNUNET_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 */
707void *
708GNUNET_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