1 | // This file is part of SmallBASIC |
---|---|
2 | // |
3 | // stream-files, driver |
4 | // |
5 | // This program is distributed under the terms of the GPL v2.0 or later |
6 | // Download the GNU Public License (GPL) from www.gnu.org |
7 | // |
8 | // Copyright(C) 2000 Nicholas Christopoulos |
9 | |
10 | #if !defined(_sbfs_stream_h) |
11 | #define _sbfs_stream_h |
12 | |
13 | #include "common/sys.h" |
14 | #include "common/device.h" |
15 | |
16 | int stream_open(dev_file_t *f); |
17 | int stream_close(dev_file_t *f); |
18 | int stream_write(dev_file_t *f, byte *data, uint32_t size); |
19 | int stream_read(dev_file_t *f, byte *data, uint32_t size); |
20 | uint32_t stream_tell(dev_file_t *f); |
21 | uint32_t stream_length(dev_file_t *f); |
22 | uint32_t stream_seek(dev_file_t *f, uint32_t offset); |
23 | int stream_eof(dev_file_t *f); |
24 | |
25 | #endif |
26 |