diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-05-20 17:04:15 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-05-22 16:15:45 +0200 |
commit | 6351872732fce77186f401050eee92c7c3aa3461 (patch) | |
tree | c938233378d13dbc94e08f24e34bb84406b08d21 /include/io/dir_iterator.h | |
parent | 9a97a9a4fe224bcf53ad23af31bca67bbb71a824 (diff) |
libtar: add a dir_iterator_t implementation for tar files
The existing istream_t wrapper is mered into this one as well, we
can open the files via the iterators open_file_ro function. Unit
tests and tar2sqfs are modified accordingly.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/io/dir_iterator.h')
-rw-r--r-- | include/io/dir_iterator.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/io/dir_iterator.h b/include/io/dir_iterator.h index 377f07e..20fcdff 100644 --- a/include/io/dir_iterator.h +++ b/include/io/dir_iterator.h @@ -24,6 +24,11 @@ typedef enum { */ typedef struct { /** + * @brief Total size of file entries + */ + sqfs_u64 size; + + /** * @brief Unix time stamp when the entry was last modified. * * If necessary, the OS native time stamp is converted to Unix time. @@ -49,14 +54,14 @@ typedef struct { * * On Windows and other non-Unix OSes, this always reports user 0. */ - sqfs_u32 uid; + sqfs_u64 uid; /** * @brief ID of the group that owns the entry. * * On Windows and other non-Unix OSes, this always reports group 0. */ - sqfs_u32 gid; + sqfs_u64 gid; /** * @brief Unix style permissions and entry type. |