mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 05:47:37 +00:00
Put all FFI into same module
This commit is contained in:
parent
2ea1a47bec
commit
1be647a279
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user