diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-27 11:31:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-27 11:31:48 +0000 |
commit | d1b1c834fbb65d70fca837e1ab742e71e16adf50 (patch) | |
tree | ff3c5f148bee8c53a8a36447a8bd5535ed5573c2 /src/regex/regex_block_lib.h | |
parent | 1350dd76782b3cea091cd3c41dc53a6fc244414b (diff) | |
download | gnunet-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.h | 15 |
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 | */ | ||
46 | struct RegexBlock; | ||
47 | |||
48 | |||
49 | /** | ||
44 | * Edge representation. | 50 | * Edge representation. |
45 | */ | 51 | */ |
46 | struct REGEX_BLOCK_Edge | 52 | struct 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 | */ | ||
161 | int | ||
162 | GNUNET_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. |