diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-12-15 07:18:20 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-12-15 07:18:20 +0000 |
commit | dc00985fcabd02043686215f72348e4811943487 (patch) | |
tree | a7722112712dfbf7f6e06b53154700ca72140599 /src/cadet/cadet_path.h | |
parent | a5b5d0f609398c8c02d2a04b7818e8ce0837be02 (diff) | |
download | gnunet-dc00985fcabd02043686215f72348e4811943487.tar.gz gnunet-dc00985fcabd02043686215f72348e4811943487.zip |
- refactorize path checking code, look both ways
Diffstat (limited to 'src/cadet/cadet_path.h')
-rw-r--r-- | src/cadet/cadet_path.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cadet/cadet_path.h b/src/cadet/cadet_path.h index 6281ddc05..761e51156 100644 --- a/src/cadet/cadet_path.h +++ b/src/cadet/cadet_path.h | |||
@@ -138,6 +138,19 @@ void | |||
138 | path_invalidate (struct CadetPeerPath *p); | 138 | path_invalidate (struct CadetPeerPath *p); |
139 | 139 | ||
140 | /** | 140 | /** |
141 | * Test if two paths are equivalent (equal or revese of each other). | ||
142 | * | ||
143 | * @param p1 First path | ||
144 | * @param p2 Second path | ||
145 | * | ||
146 | * @return GNUNET_YES if both paths are equivalent | ||
147 | * GNUNET_NO otherwise | ||
148 | */ | ||
149 | int | ||
150 | path_equivalent (const struct CadetPeerPath *p1, | ||
151 | const struct CadetPeerPath *p2); | ||
152 | |||
153 | /** | ||
141 | * Test if a path is valid (or at least not known to be invalid). | 154 | * Test if a path is valid (or at least not known to be invalid). |
142 | * | 155 | * |
143 | * @param path Path to test. | 156 | * @param path Path to test. |