aboutsummaryrefslogtreecommitdiff
path: root/c_implementation/include/libakfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'c_implementation/include/libakfs.h')
-rw-r--r--c_implementation/include/libakfs.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/c_implementation/include/libakfs.h b/c_implementation/include/libakfs.h
index e31c5ec..83b820e 100644
--- a/c_implementation/include/libakfs.h
+++ b/c_implementation/include/libakfs.h
@@ -21,10 +21,9 @@ typedef struct {
} sha512sum;
/**
- * This struct describes explicitly the structure of a root_hash. It is the root
- * of a hash merkle tree. Note, that this structure can be used for roots and
- * branches. Possibly, the name will change to something more generic in the
- * future.
+ * This struct describes explicitly the structure of a merkletree_node. Note,
+ * that this structure can be used for roots and branches.
+ *
* Another note is that instead of approaching this as left and right, as seen
* in other codebases, we do a head-tail naming. That's because of the BASH
* implementation that you can find at lib/_ak_fs.
@@ -43,7 +42,7 @@ typedef struct {
* Hash of tail
*/
sha512sum tail;
-} root_hash;
+} merkletree_node;
/**
* This is the current structure of an akfs_map. Due to potential short-comings
@@ -403,5 +402,8 @@ int ak_fs_ls();
*/
int ak_fs_main(int, char**);
+int ak_fs_cat_file_from_root_hash(sha512sum*);
+int ak_fs_cfm(akfs_map_v3*);
+
#endif // AKFS