summaryrefslogtreecommitdiff
path: root/include/bridges/stdio/stream_bridge.h
blob: 219b101b387ace0bc9faa62cb6f7e08a4d71ae6b (plain)
1
2
3
4
5
6
7
8
9
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, const void *user);

// Stream creation helpers
ff_stream ff_create_file_stream(FILE *f);