diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-29 03:36:36 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-29 19:31:15 +0300 |
commit | 2fcf2c30c99cdbf46520a45326c7da02e17a210d (patch) | |
tree | 1c643cd3dc6324a9602895b4cf60f0647840ecb0 /c_implementation/include | |
parent | bf832353de150278795e41831e26b25a0e4dd844 (diff) | |
download | arching-kaos-tools-2fcf2c30c99cdbf46520a45326c7da02e17a210d.tar.gz arching-kaos-tools-2fcf2c30c99cdbf46520a45326c7da02e17a210d.tar.bz2 arching-kaos-tools-2fcf2c30c99cdbf46520a45326c7da02e17a210d.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*); |