☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
cbindgen
/
tests
/
rust
/
function_ptr.rs
☽
☼
.cargo/vendor/cbindgen/tests/rust/function_ptr.rs
code
plain
raw
MPL-2.0
NONE
debian/copyright
1
pub type MyCallback = Option<unsafe extern "C" fn(a: usize, b: usize)>;
2
3
pub type MyOtherCallback = Option<unsafe extern "C" fn(a: usize, lot: usize, of: usize, args: usize, and_then_some: usize)>;
4
5
#[no_mangle]
6
pub extern "C" fn my_function(a: MyCallback, b: MyOtherCallback) {}