diff options
Diffstat (limited to 'src/fs/fs_unindex.c')
-rw-r--r-- | src/fs/fs_unindex.c | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index 2d16e9aee..fb72c0167 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c | |||
@@ -79,26 +79,6 @@ unindex_reader (void *cls, | |||
79 | 79 | ||
80 | 80 | ||
81 | /** | 81 | /** |
82 | * Continuation called to notify client about result of the | ||
83 | * datastore removal operation. | ||
84 | * | ||
85 | * @param cls closure | ||
86 | * @param success GNUNET_SYSERR on failure | ||
87 | * @param msg NULL on success, otherwise an error message | ||
88 | */ | ||
89 | static void | ||
90 | process_cont (void *cls, | ||
91 | int success, | ||
92 | const char *msg) | ||
93 | { | ||
94 | struct GNUNET_FS_UnindexContext *uc = cls; | ||
95 | // FIXME: may want to check for errors | ||
96 | // OTHER than content-not-present! | ||
97 | GNUNET_FS_tree_encoder_next (uc->tc); | ||
98 | } | ||
99 | |||
100 | |||
101 | /** | ||
102 | * Function called asking for the current (encoded) | 82 | * Function called asking for the current (encoded) |
103 | * block to be processed. After processing the | 83 | * block to be processed. After processing the |
104 | * client should either call "GNUNET_FS_tree_encode_next" | 84 | * client should either call "GNUNET_FS_tree_encode_next" |
@@ -227,6 +207,31 @@ signal_unindex_error (struct GNUNET_FS_UnindexContext *uc, | |||
227 | 207 | ||
228 | 208 | ||
229 | /** | 209 | /** |
210 | * Continuation called to notify client about result of the | ||
211 | * datastore removal operation. | ||
212 | * | ||
213 | * @param cls closure | ||
214 | * @param success GNUNET_SYSERR on failure | ||
215 | * @param msg NULL on success, otherwise an error message | ||
216 | */ | ||
217 | static void | ||
218 | process_cont (void *cls, | ||
219 | int success, | ||
220 | const char *msg) | ||
221 | { | ||
222 | struct GNUNET_FS_UnindexContext *uc = cls; | ||
223 | if (success == GNUNET_SYSERR) | ||
224 | { | ||
225 | signal_unindex_error (uc, | ||
226 | emsg); | ||
227 | return; | ||
228 | } | ||
229 | |||
230 | GNUNET_FS_tree_encoder_next (uc->tc); | ||
231 | } | ||
232 | |||
233 | |||
234 | /** | ||
230 | * Function called when the tree encoder has | 235 | * Function called when the tree encoder has |
231 | * processed all blocks. Clean up. | 236 | * processed all blocks. Clean up. |
232 | * | 237 | * |