diff options
author | Maximilian Szengel <gnunet@maxsz.de> | 2012-10-26 14:33:59 +0000 |
---|---|---|
committer | Maximilian Szengel <gnunet@maxsz.de> | 2012-10-26 14:33:59 +0000 |
commit | 7a741b2fa8c96076f8b05a2d08e4b6b3ba78360b (patch) | |
tree | bd6c9d2d20fe9fb8f405075e929b3056cdd67736 /src/regex/regex_internal.h | |
parent | 993a74c191842519ad6c82216fb7a0ee2bb09456 (diff) |
- Added path compression parameter to DFA construction API
- Moved NFA construction to internal header
- Added regex simulation profiler (for profiling the NFA, that results by merging
several DFAs in the DHT, in a database)
Diffstat (limited to 'src/regex/regex_internal.h')
-rw-r--r-- | src/regex/regex_internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/regex/regex_internal.h b/src/regex/regex_internal.h index 49e5dd0221..21c4981454 100644 --- a/src/regex/regex_internal.h +++ b/src/regex/regex_internal.h @@ -267,6 +267,18 @@ struct GNUNET_REGEX_Automaton /** + * Construct an NFA by parsing the regex string of length 'len'. + * + * @param regex regular expression string. + * @param len length of the string. + * + * @return NFA, needs to be freed using GNUNET_REGEX_automaton_destroy. + */ +struct GNUNET_REGEX_Automaton * +GNUNET_REGEX_construct_nfa (const char *regex, const size_t len); + + +/** * Function that get's passed to automaton traversal and is called before each * next traversal from state 's' using transition 't' to check if traversal * should proceed. Return GNUNET_NO to stop traversal or GNUNET_YES to continue. |