Add initial bits for Qt6 support
[carla.git] / source / includes / clap / stream.h
blob20852d0336cd411e95fa1db7ed7eb2818cc01b77
1 #pragma once
3 #include "private/std.h"
4 #include "private/macros.h"
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
10 typedef struct clap_istream {
11 void *ctx; // reserved pointer for the stream
13 // returns the number of bytes read; 0 indicates end of file and -1 a read error
14 int64_t (CLAP_ABI *read)(const struct clap_istream *stream, void *buffer, uint64_t size);
15 } clap_istream_t;
17 typedef struct clap_ostream {
18 void *ctx; // reserved pointer for the stream
20 // returns the number of bytes written; -1 on write error
21 int64_t (CLAP_ABI *write)(const struct clap_ostream *stream, const void *buffer, uint64_t size);
22 } clap_ostream_t;
24 #ifdef __cplusplus
26 #endif