aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-12 22:00:02 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-15 13:38:25 +0200
commit043495538ebaf02adba6d40764fb3e6def65cb09 (patch)
treeff05ba2a1ebc5093ec266114e309af9991187ae8 /include
parentba99ef34e7b073c03519ef74f017091de6c9bee8 (diff)
libsquashfs: Add a get_filename function to sqfs_file_t
Similar to the sqfs_istream_t & sqfs_ostream_t interfaces. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/sqfs/io.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sqfs/io.h b/include/sqfs/io.h
index 402b6de..4291e71 100644
--- a/include/sqfs/io.h
+++ b/include/sqfs/io.h
@@ -154,6 +154,15 @@ struct sqfs_file_t {
* directly to the caller.
*/
int (*truncate)(sqfs_file_t *file, sqfs_u64 size);
+
+ /**
+ * @brief Get the original name of the file used for opening it.
+ *
+ * @param file A pointer to the file object.
+ *
+ * @return A pointer to a string representing the file name.
+ */
+ const char *(*get_filename)(sqfs_file_t *file);
};
/**