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)
-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 dec0252050..7c48bbefdd 100644
--- a/src/regex/regex_block_lib.h
+++ b/src/regex/regex_block_lib.h
@@ -41,6 +41,12 @@ extern "C"
/**
+ * Representation of a Regex node (and edges) in the DHT.
+ */
+struct RegexBlock;
+
+
+/**
* Edge representation.
*/
struct REGEX_BLOCK_Edge
@@ -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.