aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-23 10:37:27 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-10-24 15:57:18 +0200
commit6e7b20a41c8a7f10392884e1741b031b579a93fa (patch)
tree1ed2c8c7d8db94da6fc8dbc73ad54d13e535344a /include
parentb3c5de63c132f74f4e3592f2ff07e5172c5e295f (diff)
Cleanup: move memory/stdio streams to libcommon
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/common.h8
-rw-r--r--include/io/mem.h24
-rw-r--r--include/io/std.h42
3 files changed, 7 insertions, 67 deletions
diff --git a/include/common.h b/include/common.h
index ab6fccf..13d79ba 100644
--- a/include/common.h
+++ b/include/common.h
@@ -22,7 +22,6 @@
#include "simple_writer.h"
#include "compress_cli.h"
#include "dir_tree.h"
-#include "io/std.h"
#include "compat.h"
#include "fstree.h"
@@ -54,4 +53,11 @@ void print_size(sqfs_u64 size, char *buffer, bool round_to_int);
*/
int parse_fstree_defaults(fstree_defaults_t *out, char *str);
+int istream_open_stdin(sqfs_istream_t **out);
+
+int ostream_open_stdout(sqfs_ostream_t **out);
+
+sqfs_istream_t *istream_memory_create(const char *name, size_t bufsz,
+ const void *data, size_t size);
+
#endif /* COMMON_H */
diff --git a/include/io/mem.h b/include/io/mem.h
deleted file mode 100644
index 20b04ab..0000000
--- a/include/io/mem.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
-/*
- * mem.h
- *
- * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
- */
-#ifndef IO_MEM_STREAM_H
-#define IO_MEM_STREAM_H
-
-#include "sqfs/predef.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SQFS_INTERNAL
-sqfs_istream_t *istream_memory_create(const char *name, size_t bufsz,
- const void *data, size_t size);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* IO_MEM_STREAM_H */
diff --git a/include/io/std.h b/include/io/std.h
deleted file mode 100644
index a9f436a..0000000
--- a/include/io/std.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
-/*
- * std.h
- *
- * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
- */
-#ifndef IO_STD_H
-#define IO_STD_H
-
-#include "sqfs/io.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @brief Create an input stream that reads from standard input.
- *
- * @memberof sqfs_istream_t
- *
- * @param out Returns a pointer to an input stream on success.
- *
- * @return Zero on success, a negative @ref SQFS_ERROR number on failure
- */
-SQFS_INTERNAL int istream_open_stdin(sqfs_istream_t **out);
-
-/**
- * @brief Create an output stream that writes to standard output.
- *
- * @memberof sqfs_ostream_t
- *
- * @param out Returns a pointer to an output stream on success.
- *
- * @return Zero on success, a negative @ref SQFS_ERROR number on failure
- */
-SQFS_INTERNAL int ostream_open_stdout(sqfs_ostream_t **out);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* IO_STD_H */