aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_tree.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-14 14:16:46 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-14 14:16:46 +0000
commitdbaf8fc3075e00b95eaf8ced5a5d07d59ed61ca5 (patch)
treefb7108491625fcc61fdad42ceda6f6deb2f12473 /src/fs/fs_tree.c
parent264f8f3241199d433253b26837d10cf61d9b06fe (diff)
downloadgnunet-dbaf8fc3075e00b95eaf8ced5a5d07d59ed61ca5.tar.gz
gnunet-dbaf8fc3075e00b95eaf8ced5a5d07d59ed61ca5.zip
-more complete fix for #3034
Diffstat (limited to 'src/fs/fs_tree.c')
-rw-r--r--src/fs/fs_tree.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c
index b27fea57f..762989824 100644
--- a/src/fs/fs_tree.c
+++ b/src/fs/fs_tree.c
@@ -250,13 +250,13 @@ GNUNET_FS_tree_calculate_block_size (uint64_t fsize, uint64_t offset,
250 250
251 251
252/** 252/**
253 * Initialize a tree encoder. This function will call "proc" and 253 * Initialize a tree encoder. This function will call @a proc and
254 * "progress" on each block in the tree. Once all blocks have been 254 * "progress" on each block in the tree. Once all blocks have been
255 * processed, "cont" will be scheduled. The "reader" will be called 255 * processed, "cont" will be scheduled. The @a reader will be called
256 * to obtain the (plaintext) blocks for the file. Note that this 256 * to obtain the (plaintext) blocks for the file. Note that this
257 * function will not actually call "proc". The client must 257 * function will not actually call @a proc. The client must
258 * call "GNUNET_FS_tree_encoder_next" to trigger encryption (and 258 * call #GNUNET_FS_tree_encoder_next to trigger encryption (and
259 * calling of "proc") for the each block. 259 * calling of @a proc) for the each block.
260 * 260 *
261 * @param h the global FS context 261 * @param h the global FS context
262 * @param size overall size of the file to encode 262 * @param size overall size of the file to encode
@@ -268,7 +268,8 @@ GNUNET_FS_tree_calculate_block_size (uint64_t fsize, uint64_t offset,
268 */ 268 */
269struct GNUNET_FS_TreeEncoder * 269struct GNUNET_FS_TreeEncoder *
270GNUNET_FS_tree_encoder_create (struct GNUNET_FS_Handle *h, uint64_t size, 270GNUNET_FS_tree_encoder_create (struct GNUNET_FS_Handle *h, uint64_t size,
271 void *cls, GNUNET_FS_DataReader reader, 271 void *cls,
272 GNUNET_FS_DataReader reader,
272 GNUNET_FS_TreeBlockProcessor proc, 273 GNUNET_FS_TreeBlockProcessor proc,
273 GNUNET_FS_TreeProgressCallback progress, 274 GNUNET_FS_TreeProgressCallback progress,
274 GNUNET_SCHEDULER_Task cont) 275 GNUNET_SCHEDULER_Task cont)