aboutsummaryrefslogtreecommitdiff
path: root/unpack/unsquashfs.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-02 00:37:50 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-03 21:45:46 +0200
commit1796ff184ba862508fc578c985dd9ebcc15a048d (patch)
treec73bf7226963e17ad45ed31d739ca5f5ebf7f1f3 /unpack/unsquashfs.h
parentaffbcaf1deab75cf83e95512ff539d73474909e2 (diff)
unsquashfs: add function to turn inode into fs tree node
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'unpack/unsquashfs.h')
-rw-r--r--unpack/unsquashfs.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/unpack/unsquashfs.h b/unpack/unsquashfs.h
new file mode 100644
index 0000000..e50646d
--- /dev/null
+++ b/unpack/unsquashfs.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+#ifndef UNSQUASHFS_H
+#define UNSQUASHFS_H
+
+#include "squashfs.h"
+#include "compress.h"
+#include "id_table.h"
+#include "fstree.h"
+
+#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <stdio.h>
+
+tree_node_t *tree_node_from_inode(sqfs_inode_generic_t *inode,
+ const id_table_t *idtbl,
+ const char *name,
+ size_t block_size);
+
+#endif /* UNSQUASHFS_H */