Put all FFI into same module

This commit is contained in:
topjohnwu 2023-05-16 02:09:05 -07:00
parent 2ea1a47bec
commit 1be647a279
2 changed files with 2 additions and 6 deletions

View File

@ -30,10 +30,8 @@ pub mod ffi {
fn set_log_level_state(level: LogLevel, enabled: bool);
fn cmdline_logging();
}
}
#[cxx::bridge(namespace = "rust")]
pub mod ffi2 {
#[namespace = "rust"]
extern "Rust" {
fn xpipe2(fds: &mut [i32; 2], flags: i32) -> i32;
fn fd_path(fd: i32, buf: &mut [u8]) -> isize;

View File

@ -13,10 +13,8 @@ pub mod ffi {
fn magisk_logging();
fn zygisk_logging();
}
}
#[cxx::bridge(namespace = "rust")]
pub mod ffi2 {
#[namespace = "rust"]
extern "Rust" {
fn daemon_entry();
fn zygisk_entry();