From: t3sserakt Date: Tue, 25 Jun 2019 23:21:41 +0000 (+0200) Subject: fixed chanel_get_info X-Git-Tag: v0.11.6~20^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=67d5962e8540589e7e712c122c313a92dd86b4e7;p=oweals%2Fgnunet.git fixed chanel_get_info --- diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 825768034..0e655ee33 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c @@ -32,17 +32,6 @@ #define LOG(kind, ...) GNUNET_log_from (kind, "cadet-api", __VA_ARGS__) -enum GNUNET_CADET_ChannelInfoOption -{ - /** - * Who is the peer at the other end of the channel. - * Only for use in @c GNUNET_CADET_channel_get_info - * struct GNUNET_PeerIdentity *peer - */ - GNUNET_CADET_OPTION_PEER = 0x0 - -}; - /** * Opaque handle to the service. */ diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h index fd591924a..ba4d60eb8 100644 --- a/src/include/gnunet_cadet_service.h +++ b/src/include/gnunet_cadet_service.h @@ -279,6 +279,16 @@ GNUNET_CADET_receive_done (struct GNUNET_CADET_Channel *channel); const struct GNUNET_HashCode * GC_u2h (uint32_t port); +enum GNUNET_CADET_ChannelInfoOption +{ + /** + * Who is the peer at the other end of the channel. + * Only for use in @c GNUNET_CADET_channel_get_info + * struct GNUNET_PeerIdentity *peer + */ + GNUNET_CADET_OPTION_PEER = 0x0 + +}; /** * Union to retrieve info about a channel. @@ -307,6 +317,7 @@ union GNUNET_CADET_ChannelInfo */ const union GNUNET_CADET_ChannelInfo * GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel, + enum GNUNET_CADET_ChannelInfoOption option, ...);