From d1b1c834fbb65d70fca837e1ab742e71e16adf50 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 27 Jun 2013 11:31:48 +0000 Subject: -move struct RegexBlock into regex_block_lib --- src/regex/regex_block_lib.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/regex/regex_block_lib.h') 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 @@ -40,6 +40,12 @@ extern "C" #include "block_regex.h" +/** + * Representation of a Regex node (and edges) in the DHT. + */ +struct RegexBlock; + + /** * Edge representation. */ @@ -146,6 +152,15 @@ REGEX_BLOCK_get_key (const struct RegexBlock *block, struct GNUNET_HashCode *key); +/** + * Test if this block is marked as being an accept state. + * + * @param block block to test + * @return GNUNET_YES if the block is accepting, GNUNET_NO if not + */ +int +GNUNET_BLOCK_is_accepting (const struct RegexBlock *block); + /** * Construct a regex block to be stored in the DHT. -- cgit v1.2.3