diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-03-03 19:43:54 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-03-04 00:58:53 +0100 |
commit | 44c81eeffe9c8820b1009a7a5c728782aa5ebf40 (patch) | |
tree | 544eceb6dc5633018e5147c88ca9b07dd0fb54d9 /include/sqfs/io.h | |
parent | 6f47796dc0761fac359ec59ce26c7af5154e538d (diff) |
Add a generic copying mechanism to sqfs_object_t
This patch adds a deep-copy callback to sqfs_object_t and removes the
copying mechanism from sqfs_compressor_t. This is also interesting for
other types.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/io.h')
-rw-r--r-- | include/sqfs/io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sqfs/io.h b/include/sqfs/io.h index 578c4fb..18c6810 100644 --- a/include/sqfs/io.h +++ b/include/sqfs/io.h @@ -63,6 +63,11 @@ typedef enum { * @extends sqfs_object_t * * @brief Abstracts file I/O to make it easy to embedd SquashFS. + * + * Files are only copyable if they are read only, i.e. if a file has been + * opened with write access, @ref sqfs_copy will always return NULL. The + * other data types inside libsquashfs assume this to hold for all + * implementations of this interface. */ struct sqfs_file_t { sqfs_object_t base; |