summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-30 09:10:44 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-30 09:10:44 +0200
commit9ffad2478a04011805132750644eabcb7f0c0e92 (patch)
tree8b20c7f343113efdaa258eae563aa799be0177d6 /lib/sqfs
parent825acfdfe4628523ff2a9ea86cd91c4c280f8e86 (diff)
Add flag field to directory writer begin for future expansion
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/dir_writer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqfs/dir_writer.c b/lib/sqfs/dir_writer.c
index 7c2d30d..5b8f6b1 100644
--- a/lib/sqfs/dir_writer.c
+++ b/lib/sqfs/dir_writer.c
@@ -105,11 +105,14 @@ void sqfs_dir_writer_destroy(sqfs_dir_writer_t *writer)
free(writer);
}
-int sqfs_dir_writer_begin(sqfs_dir_writer_t *writer)
+int sqfs_dir_writer_begin(sqfs_dir_writer_t *writer, sqfs_u16 flags)
{
sqfs_u32 offset;
sqfs_u64 block;
+ if (flags != 0)
+ return SQFS_ERROR_UNSUPPORTED;
+
writer_reset(writer);
sqfs_meta_writer_get_position(writer->dm, &block, &offset);