summaryrefslogtreecommitdiff
path: root/src/regex/regex_internal_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regex_internal_lib.h')
-rw-r--r--src/regex/regex_internal_lib.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/regex/regex_internal_lib.h b/src/regex/regex_internal_lib.h
index bbf89758e..9cb925a17 100644
--- a/src/regex/regex_internal_lib.h
+++ b/src/regex/regex_internal_lib.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20/** 20/**
21 * @file regex/regex_internal_lib.h 21 * @file regex/regex_internal_lib.h
22 * @brief library to parse regular expressions into dfa 22 * @brief library to parse regular expressions into dfa
@@ -64,9 +64,9 @@ struct REGEX_INTERNAL_Automaton;
64 * @return DFA, needs to be freed using #REGEX_INTERNAL_automaton_destroy(). 64 * @return DFA, needs to be freed using #REGEX_INTERNAL_automaton_destroy().
65 */ 65 */
66struct REGEX_INTERNAL_Automaton * 66struct REGEX_INTERNAL_Automaton *
67REGEX_INTERNAL_construct_dfa (const char *regex, 67REGEX_INTERNAL_construct_dfa(const char *regex,
68 const size_t len, 68 const size_t len,
69 unsigned int max_path_len); 69 unsigned int max_path_len);
70 70
71 71
72/** 72/**
@@ -76,7 +76,7 @@ REGEX_INTERNAL_construct_dfa (const char *regex,
76 * @param a automaton to be destroyed. 76 * @param a automaton to be destroyed.
77 */ 77 */
78void 78void
79REGEX_INTERNAL_automaton_destroy (struct REGEX_INTERNAL_Automaton *a); 79REGEX_INTERNAL_automaton_destroy(struct REGEX_INTERNAL_Automaton *a);
80 80
81 81
82/** 82/**
@@ -88,8 +88,8 @@ REGEX_INTERNAL_automaton_destroy (struct REGEX_INTERNAL_Automaton *a);
88 * @return 0 if string matches, non 0 otherwise. 88 * @return 0 if string matches, non 0 otherwise.
89 */ 89 */
90int 90int
91REGEX_INTERNAL_eval (struct REGEX_INTERNAL_Automaton *a, 91REGEX_INTERNAL_eval(struct REGEX_INTERNAL_Automaton *a,
92 const char *string); 92 const char *string);
93 93
94 94
95/** 95/**
@@ -103,9 +103,9 @@ REGEX_INTERNAL_eval (struct REGEX_INTERNAL_Automaton *a,
103 * to construct the key 103 * to construct the key
104 */ 104 */
105size_t 105size_t
106REGEX_INTERNAL_get_first_key (const char *input_string, 106REGEX_INTERNAL_get_first_key(const char *input_string,
107 size_t string_len, 107 size_t string_len,
108 struct GNUNET_HashCode * key); 108 struct GNUNET_HashCode * key);
109 109
110 110
111/** 111/**
@@ -136,9 +136,9 @@ typedef void
136 * @param iterator_cls closure. 136 * @param iterator_cls closure.
137 */ 137 */
138void 138void
139REGEX_INTERNAL_iterate_all_edges (struct REGEX_INTERNAL_Automaton *a, 139REGEX_INTERNAL_iterate_all_edges(struct REGEX_INTERNAL_Automaton *a,
140 REGEX_INTERNAL_KeyIterator iterator, 140 REGEX_INTERNAL_KeyIterator iterator,
141 void *iterator_cls); 141 void *iterator_cls);
142 142
143 143
144/** 144/**
@@ -152,9 +152,9 @@ REGEX_INTERNAL_iterate_all_edges (struct REGEX_INTERNAL_Automaton *a,
152 * @param iterator_cls closure. 152 * @param iterator_cls closure.
153 */ 153 */
154void 154void
155REGEX_INTERNAL_iterate_reachable_edges (struct REGEX_INTERNAL_Automaton *a, 155REGEX_INTERNAL_iterate_reachable_edges(struct REGEX_INTERNAL_Automaton *a,
156 REGEX_INTERNAL_KeyIterator iterator, 156 REGEX_INTERNAL_KeyIterator iterator,
157 void *iterator_cls); 157 void *iterator_cls);
158 158
159 159
160 160
@@ -182,11 +182,11 @@ struct REGEX_INTERNAL_Search;
182 * Must be freed by calling #REGEX_INTERNAL_announce_cancel(). 182 * Must be freed by calling #REGEX_INTERNAL_announce_cancel().
183 */ 183 */
184struct REGEX_INTERNAL_Announcement * 184struct REGEX_INTERNAL_Announcement *
185REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht, 185REGEX_INTERNAL_announce(struct GNUNET_DHT_Handle *dht,
186 const struct GNUNET_CRYPTO_EddsaPrivateKey *priv, 186 const struct GNUNET_CRYPTO_EddsaPrivateKey *priv,
187 const char *regex, 187 const char *regex,
188 uint16_t compression, 188 uint16_t compression,
189 struct GNUNET_STATISTICS_Handle *stats); 189 struct GNUNET_STATISTICS_Handle *stats);
190 190
191 191
192/** 192/**
@@ -196,7 +196,7 @@ REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht,
196 * @param h Handle returned by a previous #REGEX_INTERNAL_announce() call. 196 * @param h Handle returned by a previous #REGEX_INTERNAL_announce() call.
197 */ 197 */
198void 198void
199REGEX_INTERNAL_reannounce (struct REGEX_INTERNAL_Announcement *h); 199REGEX_INTERNAL_reannounce(struct REGEX_INTERNAL_Announcement *h);
200 200
201 201
202/** 202/**
@@ -206,7 +206,7 @@ REGEX_INTERNAL_reannounce (struct REGEX_INTERNAL_Announcement *h);
206 * @param h Handle returned by a previous #REGEX_INTERNAL_announce() call. 206 * @param h Handle returned by a previous #REGEX_INTERNAL_announce() call.
207 */ 207 */
208void 208void
209REGEX_INTERNAL_announce_cancel (struct REGEX_INTERNAL_Announcement *h); 209REGEX_INTERNAL_announce_cancel(struct REGEX_INTERNAL_Announcement *h);
210 210
211 211
212/** 212/**
@@ -242,11 +242,11 @@ typedef void
242 * Must be freed by calling #REGEX_INTERNAL_search_cancel(). 242 * Must be freed by calling #REGEX_INTERNAL_search_cancel().
243 */ 243 */
244struct REGEX_INTERNAL_Search * 244struct REGEX_INTERNAL_Search *
245REGEX_INTERNAL_search (struct GNUNET_DHT_Handle *dht, 245REGEX_INTERNAL_search(struct GNUNET_DHT_Handle *dht,
246 const char *string, 246 const char *string,
247 REGEX_INTERNAL_Found callback, 247 REGEX_INTERNAL_Found callback,
248 void *callback_cls, 248 void *callback_cls,
249 struct GNUNET_STATISTICS_Handle *stats); 249 struct GNUNET_STATISTICS_Handle *stats);
250 250
251/** 251/**
252 * Stop search and free all data used by a #REGEX_INTERNAL_search() call. 252 * Stop search and free all data used by a #REGEX_INTERNAL_search() call.
@@ -255,7 +255,7 @@ REGEX_INTERNAL_search (struct GNUNET_DHT_Handle *dht,
255 * @param h Handle returned by a previous #REGEX_INTERNAL_search() call. 255 * @param h Handle returned by a previous #REGEX_INTERNAL_search() call.
256 */ 256 */
257void 257void
258REGEX_INTERNAL_search_cancel (struct REGEX_INTERNAL_Search *h); 258REGEX_INTERNAL_search_cancel(struct REGEX_INTERNAL_Search *h);
259 259
260 260
261#if 0 /* keep Emacsens' auto-indent happy */ 261#if 0 /* keep Emacsens' auto-indent happy */