summaryrefslogtreecommitdiff
path: root/include/bridges/stdio/stream_bridge.h
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-30 06:39:44 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-30 06:39:44 +1100
commita7a9b34b832042f94813a1e325d22051a99dd633 (patch)
treeb8d93d844cdd971197fbac35e774518bc4d1cfee /include/bridges/stdio/stream_bridge.h
parentba77f399274da516c09e40035016ed870487edd2 (diff)
fix(bridges): Move stream source to src/
Diffstat (limited to 'include/bridges/stdio/stream_bridge.h')
-rw-r--r--include/bridges/stdio/stream_bridge.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bridges/stdio/stream_bridge.h b/include/bridges/stdio/stream_bridge.h
new file mode 100644
index 0000000..561fa8a
--- /dev/null
+++ b/include/bridges/stdio/stream_bridge.h
@@ -0,0 +1,10 @@
+#include <stddef.h>
+#include <stdio.h>
+#include <tinyff/stream.h>
+
+// Default reads for common types (just FILE for now, memory later)
+size_t ff_file_read(void *ptr, size_t size, void *user);
+size_t ff_file_write(const void *ptr, size_t size, void *user);
+
+// Stream creation helpers
+ff_stream ff_create_file_stream(FILE *f); \ No newline at end of file