diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-06-12 20:14:44 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-06-15 13:38:25 +0200 |
commit | e811851deba9c45f3d9b3c5b4ad5eaa7945382d5 (patch) | |
tree | 4a5084324ab2a76d3c205f34bb0871de58ac192a /lib/common/src | |
parent | 2694532a5479d157903b6c600d9b1d5c145a4e4c (diff) |
Mass rename istream_t/ostream_t with sqfs_ prefix
istream_t becomes sqfs_istream_t and ostream_t becomes sqfs_ostream_t
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/src')
-rw-r--r-- | lib/common/src/data_reader_dump.c | 2 | ||||
-rw-r--r-- | lib/common/src/data_writer_ostream.c | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/common/src/data_reader_dump.c b/lib/common/src/data_reader_dump.c index 8f38bd2..e3cbb87 100644 --- a/lib/common/src/data_reader_dump.c +++ b/lib/common/src/data_reader_dump.c @@ -13,7 +13,7 @@ int sqfs_data_reader_dump(const char *name, sqfs_data_reader_t *data, const sqfs_inode_generic_t *inode, - ostream_t *fp, size_t block_size) + sqfs_ostream_t *fp, size_t block_size) { size_t i, diff, chunk_size; sqfs_u64 filesz; diff --git a/lib/common/src/data_writer_ostream.c b/lib/common/src/data_writer_ostream.c index fbd0431..59abd7a 100644 --- a/lib/common/src/data_writer_ostream.c +++ b/lib/common/src/data_writer_ostream.c @@ -10,13 +10,13 @@ #include <stdlib.h> typedef struct{ - ostream_t base; + sqfs_ostream_t base; sqfs_block_processor_t *proc; const char *filename; } data_writer_ostream_t; -static int stream_append(ostream_t *base, const void *data, size_t size) +static int stream_append(sqfs_ostream_t *base, const void *data, size_t size) { data_writer_ostream_t *strm = (data_writer_ostream_t *)base; int ret; @@ -31,7 +31,7 @@ static int stream_append(ostream_t *base, const void *data, size_t size) return 0; } -static int stream_flush(ostream_t *base) +static int stream_flush(sqfs_ostream_t *base) { data_writer_ostream_t *strm = (data_writer_ostream_t *)base; int ret; @@ -46,7 +46,7 @@ static int stream_flush(ostream_t *base) return 0; } -static const char *stream_get_filename(ostream_t *base) +static const char *stream_get_filename(sqfs_ostream_t *base) { data_writer_ostream_t *strm = (data_writer_ostream_t *)base; @@ -58,13 +58,13 @@ static void stream_destroy(sqfs_object_t *base) free(base); } -ostream_t *data_writer_ostream_create(const char *filename, - sqfs_block_processor_t *proc, - sqfs_inode_generic_t **inode, - int flags) +sqfs_ostream_t *data_writer_ostream_create(const char *filename, + sqfs_block_processor_t *proc, + sqfs_inode_generic_t **inode, + int flags) { data_writer_ostream_t *strm = calloc(1, sizeof(*strm)); - ostream_t *base = (ostream_t *)strm; + sqfs_ostream_t *base = (sqfs_ostream_t *)strm; int ret; if (strm == NULL) { |