- Fixed #2105
[oweals/gnunet.git] / src / mesh / mesh.h
index 0c54d72c949715c04c315735450c42a44f3e1216..d8fc404e19462433a6a6180b523afaddb9810f5b 100644 (file)
@@ -36,7 +36,7 @@
 #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      *************************/
@@ -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
      */