From 3a851dfe87c88ac1d4dddc2a26cc48b037f852f9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 8 Sep 2019 14:53:30 +0200 Subject: Replace direct file I/O with abstraction layer This should make it easier to use libsquashfs with custom setups that embedd a squashfs image inside something else. Also, it should make it easier to port to non unix-like platforms. Signed-off-by: David Oberhollenzer --- include/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/util.h') diff --git a/include/util.h b/include/util.h index 93b8a04..e2089da 100644 --- a/include/util.h +++ b/include/util.h @@ -109,6 +109,9 @@ int popd(void); SQFS_INTERNAL int padd_file(int outfd, uint64_t size, size_t blocksize); +SQFS_INTERNAL +int padd_sqfs(sqfs_file_t *file, uint64_t size, size_t blocksize); + /* Helper for allocating data structures with flexible array members. -- cgit v1.2.3