diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-29 03:36:36 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-29 03:36:36 +0300 |
commit | e61fa65b03801bb66bc47fc793c8991bd9a1f471 (patch) | |
tree | 6fca90b5426ec6815925879507c498f0d1103462 /c_implementation/include | |
parent | 8991f05857eddf8fb7769c7c2d024541e838b821 (diff) | |
download | arching-kaos-tools-e61fa65b03801bb66bc47fc793c8991bd9a1f471.tar.gz arching-kaos-tools-e61fa65b03801bb66bc47fc793c8991bd9a1f471.tar.bz2 arching-kaos-tools-e61fa65b03801bb66bc47fc793c8991bd9a1f471.zip |
[libakfs] Better naming and utility functions
Diffstat (limited to 'c_implementation/include')
-rw-r--r-- | c_implementation/include/libakfs.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/c_implementation/include/libakfs.h b/c_implementation/include/libakfs.h index 83b820e..31dd35e 100644 --- a/c_implementation/include/libakfs.h +++ b/c_implementation/include/libakfs.h @@ -21,7 +21,7 @@ typedef struct { } sha512sum; /** - * This struct describes explicitly the structure of a merkletree_node. Note, + * This struct describes explicitly the structure of a mt_branch. 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 @@ -42,7 +42,7 @@ typedef struct { * Hash of tail */ sha512sum tail; -} merkletree_node; +} mt_branch; /** * This is the current structure of an akfs_map. Due to potential short-comings @@ -402,6 +402,9 @@ int ak_fs_ls(); */ int ak_fs_main(int, char**); +bool ak_fs_mt_branch_is_null(mt_branch*); +bool ak_fs_mt_branch_compare(mt_branch*, mt_branch*); +int ak_fs_mt_branch_resolve(mt_branch *); int ak_fs_cat_file_from_root_hash(sha512sum*); int ak_fs_cfm(akfs_map_v3*); |