A walker over the contents of a file.  
 More...
#include <sqsh_tree_private.h>
A walker over the contents of a file. 
- Deprecated
- Since 1.2.0. Use struct SqshPathResolver instead. 
Definition at line 162 of file sqsh_tree_private.h.
◆ sqsh_tree_walker_down()
Lets the walker enter the current entry. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_down() instead. 
- Parameters
- 
  
    | [in,out] | walker | The walker to use |  
 
- Returns
- 0 on success, less than 0 on error. 
 
 
◆ sqsh_tree_walker_free()
Cleans up resources used by a SqshTreeWalker struct. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_free() instead. 
- Parameters
- 
  
    | [in,out] | reader | The file reader struct to clean up. |  
 
- Returns
- 0 on success, less than 0 on error. 
 
 
◆ sqsh_tree_walker_lookup()
Looks up an entry in the current directory. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_lookup() instead. 
- Parameters
- 
  
    | [in,out] | walker | The walker to use |  | [in] | name | The name of the entry to look up. |  | [in] | name_size | The size of the name. |  
 
- Returns
- 0 on success, less than 0 on error. 
 
 
◆ sqsh_tree_walker_name()
      
        
          | const char * sqsh_tree_walker_name | ( | const struct SqshTreeWalker * | walker | ) |  | 
      
 
Returns the name of the current entry. This entry is not zero terminated. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_name() instead. 
- Parameters
- 
  
    | [in] | walker | The walker to use |  
 
- Returns
- the name of the current entry. 
 
 
◆ sqsh_tree_walker_name_dup()
creates a heap allocated copy of the name of the current entry. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_name_dup() instead.
The caller is responsible for calling free() on the returned pointer.
The returned string is 0 terminated.
- Parameters
- 
  
    | [in] | walker | The walker to use |  
 
- Returns
- the name of the current entry. 
 
 
◆ sqsh_tree_walker_name_size()
      
        
          | uint16_t sqsh_tree_walker_name_size | ( | const struct SqshTreeWalker * | walker | ) |  | 
      
 
Returns the size of the name of the current entry. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_name_size() instead.
- Parameters
- 
  
    | [in] | walker | The walker to use |  
 
- Returns
- the size of the name of the current entry. 
 
 
◆ sqsh_tree_walker_new()
Creates a new SqshTreeWalker object at the root inode. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_new() instead. 
- Parameters
- 
  
    | [in] | archive | The archive to use |  | [out] | err | Pointer to an int where the error code will be stored. |  
 
- Returns
- a new file reader. 
 
 
◆ sqsh_tree_walker_next()
Moves the walker to the next entry int the current directory. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_next() instead.
This function was deprecated to align the API with other iterator APIs. The sqsh_tree_walker_next2() uses the same signature as the other iterator.
- Parameters
- 
  
    | [in,out] | walker | The walker to use |  
 
- Returns
- 0 on success, less than 0 on error. 
 
 
◆ sqsh_tree_walker_open_file()
Returns the inode of the current entry. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_open_file() instead. 
- Parameters
- 
  
    | [in,out] | walker | The walker to use |  | [out] | err | Pointer to an int where the error code will be |  
 
- Returns
- the inode of the current entry. 
 
 
◆ sqsh_tree_walker_resolve()
Resolve a path with the tree walker. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_open_file() instead.
This function will resolve the given path with the tree walker. The base is the current directory.
- Parameters
- 
  
    | [in,out] | walker | The walker to use |  | [in] | path | The path to resolve. |  | [in] | follow_symlinks | Whether to follow symlinks. |  
 
- Returns
- the inode of the current entry. 
 
 
◆ sqsh_tree_walker_revert()
reverts the walker to the begining of the current directory. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_revert() instead. 
- Parameters
- 
  
    | [in,out] | walker | The walker to use |  
 
- Returns
- 0 on success, less than 0 on error. 
 
 
◆ sqsh_tree_walker_to_root()
Moves the walker to the root directory. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_to_root() instead. 
- Parameters
- 
  
    | [in,out] | walker | The walker to use |  
 
- Returns
- 0 on success, less than 0 on error. 
 
 
◆ sqsh_tree_walker_type()
Returns the inode type of the current entry. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_type() instead. 
- Parameters
- 
  
    | [in] | walker | The walker to use |  
 
- Returns
- the inode type of the current entry. 
 
 
◆ sqsh_tree_walker_up()
Moves the walker one level up. 
- Deprecated
- Since 1.2.0. Use sqsh_path_resolver_up() instead. 
- Parameters
- 
  
    | [in,out] | walker | The walker to use |  
 
- Returns
- 0 on success, less than 0 on error. 
 
 
The documentation for this struct was generated from the following files: