X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fcadet%2Fcadet.h;h=451d1f354363f18627781e57b95a1879dac995b0;hb=0af32e03677ab1c8a819b376c8fa026d0ffa9144;hp=205955b053ccdfc715442c7f6abc0303a8b2966c;hpb=0eec69c59e625ecc41dcff20bf2395613185d342;p=oweals%2Fgnunet.git diff --git a/src/cadet/cadet.h b/src/cadet/cadet.h index 205955b05..451d1f354 100644 --- a/src/cadet/cadet.h +++ b/src/cadet/cadet.h @@ -68,7 +68,7 @@ extern "C" /** * Minimum value for channel IDs of local clients. */ -#define GNUNET_CADET_LOCAL_CHANNEL_ID_CLI 0x80000000 +#define GNUNET_CADET_LOCAL_CHANNEL_ID_CLI 0x80000000U /** * FIXME. @@ -135,10 +135,10 @@ struct GNUNET_CADET_PortMessage /** * Message for a client to create channels. */ -struct GNUNET_CADET_TunnelCreateMessage +struct GNUNET_CADET_LocalChannelCreateMessage { /** - * Type: #GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE + * Type: #GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE * * Size: sizeof(struct GNUNET_CADET_ChannelOpenMessageMessage) */ @@ -147,7 +147,7 @@ struct GNUNET_CADET_TunnelCreateMessage /** * ID of a channel controlled by this client. */ - struct GNUNET_CADET_ClientChannelNumber channel_id; + struct GNUNET_CADET_ClientChannelNumber ccn; /** * Channel's peer @@ -169,17 +169,17 @@ struct GNUNET_CADET_TunnelCreateMessage /** * Message for or to a client to destroy tunnel. */ -struct GNUNET_CADET_TunnelDestroyMessage +struct GNUNET_CADET_LocalChannelDestroyMessage { /** - * Type: #GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY + * Type: #GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY */ struct GNUNET_MessageHeader header; /** * ID of a channel controlled by this client. */ - struct GNUNET_CADET_ClientChannelNumber channel_id; + struct GNUNET_CADET_ClientChannelNumber ccn; }; @@ -196,7 +196,7 @@ struct GNUNET_CADET_LocalData /** * ID of the channel */ - struct GNUNET_CADET_ClientChannelNumber channel_id; + struct GNUNET_CADET_ClientChannelNumber ccn; /** * Payload follows @@ -218,13 +218,15 @@ struct GNUNET_CADET_LocalAck /** * ID of the channel allowed to send more data. */ - struct GNUNET_CADET_ClientChannelNumber channel_id; + struct GNUNET_CADET_ClientChannelNumber ccn; }; /** * Message to inform the client about channels in the service. + * + * TODO: split into two messages! */ struct GNUNET_CADET_LocalInfo { @@ -237,12 +239,7 @@ struct GNUNET_CADET_LocalInfo /** * ID of the channel allowed to send more data. */ - struct GNUNET_CADET_ClientChannelNumber channel_id; - - /** - * ID of the owner of the channel (can be local peer). - */ -// struct GNUNET_PeerIdentity owner; + struct GNUNET_CADET_ClientChannelNumber ccn; /** * ID of the destination of the channel (can be local peer). @@ -253,6 +250,8 @@ struct GNUNET_CADET_LocalInfo /** * Message to inform the client about one of the peers in the service. + * + * TODO: split into two messages! */ struct GNUNET_CADET_LocalInfoPeer { @@ -284,6 +283,8 @@ struct GNUNET_CADET_LocalInfoPeer /** * Message to inform the client about one of the tunnels in the service. + * + * TODO: split into two messages! */ struct GNUNET_CADET_LocalInfoTunnel {