mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 20:07:39 +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 set_log_level_state(level: LogLevel, enabled: bool);
|
||||||
fn cmdline_logging();
|
fn cmdline_logging();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#[cxx::bridge(namespace = "rust")]
|
#[namespace = "rust"]
|
||||||
pub mod ffi2 {
|
|
||||||
extern "Rust" {
|
extern "Rust" {
|
||||||
fn xpipe2(fds: &mut [i32; 2], flags: i32) -> i32;
|
fn xpipe2(fds: &mut [i32; 2], flags: i32) -> i32;
|
||||||
fn fd_path(fd: i32, buf: &mut [u8]) -> isize;
|
fn fd_path(fd: i32, buf: &mut [u8]) -> isize;
|
||||||
|
@ -13,10 +13,8 @@ pub mod ffi {
|
|||||||
fn magisk_logging();
|
fn magisk_logging();
|
||||||
fn zygisk_logging();
|
fn zygisk_logging();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#[cxx::bridge(namespace = "rust")]
|
#[namespace = "rust"]
|
||||||
pub mod ffi2 {
|
|
||||||
extern "Rust" {
|
extern "Rust" {
|
||||||
fn daemon_entry();
|
fn daemon_entry();
|
||||||
fn zygisk_entry();
|
fn zygisk_entry();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user