summaryrefslogtreecommitdiff
path: root/include/sqfs
diff options
context:
space:
mode:
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