aboutsummaryrefslogtreecommitdiff
path: root/c_implementation/include
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2025-04-29 01:19:28 +0300
committerkaotisk <kaotisk@arching-kaos.org>2025-04-29 19:31:09 +0300
commitbf832353de150278795e41831e26b25a0e4dd844 (patch)
tree57c2ca5691068370fb81fd0595fd8383bb15c866 /c_implementation/include
parentabe30f24399bc8bb78cb9e1339a0b5dd88c97b7f (diff)
downloadarching-kaos-tools-bf832353de150278795e41831e26b25a0e4dd844.tar.gz
arching-kaos-tools-bf832353de150278795e41831e26b25a0e4dd844.tar.bz2
arching-kaos-tools-bf832353de150278795e41831e26b25a0e4dd844.zip
[libakfs] Basic test, headers and functions for the feature
Diffstat (limited to 'c_implementation/include')
-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