- begin work on enhanced multipart receiving
[oweals/gnunet.git] / src / mesh / mesh_path.h
index 74a35b225748c8a962204516010ad9c2a1739264..a3d2457d28b1ba02b34d9e816378f15f8deeea2a 100644 (file)
@@ -24,8 +24,8 @@
  * @author Bartlomiej Polot
  */
 
-#ifndef MESH_PATH_H
-#define MESH_PATH_H
+#ifndef MESH_PATH_H_
+#define MESH_PATH_H_
 
 #ifdef __cplusplus
 extern "C"
@@ -35,8 +35,6 @@ extern "C"
 #endif
 #endif
 
-#include "mesh.h"
-
 /******************************************************************************/
 /************************      DATA STRUCTURES     ****************************/
 /******************************************************************************/
@@ -63,6 +61,11 @@ struct MeshPeerPath
      */
   unsigned int length;
 
+    /**
+     * Path's score, how reliable is the path.
+     */
+  int score;
+
 };
 
 /******************************************************************************/
@@ -95,7 +98,7 @@ path_invert (struct MeshPeerPath *path);
  * @param path The path to duplicate.
  */
 struct MeshPeerPath *
-path_duplicate (struct MeshPeerPath *path);
+path_duplicate (const struct MeshPeerPath *path);
 
 
 /**
@@ -120,6 +123,8 @@ path_get_length (struct MeshPeerPath *path);
 int
 path_destroy (struct MeshPeerPath *p);
 
+void
+path_debug (struct MeshPeerPath *p);
 
 #if 0                           /* keep Emacsens' auto-indent happy */
 {