1use std::ffi::c_void;
2
3#[repr(C)]
4#[derive(Debug, Copy, Clone)]
5pub struct clap_istream {
6 pub ctx: *mut c_void,
7 pub read: Option<
8 unsafe extern "C" fn(stream: *const clap_istream, buffer: *mut c_void, size: u64) -> i64,
9 >,
10}
11
12unsafe impl Send for clap_istream {}
13unsafe impl Sync for clap_istream {}
14
15#[repr(C)]
16#[derive(Debug, Copy, Clone)]
17pub struct clap_ostream {
18 pub ctx: *mut c_void,
19 pub write: Option<
20 unsafe extern "C" fn(stream: *const clap_ostream, buffer: *const c_void, size: u64) -> i64,
21 >,
22}
23
24unsafe impl Send for clap_ostream {}
25unsafe impl Sync for clap_ostream {}