aboutsummaryrefslogtreecommitdiff
path: root/include/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-15 17:34:39 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-15 17:34:39 +0200
commitab2d7fd8bfb1eafc61953e74757e84ed407b1f21 (patch)
tree69dda7de75e2f0cf4b36c968956ffdfe44482fe5 /include/sqfs
parent36205a44d68576a158c9f233a17abe5f8a3c63a0 (diff)
Add an sqfs_file_t implementation for reading from STDIN
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs')
-rw-r--r--include/sqfs/io.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sqfs/io.h b/include/sqfs/io.h
index 0f980d6..a544875 100644
--- a/include/sqfs/io.h
+++ b/include/sqfs/io.h
@@ -142,6 +142,17 @@ extern "C" {
*/
SQFS_API sqfs_file_t *sqfs_open_file(const char *filename, int flags);
+/**
+ * @brief Get a read-only file implementation that represents standard input
+ *
+ * This function creates a read-only file that represents STDIN. The file
+ * supports reading up to a specified number of bytes and only allows
+ * reading sequentially.
+ *
+ * @param size The alleged "size" of the file.
+ */
+SQFS_API sqfs_file_t *sqfs_get_stdin_file(uint64_t size);
+
#ifdef __cplusplus
}
#endif