flapigen 0.11.1

Tool for connecting libraries written in Rust with other languages
Documentation
1
2
3
4
5
6
7
foreign_class!(
    class Foo {
        fn Foo::f1(cb: Option<extern "C" fn(::std::os::raw::c_int, *mut ::std::os::raw::c_void)>);
        fn Foo::f2(cb: Option<extern "C" fn(*mut ::std::os::raw::c_void)>);
        fn Foo::f3(cb: Option<extern "C" fn(*mut ::std::os::raw::c_void) -> ::std::os::raw::c_char>);
    }
);