X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmesh%2Fmesh_path.h;h=48cf048d45eb52893bab5464b18ecf99334a16f1;hb=056f559d916d785164f40e63ca56c153ea0e9ebe;hp=c3f3264b00d48ec53d852566128dbbff272f930c;hpb=99c532018cf95dcd4d6319313b4718f7bb2c8297;p=oweals%2Fgnunet.git diff --git a/src/mesh/mesh_path.h b/src/mesh/mesh_path.h index c3f3264b0..48cf048d4 100644 --- a/src/mesh/mesh_path.h +++ b/src/mesh/mesh_path.h @@ -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); /**