#include "block_regex.h"
+/**
+ * Representation of a Regex node (and edges) in the DHT.
+ */
+struct RegexBlock;
+
+
/**
* Edge representation.
*/
* @param cls Closure.
* @param token Token that follows to next state.
* @param len Length of token.
- * @param key Hash of next state.
+ * @param key Hash of next state.
*
* @return GNUNET_YES if should keep iterating, GNUNET_NO otherwise.
*/
*
* @param block block to get the key from
* @param block_len number of bytes in block
- * @param query where to store the key
+ * @param key where to store the key
* @return GNUNET_OK on success, GNUNET_SYSERR if the block is malformed
*/
int
struct GNUNET_HashCode *key);
+/**
+ * Test if this block is marked as being an accept state.
+ *
+ * @param block block to test
+ * @param size number of bytes in block
+ * @return GNUNET_YES if the block is accepting, GNUNET_NO if not
+ */
+int
+GNUNET_BLOCK_is_accepting (const struct RegexBlock *block,
+ size_t block_len);
+
/**
* Construct a regex block to be stored in the DHT.