diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/common.h | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/include/common.h b/include/common.h index bdb3837..9938ba0 100644 --- a/include/common.h +++ b/include/common.h @@ -75,6 +75,12 @@ typedef struct {  	bool quiet;  } sqfs_writer_cfg_t; +typedef struct sqfs_hard_link_t { +	struct sqfs_hard_link_t *next; +	sqfs_u32 inode_number; +	char *target; +} sqfs_hard_link_t; +  #define container_of(ptr, type, member) \  	((type *)((char *)ptr - offsetof(type, member))) @@ -132,6 +138,9 @@ void sqfs_writer_cleanup(sqfs_writer_t *sqfs);  void sqfs_perror(const char *file, const char *action, int error_code); +int sqfs_tree_find_hard_links(const sqfs_tree_node_t *root, +			      sqfs_hard_link_t **out); +  /*    A wrapper around mkdir() that behaves like 'mkdir -p'. It tries to create    every component of the given path and skips already existing entries. | 
