Skip to content

Commit

Permalink
file: add missing prototype for resolve_all
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottox committed May 29, 2024
1 parent 7cabfc7 commit e2e577f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/sqsh_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,18 @@ enum SqshFileType sqsh_file_type(const struct SqshFile *context);
*/
int sqsh_file_symlink_resolve(struct SqshFile *context);

/**
* @memberof SqshFile
* @brief resolves all symlink target targets until a file is hit. This function
* is similar to sqsh_file_symlink_resolve() but resolves symlinks recursively
* until a file is hit.
*
* @param[in] context The file context.
*
* @return int 0 on success, less than 0 on error.
*/
int sqsh_file_symlink_resolve_all(struct SqshFile *context);

/**
* @memberof SqshFile
* @brief returns the target of a symbolic link. Be aware that the returned
Expand Down

0 comments on commit e2e577f

Please sign in to comment.