diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-03-11 14:51:21 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-03-11 14:51:21 +0000 |
commit | 2b869471ca92027e0ffa1d8180585055d7698762 (patch) | |
tree | ce773e8bea6c65d9d8095b4efd6792267abb2025 /src/regex/regex_block_lib.h | |
parent | f5c90ebc3dcaf15ec375016bd628717b92461d76 (diff) | |
download | gnunet-2b869471ca92027e0ffa1d8180585055d7698762.tar.gz gnunet-2b869471ca92027e0ffa1d8180585055d7698762.zip |
- allow GNUNET_BLOCK_evaluate on PUT requests for regex blocks
Diffstat (limited to 'src/regex/regex_block_lib.h')
-rw-r--r-- | src/regex/regex_block_lib.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/regex/regex_block_lib.h b/src/regex/regex_block_lib.h index f591f5f61..ca7a2ee22 100644 --- a/src/regex/regex_block_lib.h +++ b/src/regex/regex_block_lib.h | |||
@@ -39,14 +39,15 @@ extern "C" | |||
39 | #include "block_regex.h" | 39 | #include "block_regex.h" |
40 | 40 | ||
41 | /** | 41 | /** |
42 | * Check if the regex block is well formed, including all edges | 42 | * Check if the regex block is well formed, including all edges. |
43 | * | 43 | * |
44 | * @param block The start of the block. | 44 | * @param block The start of the block. |
45 | * @param size The size of the block. | 45 | * @param size The size of the block. |
46 | * @param xquery String describing the edge we are looking for. | 46 | * @param xquery String describing the edge we are looking for. |
47 | * Can be NULL in case this is a put block. | ||
47 | * | 48 | * |
48 | * @return GNUNET_OK in case it's fine. | 49 | * @return GNUNET_OK in case it's fine. |
49 | * GNUNET_NO in case the xquery is not found. | 50 | * GNUNET_NO in case the xquery exists and is not found (IRRELEVANT). |
50 | * GNUNET_SYSERR if the block is invalid. | 51 | * GNUNET_SYSERR if the block is invalid. |
51 | */ | 52 | */ |
52 | int | 53 | int |
@@ -78,7 +79,13 @@ typedef int (*GNUNET_REGEX_EgdeIterator)(void *cls, | |||
78 | * @param iterator Function to call on each edge in the block. | 79 | * @param iterator Function to call on each edge in the block. |
79 | * @param iter_cls Closure for the iterator. | 80 | * @param iter_cls Closure for the iterator. |
80 | * | 81 | * |
81 | * @return GNUNET_SYSERR if an error has been encountered, GNUNET_OK otherwise | 82 | * @return GNUNET_SYSERR if an error has been encountered. |
83 | * GNUNET_OK if no error has been encountered. | ||
84 | * Note that if the iterator stops the iteration by returning | ||
85 | * GNUNET_NO, the block will no longer be checked for further errors. | ||
86 | * The return value will be GNUNET_OK meaning that no errors were | ||
87 | * found until the edge last notified to the iterator, but there might | ||
88 | * be errors in further edges. | ||
82 | */ | 89 | */ |
83 | int | 90 | int |
84 | GNUNET_REGEX_block_iterate (const struct RegexBlock *block, | 91 | GNUNET_REGEX_block_iterate (const struct RegexBlock *block, |