34#ifndef SQSH_TREE_PRIVATE_H
35#define SQSH_TREE_PRIVATE_H
40#include <cextras/memory.h>
59 size_t max_symlink_depth;
60 size_t current_symlink_depth;
65 uint64_t current_inode_ref;
66 uint64_t root_inode_ref;
89 bool follow_symlinks);
115 struct CxPreallocPool stack_pool;
124 const struct SqshFile *current_file;
167} __attribute__((deprecated(
"Since 1.2.0. Use SqshPathResolver instead.")));
#define SQSH_NO_EXPORT
Do not export symbol.
#define SQSH_NO_UNUSED
Warn if return value is unused.
SqshFileType
enum that represents the file type.
SqshTreeTraversalState
The state of the tree traversal.
SQSH_NO_EXPORT enum SqshFileType sqsh__path_resolver_type(const struct SqshPathResolver *resolver)
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__path_resolver_to_ref(struct SqshPathResolver *resolver, uint64_t inode_ref)
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__path_resolver_resolve_nt(struct SqshPathResolver *resolver, const char *path, size_t path_len, bool follow_symlinks)
SQSH_NO_EXPORT int sqsh__tree_traversal_cleanup(struct SqshTreeTraversal *traversal)
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__tree_traversal_init(struct SqshTreeTraversal *traversal, const struct SqshFile *file)
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__path_resolver_to_inode(struct SqshPathResolver *resolver, uint32_t inode_number)
SQSH_NO_EXPORT int sqsh__path_resolver_cleanup(struct SqshPathResolver *resolver)
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__path_resolver_follow_symlink(struct SqshPathResolver *resolver)
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__path_resolver_init(struct SqshPathResolver *resolver, struct SqshArchive *archive)
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__path_resolver_follow_all_symlinks(struct SqshPathResolver *resolver)
The inode map context is used to cache inodes numbers and their corresponding inode references.
A walker over the contents of a file.
struct SqshTreeTraversalStackElement * next
struct SqshDirectoryIterator iterator
A walker over the contents of a file.
A walker over the contents of a file.