diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-29 08:11:26 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-29 08:11:26 +1100 |
| commit | 5d3fdcdfabb30a69cd7c701bfd573e9bc4fd219d (patch) | |
| tree | f917dddb06bc6e44f6916957d42d8174812e6971 /bridges/stdio | |
| parent | 3c44b526652c820a085e9733df70543cdd0f535a (diff) | |
feat(bridges): Move bridges to include folder
Diffstat (limited to 'bridges/stdio')
| -rw-r--r-- | bridges/stdio/stream.c | 17 | ||||
| -rw-r--r-- | bridges/stdio/stream.h | 8 |
2 files changed, 0 insertions, 25 deletions
diff --git a/bridges/stdio/stream.c b/bridges/stdio/stream.c deleted file mode 100644 index 72cee46..0000000 --- a/bridges/stdio/stream.c +++ /dev/null @@ -1,17 +0,0 @@ -#include "../bridges/stdio/stream.h" - -size_t ff_file_read(void *ptr, size_t size, void *user) -{ - FILE *f = (FILE *)user; - return fread(ptr, size, 1, f); -} - -ff_stream ff_create_file_stream(FILE *f) -{ - ff_stream stream; - stream.read = ff_file_read; - stream.user = (void *)f; - return stream; -} - -// Memory stream coming soon
\ No newline at end of file diff --git a/bridges/stdio/stream.h b/bridges/stdio/stream.h deleted file mode 100644 index 1ae2dbc..0000000 --- a/bridges/stdio/stream.h +++ /dev/null @@ -1,8 +0,0 @@ -#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); - -// Stream creation helpers -ff_stream ff_create_file_stream(FILE *f);
\ No newline at end of file |
