projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Fixed #2105
[oweals/gnunet.git]
/
src
/
mesh
/
mesh.h
diff --git
a/src/mesh/mesh.h
b/src/mesh/mesh.h
index 0c54d72c949715c04c315735450c42a44f3e1216..d8fc404e19462433a6a6180b523afaddb9810f5b 100644
(file)
--- 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 "gnunet_peer_lib.h"
#include "gnunet_core_service.h"
#include "gnunet_protocols.h"
-#include <gnunet_mesh_service
_new
.h>
+#include <gnunet_mesh_service.h>
/******************************************************************************/
/******************** MESH LOCAL MESSAGES *************************/
/******************************************************************************/
/******************** MESH LOCAL MESSAGES *************************/
@@
-85,6
+85,8
@@
/************************** MESSAGES ******************************/
/******************************************************************************/
/************************** MESSAGES ******************************/
/******************************************************************************/
+GNUNET_NETWORK_STRUCT_BEGIN
+
/**
* Message for a client to register to the service
*/
/**
* Message for a client to register to the service
*/
@@
-209,7
+211,7
@@
struct GNUNET_MESH_ConnectPeerByType
*/
GNUNET_MESH_ApplicationType type GNUNET_PACKED;
};
*/
GNUNET_MESH_ApplicationType type GNUNET_PACKED;
};
-
+GNUNET_NETWORK_STRUCT_END
/******************************************************************************/
/************************ ENUMERATIONS ****************************/
/******************************************************************************/
/************************ ENUMERATIONS ****************************/
@@
-220,6
+222,16
@@
struct GNUNET_MESH_ConnectPeerByType
*/
enum MeshPeerState
{
*/
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
*/
/**
* Peer only retransmits traffic, is not a final destination
*/