aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-25 20:09:20 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-25 20:13:11 +0200
commit37bf7752c31d8fda8faad0cf5f89328215305c60 (patch)
tree2d005da012ae20c62f93b47b713c42aaa46fe589 /include
parentf49fe3bbf0d52e2afcc1ace8c1f48dee9349d4f8 (diff)
Add generic read_table function similar to write_table
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/highlevel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/highlevel.h b/include/highlevel.h
index 16db1cf..cef6190 100644
--- a/include/highlevel.h
+++ b/include/highlevel.h
@@ -34,6 +34,9 @@ enum RDTREE_FLAGS {
int sqfs_write_table(int outfd, sqfs_super_t *super, compressor_t *cmp,
const void *data, size_t table_size, uint64_t *start);
+void *sqfs_read_table(int fd, compressor_t *cmp, size_t table_size,
+ uint64_t location);
+
/*
High level helper function to serialize an entire file system tree to
a squashfs inode table and directory table.