diff options
Diffstat (limited to 'src/cadet/cadet_path.h')
-rw-r--r-- | src/cadet/cadet_path.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cadet/cadet_path.h b/src/cadet/cadet_path.h index 9991b380d..6281ddc05 100644 --- a/src/cadet/cadet_path.h +++ b/src/cadet/cadet_path.h | |||
@@ -159,6 +159,22 @@ int | |||
159 | path_destroy (struct CadetPeerPath *p); | 159 | path_destroy (struct CadetPeerPath *p); |
160 | 160 | ||
161 | /** | 161 | /** |
162 | * Builds a path from a PeerIdentity array. | ||
163 | * | ||
164 | * @param peers PeerIdentity array. | ||
165 | * @param size Size of the @c peers array. | ||
166 | * @param myid ID of local peer, to find @c own_pos. | ||
167 | * @param own_pos Output parameter: own position in the path. | ||
168 | * | ||
169 | * @return Fixed and shortened path. | ||
170 | */ | ||
171 | struct CadetPeerPath * | ||
172 | path_build_from_peer_ids (struct GNUNET_PeerIdentity *peers, | ||
173 | unsigned int size, | ||
174 | GNUNET_PEER_Id myid, | ||
175 | unsigned int *own_pos); | ||
176 | |||
177 | /** | ||
162 | * Path -> allocated one line string. Caller must free. | 178 | * Path -> allocated one line string. Caller must free. |
163 | * | 179 | * |
164 | * @param p Path. | 180 | * @param p Path. |