X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmesh%2Fmesh.h;h=d8fc404e19462433a6a6180b523afaddb9810f5b;hb=1e1865f39492df814911c4448155df6b09ab802d;hp=0c54d72c949715c04c315735450c42a44f3e1216;hpb=7a6ddbe8707368fc67b9b6f687e6f50781393531;p=oweals%2Fgnunet.git diff --git a/src/mesh/mesh.h b/src/mesh/mesh.h index 0c54d72c9..d8fc404e1 100644 --- a/src/mesh/mesh.h +++ b/src/mesh/mesh.h @@ -36,7 +36,7 @@ #include "gnunet_peer_lib.h" #include "gnunet_core_service.h" #include "gnunet_protocols.h" -#include +#include /******************************************************************************/ /******************** MESH LOCAL MESSAGES *************************/ @@ -85,6 +85,8 @@ /************************** MESSAGES ******************************/ /******************************************************************************/ +GNUNET_NETWORK_STRUCT_BEGIN + /** * Message for a client to register to the service */ @@ -209,7 +211,7 @@ struct GNUNET_MESH_ConnectPeerByType */ GNUNET_MESH_ApplicationType type GNUNET_PACKED; }; - +GNUNET_NETWORK_STRUCT_END /******************************************************************************/ /************************ ENUMERATIONS ****************************/ @@ -220,6 +222,16 @@ struct GNUNET_MESH_ConnectPeerByType */ enum MeshPeerState { + /** + * Uninitialized status, should never appear in operation. + */ + MESH_PEER_INVALID, + + /** + * Peer is the root and owner of the tree + */ + MESH_PEER_ROOT, + /** * Peer only retransmits traffic, is not a final destination */