summaryrefslogtreecommitdiff
path: root/include/tinyff/stream.h
blob: 9f12784926d05e8215dfbe6ec29bcd48074cb341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef STREAM_H
#define STREAM_H

#include <stddef.h>
#include <stdio.h>


#define FF_NULL_STREAM {0}


// WARNING: This is just for reading streams for now
// Until I finally add encoding to PNG, it will remain read-only

typedef size_t (*ff_read_cb)(void *ptr, size_t size, void *user);

typedef struct {
    ff_read_cb read;
    void *user;
} ff_stream;

#endif