* Channel options.
* Second line indicates filed in the MeshChannelInfo union carrying the answer.
*/
-enum MeshOption
+enum GNUNET_MESH_ChannelOption
{
/**
* Default options: unreliable, default buffering, not out of order.
* Method called whenever another peer has added us to a channel
* the other peer initiated.
* Only called (once) upon reception of data with a message type which was
- * subscribed to in #GNUNET_MESH_connect. A call to #GNUNET_MESH_channel_destroy
- * causes te channel to be ignored and no further notifications are sent about
- * the same channel.
+ * subscribed to in #GNUNET_MESH_connect.
+ *
+ * A call to #GNUNET_MESH_channel_destroy causes te channel to be ignored. In
+ * this case the handler MUST return NULL.
*
* @param cls closure
* @param channel new handle to the channel
GNUNET_PeerIdentity
* initiator,
uint32_t port,
- enum MeshOption
+ enum GNUNET_MESH_ChannelOption
options);
void *channel_ctx,
const struct GNUNET_PeerIdentity *peer,
uint32_t port,
- enum MeshOption options);
+ enum GNUNET_MESH_ChannelOption options);
/**
*/
const union GNUNET_MESH_ChannelInfo *
GNUNET_MESH_channel_get_info (struct GNUNET_MESH_Channel *channel,
- enum MeshOption option, ...);
+ enum GNUNET_MESH_ChannelOption option, ...);
/**