diff options
Diffstat (limited to 'tests/ffi/lib.rs')
-rw-r--r-- | tests/ffi/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ffi/lib.rs b/tests/ffi/lib.rs index fcbe1530..25b4ccdc 100644 --- a/tests/ffi/lib.rs +++ b/tests/ffi/lib.rs @@ -157,6 +157,10 @@ pub mod ffi { fn c_take_ref_rust_vec_copy(v: &Vec<u8>); fn c_take_ref_shared_string(s: &SharedString) -> &SharedString; fn c_take_callback(callback: fn(String) -> usize); + fn c_take_callback_ref(callback: fn(&String)); + #[cxx_name = "c_take_callback_ref"] + fn c_take_callback_ref_lifetime<'a>(callback: fn(&'a String)); + fn c_take_callback_mut(callback: fn(&mut String)); fn c_take_enum(e: Enum); fn c_take_ns_enum(e: AEnum); fn c_take_nested_ns_enum(e: ABEnum); @@ -322,6 +326,7 @@ pub mod ffi { } impl Box<Shared> {} + impl CxxVector<SharedString> {} } mod other { |