diff options
| author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-29 01:19:28 +0300 | 
|---|---|---|
| committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-29 01:19:28 +0300 | 
| commit | 8991f05857eddf8fb7769c7c2d024541e838b821 (patch) | |
| tree | 0bcd6888feba6113650c7380d8e824316739d0fe /c_implementation/include | |
| parent | 2198ceddc508a998b980076662a457a65b6637de (diff) | |
| download | arching-kaos-tools-8991f05857eddf8fb7769c7c2d024541e838b821.tar.gz arching-kaos-tools-8991f05857eddf8fb7769c7c2d024541e838b821.tar.bz2 arching-kaos-tools-8991f05857eddf8fb7769c7c2d024541e838b821.zip  | |
[libakfs] Basic test, headers and functions for the feature
Diffstat (limited to 'c_implementation/include')
| -rw-r--r-- | c_implementation/include/libakfs.h | 12 | 
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  | 
