From 502af2167f7c218366666ca4944bd7cc54b5b19a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 15 Aug 2011 21:46:35 +0000 Subject: indentation --- src/fs/fs_tree.h | 70 +++++++++++++++++++++++++++----------------------------- 1 file changed, 34 insertions(+), 36 deletions(-) (limited to 'src/fs/fs_tree.h') diff --git a/src/fs/fs_tree.h b/src/fs/fs_tree.h index 5cd4d0afe..c2b7de48c 100644 --- a/src/fs/fs_tree.h +++ b/src/fs/fs_tree.h @@ -40,8 +40,7 @@ * @param flen file length for which to compute the depth * @return depth of the tree, always > 0. A depth of 1 means only a DBLOCK. */ -unsigned int -GNUNET_FS_compute_depth (uint64_t flen); +unsigned int GNUNET_FS_compute_depth (uint64_t flen); /** @@ -53,8 +52,7 @@ GNUNET_FS_compute_depth (uint64_t flen); * @param depth depth of the block. depth==0 is a DBLOCK. * @return number of bytes of payload a subtree of this depth may correspond to */ -uint64_t -GNUNET_FS_tree_compute_tree_size (unsigned int depth); +uint64_t GNUNET_FS_tree_compute_tree_size (unsigned int depth); /** @@ -70,8 +68,7 @@ GNUNET_FS_tree_compute_tree_size (unsigned int depth); */ size_t GNUNET_FS_tree_calculate_block_size (uint64_t fsize, - uint64_t offset, - unsigned int depth); + uint64_t offset, unsigned int depth); /** @@ -95,14 +92,14 @@ struct GNUNET_FS_TreeEncoder; * @param block the (encrypted) block * @param block_size size of block (in bytes) */ -typedef void (*GNUNET_FS_TreeBlockProcessor)(void *cls, - const struct ContentHashKey *chk, - uint64_t offset, - unsigned int depth, - enum GNUNET_BLOCK_Type type, - const void *block, - uint16_t block_size); - +typedef void (*GNUNET_FS_TreeBlockProcessor) (void *cls, + const struct ContentHashKey * chk, + uint64_t offset, + unsigned int depth, + enum GNUNET_BLOCK_Type type, + const void *block, + uint16_t block_size); + /** * Function called with information about our @@ -114,12 +111,12 @@ typedef void (*GNUNET_FS_TreeBlockProcessor)(void *cls, * @param pt_size size of pt_block * @param depth depth of the block in the tree, 0 for DBLOCKS */ -typedef void (*GNUNET_FS_TreeProgressCallback)(void *cls, - uint64_t offset, - const void *pt_block, - size_t pt_size, - unsigned int depth); - +typedef void (*GNUNET_FS_TreeProgressCallback) (void *cls, + uint64_t offset, + const void *pt_block, + size_t pt_size, + unsigned int depth); + /** * Initialize a tree encoder. This function will call "proc" and @@ -139,14 +136,18 @@ typedef void (*GNUNET_FS_TreeProgressCallback)(void *cls, * @param cont function to call when done * @return tree encoder context */ -struct GNUNET_FS_TreeEncoder * -GNUNET_FS_tree_encoder_create (struct GNUNET_FS_Handle *h, - uint64_t size, - void *cls, - GNUNET_FS_DataReader reader, - GNUNET_FS_TreeBlockProcessor proc, - GNUNET_FS_TreeProgressCallback progress, - GNUNET_SCHEDULER_Task cont); +struct GNUNET_FS_TreeEncoder *GNUNET_FS_tree_encoder_create (struct + GNUNET_FS_Handle + *h, uint64_t size, + void *cls, + GNUNET_FS_DataReader + reader, + GNUNET_FS_TreeBlockProcessor + proc, + GNUNET_FS_TreeProgressCallback + progress, + GNUNET_SCHEDULER_Task + cont); /** @@ -157,7 +158,7 @@ GNUNET_FS_tree_encoder_create (struct GNUNET_FS_Handle *h, * * @param te tree encoder to use */ -void GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder * te); +void GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder *te); /** @@ -172,8 +173,7 @@ void GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder * te); * both "*uri" and "*emsg" will be set to NULL). */ void GNUNET_FS_tree_encoder_finish (struct GNUNET_FS_TreeEncoder *te, - struct GNUNET_FS_Uri **uri, - char **emsg); + struct GNUNET_FS_Uri **uri, char **emsg); #if 0 @@ -187,9 +187,8 @@ void GNUNET_FS_tree_encoder_finish (struct GNUNET_FS_TreeEncoder *te, * @param data set to the resume data * @param size set to the size of the resume data */ -void GNUNET_FS_tree_encoder_resume_get_data (const struct GNUNET_FS_TreeEncoder *te, - void **data, - size_t *size); +void GNUNET_FS_tree_encoder_resume_get_data (const struct GNUNET_FS_TreeEncoder + *te, void **data, size_t * size); /** @@ -201,8 +200,7 @@ void GNUNET_FS_tree_encoder_resume_get_data (const struct GNUNET_FS_TreeEncoder * @param size the size of the resume data */ void GNUNET_FS_tree_encoder_resume (struct GNUNET_FS_TreeEncoder *te, - const void *data, - size_t size); + const void *data, size_t size); #endif #endif -- cgit v1.2.3