py/stream: Add MP_STREAM_INIT_READER ioctl value.

Signed-off-by: Damien George <damien@micropython.org>
pull/8381/head
Damien George 2024-02-22 16:56:37 +11:00
rodzic 22f3f683a6
commit b7030fa1b8
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -44,6 +44,7 @@
#define MP_STREAM_SET_DATA_OPTS (9) // Set data/message options
#define MP_STREAM_GET_FILENO (10) // Get fileno of underlying file
#define MP_STREAM_GET_BUFFER_SIZE (11) // Get preferred buffer size for file
#define MP_STREAM_INIT_READER (12) // Initialise a mp_reader_t for this stream
// These poll ioctl values are compatible with Linux
#define MP_STREAM_POLL_RD (0x0001)