summaryrefslogtreecommitdiff
path: root/include/highlevel.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-17 12:50:04 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-20 03:18:47 +0200
commitd6d70a7315d5a39130928e031e3e72e7f790ac83 (patch)
treeb289503d305a449d854a0ca0ad35d4554475df70 /include/highlevel.h
parent71895fb039d7f19ab277aa6094d9755bb6827565 (diff)
Add helper function to turn sqfs inode into struct stat
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/highlevel.h')
-rw-r--r--include/highlevel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/highlevel.h b/include/highlevel.h
index 8173d6f..1c1ea11 100644
--- a/include/highlevel.h
+++ b/include/highlevel.h
@@ -22,6 +22,7 @@
#include "data_writer.h"
#include "fstree.h"
+#include <sys/stat.h>
#include <stdint.h>
#include <stddef.h>
@@ -120,4 +121,6 @@ int xattr_reader_restore_node(sqfs_xattr_reader_t *xr, fstree_t *fs,
sqfs_inode_generic_t *tree_node_to_inode(fstree_t *fs, sqfs_id_table_t *idtbl,
tree_node_t *node);
+int inode_stat(const sqfs_tree_node_t *node, struct stat *sb);
+
#endif /* HIGHLEVEL_H */