- doxygen
[oweals/gnunet.git] / src / mesh / mesh_path.h
index c3f3264b00d48ec53d852566128dbbff272f930c..48cf048d45eb52893bab5464b18ecf99334a16f1 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 "mesh2.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);
 
 
 /**