From d568f2b4c0d60752b364e9ac1a913198e869c828 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 18 Jun 2023 13:49:52 +0200 Subject: libsqfs: consistently rename the native file handle functions Start with a common prefix "sqfs_native_file_*" Signed-off-by: David Oberhollenzer --- lib/sqfs/src/io/istream.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/sqfs/src/io/istream.c') diff --git a/lib/sqfs/src/io/istream.c b/lib/sqfs/src/io/istream.c index c3399fe..7e1b896 100644 --- a/lib/sqfs/src/io/istream.c +++ b/lib/sqfs/src/io/istream.c @@ -129,7 +129,7 @@ static void file_destroy(sqfs_object_t *obj) { file_istream_t *file = (file_istream_t *)obj; - sqfs_close_native_file(file->fd); + sqfs_native_file_close(file->fd); free(file->path); free(file); } @@ -159,7 +159,7 @@ int sqfs_istream_open_handle(sqfs_istream_t **out, const char *path, return SQFS_ERROR_ALLOC; } - ret = sqfs_duplicate_native_file(fd, &file->fd); + ret = sqfs_native_file_duplicate(fd, &file->fd); if (ret) { os_error_t err = get_os_error_state(); free(file->path); @@ -167,7 +167,7 @@ int sqfs_istream_open_handle(sqfs_istream_t **out, const char *path, set_os_error_state(err); return ret; } - sqfs_close_native_file(fd); + sqfs_native_file_close(fd); strm->get_buffered_data = file_get_buffered_data; strm->advance_buffer = file_advance_buffer; @@ -188,14 +188,14 @@ int sqfs_istream_open_file(sqfs_istream_t **out, const char *path, if (flags & (SQFS_FILE_OPEN_OVERWRITE | SQFS_FILE_OPEN_NO_SPARSE)) return SQFS_ERROR_ARG_INVALID; - ret = sqfs_open_native_file(&fd, path, flags); + ret = sqfs_native_file_open(&fd, path, flags); if (ret) return ret; ret = sqfs_istream_open_handle(out, path, fd, flags); if (ret != 0) { os_error_t err = get_os_error_state(); - sqfs_close_native_file(fd); + sqfs_native_file_close(fd); set_os_error_state(err); } -- cgit v1.2.3