diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-26 17:21:44 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-26 17:22:53 +0200 |
commit | ff4a9235feb4237854ff102c4dc7cf4645d6a116 (patch) | |
tree | 18017f7f1b6776ef76360fef0ff127d42f3007cd /include/sqfs/data_writer.h | |
parent | 248765bd9f6ead4fbe4e5822bcaf46b85fe1687f (diff) |
Add file API stub to sqfs data writer
Basically move the state tracking from the old data writer over to
the new one.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/data_writer.h')
-rw-r--r-- | include/sqfs/data_writer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sqfs/data_writer.h b/include/sqfs/data_writer.h index cc99700..ffa3334 100644 --- a/include/sqfs/data_writer.h +++ b/include/sqfs/data_writer.h @@ -169,6 +169,10 @@ sqfs_data_writer_t *sqfs_data_writer_create(size_t max_block_size, */ SQFS_API void sqfs_data_writer_destroy(sqfs_data_writer_t *proc); +SQFS_API int sqfs_data_writer_begin_file(sqfs_data_writer_t *proc, + sqfs_inode_generic_t *inode, + uint32_t flags); + /** * @brief Add a block to be processed. * @@ -187,6 +191,8 @@ SQFS_API void sqfs_data_writer_destroy(sqfs_data_writer_t *proc); SQFS_API int sqfs_data_writer_enqueue(sqfs_data_writer_t *proc, sqfs_block_t *block); +SQFS_API int sqfs_data_writer_end_file(sqfs_data_writer_t *proc); + /** * @brief Wait for the works to finish and finally flush the current * fragment block. |