aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_block_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-27 11:31:48 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-27 11:31:48 +0000
commitd1b1c834fbb65d70fca837e1ab742e71e16adf50 (patch)
treeff3c5f148bee8c53a8a36447a8bd5535ed5573c2 /src/regex/regex_block_lib.h
parent1350dd76782b3cea091cd3c41dc53a6fc244414b (diff)
downloadgnunet-d1b1c834fbb65d70fca837e1ab742e71e16adf50.tar.gz
gnunet-d1b1c834fbb65d70fca837e1ab742e71e16adf50.zip
-move struct RegexBlock into regex_block_lib
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.