
subrepo: subdir: "deps/clap-juce-extensions/clap-libs/clap" merged: "3189bdfaf" upstream: origin: "https://github.com/free-audio/clap" branch: "main" commit: "3189bdfaf" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
27 lines
654 B
C
27 lines
654 B
C
#pragma once
|
|
|
|
#include "private/std.h"
|
|
#include "private/macros.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct clap_istream {
|
|
void *ctx; // reserved pointer for the stream
|
|
|
|
// returns the number of bytes read; 0 indicates end of file and -1 a read error
|
|
int64_t (*read)(const struct clap_istream *stream, void *buffer, uint64_t size);
|
|
} clap_istream_t;
|
|
|
|
typedef struct clap_ostream {
|
|
void *ctx; // reserved pointer for the stream
|
|
|
|
// returns the number of bytes written; -1 on write error
|
|
int64_t (*write)(const struct clap_ostream *stream, const void *buffer, uint64_t size);
|
|
} clap_ostream_t;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|