From bf832353de150278795e41831e26b25a0e4dd844 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 29 Apr 2025 01:19:28 +0300 Subject: [libakfs] Basic test, headers and functions for the feature --- c_implementation/include/libakfs.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'c_implementation/include/libakfs.h') 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 -- cgit v1.2.3