aboutsummaryrefslogtreecommitdiff
path: root/lib/io
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-01-26 15:44:26 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-01-26 15:44:26 +0100
commitccb43b0f6d3c1577ffb32053d8436aee69e0aea9 (patch)
treedf8d0777a177ac3c5b20ba00b3b374ab1e31b0c4 /lib/io
parent491c39a4ed48cdf598b8a4fd8707ef1af0850b20 (diff)
libio: move simple wrappers back into header as inline functions
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io')
-rw-r--r--lib/io/istream.c5
-rw-r--r--lib/io/ostream.c16
2 files changed, 0 insertions, 21 deletions
diff --git a/lib/io/istream.c b/lib/io/istream.c
index 6318a23..64fa478 100644
--- a/lib/io/istream.c
+++ b/lib/io/istream.c
@@ -58,11 +58,6 @@ int istream_precache(istream_t *strm)
return strm->precache(strm);
}
-const char *istream_get_filename(istream_t *strm)
-{
- return strm->get_filename(strm);
-}
-
int istream_skip(istream_t *strm, sqfs_u64 size)
{
size_t diff;
diff --git a/lib/io/ostream.c b/lib/io/ostream.c
index afe76e8..da0b7b3 100644
--- a/lib/io/ostream.c
+++ b/lib/io/ostream.c
@@ -26,12 +26,6 @@ static int append_sparse_fallback(ostream_t *strm, size_t size)
return 0;
}
-
-int ostream_append(ostream_t *strm, const void *data, size_t size)
-{
- return strm->append(strm, data, size);
-}
-
int ostream_append_sparse(ostream_t *strm, size_t size)
{
if (strm->append_sparse == NULL)
@@ -40,16 +34,6 @@ int ostream_append_sparse(ostream_t *strm, size_t size)
return strm->append_sparse(strm, size);
}
-int ostream_flush(ostream_t *strm)
-{
- return strm->flush(strm);
-}
-
-const char *ostream_get_filename(ostream_t *strm)
-{
- return strm->get_filename(strm);
-}
-
sqfs_s32 ostream_append_from_istream(ostream_t *out, istream_t *in,
sqfs_u32 size)
{