mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 13:16:44 +01:00
build suil with symbols; pass features correctly
This commit is contained in:
parent
cb181b0d86
commit
b1d8fc62a9
4 changed files with 57 additions and 26 deletions
|
|
@ -10,28 +10,20 @@ pub struct Instance(*mut self::bound::SuilInstance);
|
|||
impl Host {
|
||||
pub fn new () -> Self {
|
||||
Self(unsafe {
|
||||
let argv = &mut [] as *mut *mut *mut i8;
|
||||
bound::suil_init(&mut 0, argv, 0);
|
||||
let mut argv = [];
|
||||
bound::suil_init(
|
||||
&mut 0,
|
||||
&mut argv as *mut *mut *mut i8,
|
||||
0
|
||||
);
|
||||
bound::suil_host_new(
|
||||
Some(Self::write),
|
||||
Some(Self::index),
|
||||
Some(Self::subscribe),
|
||||
Some(Self::unsubscribe),
|
||||
Some(write),
|
||||
Some(index),
|
||||
None,
|
||||
None,
|
||||
)
|
||||
})
|
||||
}
|
||||
unsafe extern "C" fn write (
|
||||
_: *mut c_void, _: u32, _: u32, _: u32, _: *const c_void
|
||||
) {}
|
||||
unsafe extern "C" fn index (
|
||||
_: *mut c_void, _: *const i8
|
||||
) -> u32 {0}
|
||||
unsafe extern "C" fn subscribe (
|
||||
_: *mut c_void, _: u32, _: u32, _: *const *const bound::LV2_Feature
|
||||
) -> u32 {0}
|
||||
unsafe extern "C" fn unsubscribe (
|
||||
_: *mut c_void, _: u32, _: u32, _: *const *const bound::LV2_Feature
|
||||
) -> u32 {0}
|
||||
fn set_touch_func (&self) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
|
@ -68,6 +60,33 @@ impl Host {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe extern "C" fn write (
|
||||
_: *mut c_void, _: u32, _: u32, _: u32, _: *const c_void
|
||||
) {
|
||||
panic!("write")
|
||||
}
|
||||
|
||||
unsafe extern "C" fn index (
|
||||
_: *mut c_void, _: *const i8
|
||||
) -> u32 {
|
||||
panic!("index");
|
||||
0
|
||||
}
|
||||
|
||||
//unsafe extern "C" fn subscribe (
|
||||
//_: *mut c_void, _: u32, _: u32, _: *const *const bound::LV2_Feature
|
||||
//) -> u32 {
|
||||
//panic!("subscribe");
|
||||
//0
|
||||
//}
|
||||
|
||||
//unsafe extern "C" fn unsubscribe (
|
||||
//_: *mut c_void, _: u32, _: u32, _: *const *const bound::LV2_Feature
|
||||
//) -> u32 {
|
||||
//panic!("unsubscribe");
|
||||
//0
|
||||
//}
|
||||
|
||||
impl Drop for Host {
|
||||
fn drop (&mut self) -> () {
|
||||
unsafe {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue