#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 *************************/
/************************** MESSAGES ******************************/
/******************************************************************************/
+GNUNET_NETWORK_STRUCT_BEGIN
+
/**
* Message for a client to register to the service
*/
*/
GNUNET_MESH_ApplicationType type GNUNET_PACKED;
};
-
+GNUNET_NETWORK_STRUCT_END
/******************************************************************************/
/************************ ENUMERATIONS ****************************/
*/
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
*/