WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @file regex/regex_internal_lib.h
* @brief library to parse regular expressions into dfa
* @return DFA, needs to be freed using #REGEX_INTERNAL_automaton_destroy().
*/
struct REGEX_INTERNAL_Automaton *
-REGEX_INTERNAL_construct_dfa (const char *regex,
- const size_t len,
- unsigned int max_path_len);
+REGEX_INTERNAL_construct_dfa(const char *regex,
+ const size_t len,
+ unsigned int max_path_len);
/**
* @param a automaton to be destroyed.
*/
void
-REGEX_INTERNAL_automaton_destroy (struct REGEX_INTERNAL_Automaton *a);
+REGEX_INTERNAL_automaton_destroy(struct REGEX_INTERNAL_Automaton *a);
/**
* @return 0 if string matches, non 0 otherwise.
*/
int
-REGEX_INTERNAL_eval (struct REGEX_INTERNAL_Automaton *a,
- const char *string);
+REGEX_INTERNAL_eval(struct REGEX_INTERNAL_Automaton *a,
+ const char *string);
/**
* to construct the key
*/
size_t
-REGEX_INTERNAL_get_first_key (const char *input_string,
- size_t string_len,
- struct GNUNET_HashCode * key);
+REGEX_INTERNAL_get_first_key(const char *input_string,
+ size_t string_len,
+ struct GNUNET_HashCode * key);
/**
* @param iterator_cls closure.
*/
void
-REGEX_INTERNAL_iterate_all_edges (struct REGEX_INTERNAL_Automaton *a,
- REGEX_INTERNAL_KeyIterator iterator,
- void *iterator_cls);
+REGEX_INTERNAL_iterate_all_edges(struct REGEX_INTERNAL_Automaton *a,
+ REGEX_INTERNAL_KeyIterator iterator,
+ void *iterator_cls);
/**
* @param iterator_cls closure.
*/
void
-REGEX_INTERNAL_iterate_reachable_edges (struct REGEX_INTERNAL_Automaton *a,
- REGEX_INTERNAL_KeyIterator iterator,
- void *iterator_cls);
+REGEX_INTERNAL_iterate_reachable_edges(struct REGEX_INTERNAL_Automaton *a,
+ REGEX_INTERNAL_KeyIterator iterator,
+ void *iterator_cls);
* Must be freed by calling #REGEX_INTERNAL_announce_cancel().
*/
struct REGEX_INTERNAL_Announcement *
-REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht,
- const struct GNUNET_CRYPTO_EddsaPrivateKey *priv,
- const char *regex,
- uint16_t compression,
- struct GNUNET_STATISTICS_Handle *stats);
+REGEX_INTERNAL_announce(struct GNUNET_DHT_Handle *dht,
+ const struct GNUNET_CRYPTO_EddsaPrivateKey *priv,
+ const char *regex,
+ uint16_t compression,
+ struct GNUNET_STATISTICS_Handle *stats);
/**
* @param h Handle returned by a previous #REGEX_INTERNAL_announce() call.
*/
void
-REGEX_INTERNAL_reannounce (struct REGEX_INTERNAL_Announcement *h);
+REGEX_INTERNAL_reannounce(struct REGEX_INTERNAL_Announcement *h);
/**
* @param h Handle returned by a previous #REGEX_INTERNAL_announce() call.
*/
void
-REGEX_INTERNAL_announce_cancel (struct REGEX_INTERNAL_Announcement *h);
+REGEX_INTERNAL_announce_cancel(struct REGEX_INTERNAL_Announcement *h);
/**
* Must be freed by calling #REGEX_INTERNAL_search_cancel().
*/
struct REGEX_INTERNAL_Search *
-REGEX_INTERNAL_search (struct GNUNET_DHT_Handle *dht,
- const char *string,
- REGEX_INTERNAL_Found callback,
- void *callback_cls,
- struct GNUNET_STATISTICS_Handle *stats);
+REGEX_INTERNAL_search(struct GNUNET_DHT_Handle *dht,
+ const char *string,
+ REGEX_INTERNAL_Found callback,
+ void *callback_cls,
+ struct GNUNET_STATISTICS_Handle *stats);
/**
* Stop search and free all data used by a #REGEX_INTERNAL_search() call.
* @param h Handle returned by a previous #REGEX_INTERNAL_search() call.
*/
void
-REGEX_INTERNAL_search_cancel (struct REGEX_INTERNAL_Search *h);
+REGEX_INTERNAL_search_cancel(struct REGEX_INTERNAL_Search *h);
#if 0 /* keep Emacsens' auto-indent happy */