diff options
Diffstat (limited to 'lib/io/src/xfrm')
-rw-r--r-- | lib/io/src/xfrm/istream.c | 16 | ||||
-rw-r--r-- | lib/io/src/xfrm/ostream.c | 14 |
2 files changed, 15 insertions, 15 deletions
diff --git a/lib/io/src/xfrm/istream.c b/lib/io/src/xfrm/istream.c index 632409c..5c23d28 100644 --- a/lib/io/src/xfrm/istream.c +++ b/lib/io/src/xfrm/istream.c @@ -7,9 +7,9 @@ #include "../internal.h" typedef struct istream_xfrm_t { - istream_t base; + sqfs_istream_t base; - istream_t *wrapped; + sqfs_istream_t *wrapped; xfrm_stream_t *xfrm; size_t buffer_offset; @@ -17,7 +17,7 @@ typedef struct istream_xfrm_t { sqfs_u8 uncompressed[BUFSZ]; } istream_xfrm_t; -static int precache(istream_t *base) +static int precache(sqfs_istream_t *base) { istream_xfrm_t *xfrm = (istream_xfrm_t *)base; int ret; @@ -70,7 +70,7 @@ static int precache(istream_t *base) return 0; } -static int xfrm_get_buffered_data(istream_t *strm, const sqfs_u8 **out, +static int xfrm_get_buffered_data(sqfs_istream_t *strm, const sqfs_u8 **out, size_t *size, size_t want) { istream_xfrm_t *xfrm = (istream_xfrm_t *)strm; @@ -90,7 +90,7 @@ static int xfrm_get_buffered_data(istream_t *strm, const sqfs_u8 **out, return (*size == 0) ? 1 : 0; } -static void xfrm_advance_buffer(istream_t *strm, size_t count) +static void xfrm_advance_buffer(sqfs_istream_t *strm, size_t count) { istream_xfrm_t *xfrm = (istream_xfrm_t *)strm; @@ -101,7 +101,7 @@ static void xfrm_advance_buffer(istream_t *strm, size_t count) assert(xfrm->buffer_offset <= xfrm->buffer_used); } -static const char *xfrm_get_filename(istream_t *strm) +static const char *xfrm_get_filename(sqfs_istream_t *strm) { istream_xfrm_t *xfrm = (istream_xfrm_t *)strm; @@ -117,10 +117,10 @@ static void xfrm_destroy(sqfs_object_t *obj) free(xfrm); } -istream_t *istream_xfrm_create(istream_t *strm, xfrm_stream_t *xfrm) +sqfs_istream_t *istream_xfrm_create(sqfs_istream_t *strm, xfrm_stream_t *xfrm) { istream_xfrm_t *stream = calloc(1, sizeof(*stream)); - istream_t *base = (istream_t *)stream; + sqfs_istream_t *base = (sqfs_istream_t *)stream; if (stream == NULL) goto fail; diff --git a/lib/io/src/xfrm/ostream.c b/lib/io/src/xfrm/ostream.c index e55e38c..81c19dd 100644 --- a/lib/io/src/xfrm/ostream.c +++ b/lib/io/src/xfrm/ostream.c @@ -7,9 +7,9 @@ #include "../internal.h" typedef struct ostream_xfrm_t { - ostream_t base; + sqfs_ostream_t base; - ostream_t *wrapped; + sqfs_ostream_t *wrapped; xfrm_stream_t *xfrm; size_t inbuf_used; @@ -66,7 +66,7 @@ static int flush_inbuf(ostream_xfrm_t *xfrm, bool finish) return 0; } -static int xfrm_append(ostream_t *strm, const void *data, size_t size) +static int xfrm_append(sqfs_ostream_t *strm, const void *data, size_t size) { ostream_xfrm_t *xfrm = (ostream_xfrm_t *)strm; size_t diff; @@ -96,7 +96,7 @@ static int xfrm_append(ostream_t *strm, const void *data, size_t size) return 0; } -static int xfrm_flush(ostream_t *strm) +static int xfrm_flush(sqfs_ostream_t *strm) { ostream_xfrm_t *xfrm = (ostream_xfrm_t *)strm; @@ -108,7 +108,7 @@ static int xfrm_flush(ostream_t *strm) return xfrm->wrapped->flush(xfrm->wrapped); } -static const char *xfrm_get_filename(ostream_t *strm) +static const char *xfrm_get_filename(sqfs_ostream_t *strm) { ostream_xfrm_t *xfrm = (ostream_xfrm_t *)strm; @@ -124,10 +124,10 @@ static void xfrm_destroy(sqfs_object_t *obj) free(xfrm); } -ostream_t *ostream_xfrm_create(ostream_t *strm, xfrm_stream_t *xfrm) +sqfs_ostream_t *ostream_xfrm_create(sqfs_ostream_t *strm, xfrm_stream_t *xfrm) { ostream_xfrm_t *stream = calloc(1, sizeof(*stream)); - ostream_t *base = (ostream_t *)stream; + sqfs_ostream_t *base = (sqfs_ostream_t *)stream; if (stream == NULL) goto fail; |