diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-09-26 12:45:31 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-09-26 12:45:31 +0000 |
commit | 6612e2a579c9e42bc679df285edb193ed6d974dd (patch) | |
tree | 03dd758210c39a5e72e40041411ec266d46747d5 /src/regex/regex_internal_lib.h | |
parent | 19d15fe2f575f4f6db2410d9de3ffa4de93a837b (diff) | |
download | gnunet-6612e2a579c9e42bc679df285edb193ed6d974dd.tar.gz gnunet-6612e2a579c9e42bc679df285edb193ed6d974dd.zip |
Add REGEX_INTERNAL_iterate_reachable_edges which only reveals edges reachable from
states with proof longer or equal to REGEX_INITIAL_BYTES
Diffstat (limited to 'src/regex/regex_internal_lib.h')
-rw-r--r-- | src/regex/regex_internal_lib.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/regex/regex_internal_lib.h b/src/regex/regex_internal_lib.h index 391a33fd2..96334c1c3 100644 --- a/src/regex/regex_internal_lib.h +++ b/src/regex/regex_internal_lib.h | |||
@@ -139,6 +139,22 @@ REGEX_INTERNAL_iterate_all_edges (struct REGEX_INTERNAL_Automaton *a, | |||
139 | void *iterator_cls); | 139 | void *iterator_cls); |
140 | 140 | ||
141 | 141 | ||
142 | /** | ||
143 | * Iterate over all edges of automaton 'a' that are reachable from a state with | ||
144 | * a proof of at least GNUNET_REGEX_INITIAL_BYTES characters. | ||
145 | * | ||
146 | * Call the iterator for each such edge. | ||
147 | * | ||
148 | * @param a automaton. | ||
149 | * @param iterator iterator called for each reachable edge. | ||
150 | * @param iterator_cls closure. | ||
151 | */ | ||
152 | void | ||
153 | REGEX_INTERNAL_iterate_reachable_edges (struct REGEX_INTERNAL_Automaton *a, | ||
154 | REGEX_INTERNAL_KeyIterator iterator, | ||
155 | void *iterator_cls); | ||
156 | |||
157 | |||
142 | 158 | ||
143 | /** | 159 | /** |
144 | * Handle to store cached data about a regex announce. | 160 | * Handle to store cached data about a regex announce. |