From: Christian Grothoff Date: Fri, 30 Aug 2013 13:45:30 +0000 (+0000) Subject: -move messages out of API that don't belong into API X-Git-Tag: initial-import-from-subversion-38251~7593 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2a70d386b29bd9210a661f41b0709cb523e2f96;p=oweals%2Fgnunet.git -move messages out of API that don't belong into API --- diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index edd4984a2..e1dec7b85 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h @@ -154,110 +154,6 @@ struct GNUNET_MULTICAST_MessageHeader GNUNET_NETWORK_STRUCT_END -GNUNET_NETWORK_STRUCT_BEGIN - -/** - * Header of a request from a member to the origin. - * - * FIXME: this struct is going to be internal. - */ -struct GNUNET_MULTICAST_RequestHeader -{ - /** - * Header for all requests from a member to the origin. - */ - struct GNUNET_MessageHeader header; - - /** - * Public key of the sending member. - */ - struct GNUNET_CRYPTO_EccPublicKey member_key; - - /** - * ECC signature of the request fragment. - * - * Signature must match the public key of the multicast group. - */ - struct GNUNET_CRYPTO_EccSignature signature; - - /** - * Purpose for the signature and size of the signed data. - */ - struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - - /** - * Number of the request fragment, monotonically increasing. - */ - uint64_t fragment_id GNUNET_PACKED; - - /** - * Byte offset of this @e fragment of the @e request. - */ - uint64_t fragment_offset GNUNET_PACKED; - - /** - * Number of the request this fragment belongs to. - * - * Set in GNUNET_MULTICAST_origin_to_all(). - */ - uint64_t request_id GNUNET_PACKED; - - /** - * Flags for this request. - */ - enum GNUNET_MULTICAST_MessageFlags flags GNUNET_PACKED; - - /* Followed by request body. */ -}; - -GNUNET_NETWORK_STRUCT_END - - -GNUNET_NETWORK_STRUCT_BEGIN - -/** - * Header of a join request sent to the origin or another member. - * - * FIXME: this struct is going to be internal. - */ -struct GNUNET_MULTICAST_JoinRequest { - /** - * Header for the join request. - */ - struct GNUNET_MessageHeader header; - - /** - * ECC signature of the rest of the fields of the join request. - * - * Signature must match the public key of the joining member. - */ - struct GNUNET_CRYPTO_EccSignature signature; - - /** - * Purpose for the signature and size of the signed data. - */ - struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - - /** - * Public key of the target group. - */ - struct GNUNET_CRYPTO_EccPublicKey group_key; - - /** - * Public key of the joining member. - */ - struct GNUNET_CRYPTO_EccPublicKey member_key; - - /** - * Peer identity of the joining member. - */ - struct GNUNET_PeerIdentity member_peer; - - /* Followed by request body. */ -}; - -GNUNET_NETWORK_STRUCT_END - /** * Handle that identifies a join request. @@ -523,6 +419,7 @@ GNUNET_MULTICAST_replay (struct GNUNET_MULTICAST_ReplayHandle *rh, void GNUNET_MULTICAST_replay_end (struct GNUNET_MULTICAST_ReplayHandle *rh); + /** * Function called to provide data for a transmission for a replay. * @@ -533,6 +430,7 @@ typedef int size_t *data_size, void *data); + /** * Replay a message for the multicast group. *