aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_block_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regex_block_lib.h')
-rw-r--r--src/regex/regex_block_lib.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/regex/regex_block_lib.h b/src/regex/regex_block_lib.h
index dec025205..7c48bbefd 100644
--- a/src/regex/regex_block_lib.h
+++ b/src/regex/regex_block_lib.h
@@ -41,6 +41,12 @@ extern "C"
41 41
42 42
43/** 43/**
44 * Representation of a Regex node (and edges) in the DHT.
45 */
46struct RegexBlock;
47
48
49/**
44 * Edge representation. 50 * Edge representation.
45 */ 51 */
46struct REGEX_BLOCK_Edge 52struct REGEX_BLOCK_Edge
@@ -146,6 +152,15 @@ REGEX_BLOCK_get_key (const struct RegexBlock *block,
146 struct GNUNET_HashCode *key); 152 struct GNUNET_HashCode *key);
147 153
148 154
155/**
156 * Test if this block is marked as being an accept state.
157 *
158 * @param block block to test
159 * @return GNUNET_YES if the block is accepting, GNUNET_NO if not
160 */
161int
162GNUNET_BLOCK_is_accepting (const struct RegexBlock *block);
163
149 164
150/** 165/**
151 * Construct a regex block to be stored in the DHT. 166 * Construct a regex block to be stored in the DHT.