types
[oweals/gnunet.git] / src / fs / fs_tree.h
index 47d383fb52dbd58ec760d21a59ebfa43e22c2e56..bfbd7019b492699b66e35ce7a1f33e025da17226 100644 (file)
 
 #include "fs.h"
 
+/**
+ * Compute the depth of the CHK tree.
+ *
+ * @param flen file length for which to compute the depth
+ * @return depth of the tree
+ */
+unsigned int
+GNUNET_FS_compute_depth (uint64_t flen);
+
+
 /**
  * Context for an ECRS-based file encoder that computes
  * the Merkle-ish-CHK tree.
@@ -57,7 +67,7 @@ struct GNUNET_FS_TreeEncoder;
 typedef void (*GNUNET_FS_TreeBlockProcessor)(void *cls,
                                             const GNUNET_HashCode *query,
                                             uint64_t offset,
-                                            unsigned int type,
+                                            uint32_t type,
                                             const void *block,
                                             uint16_t block_size);