2022-07-01 04:53:41 -07:00
|
|
|
pub use base;
|
2023-05-09 18:54:38 -07:00
|
|
|
use daemon::*;
|
2022-07-24 06:14:49 -07:00
|
|
|
use logging::*;
|
2022-07-05 21:13:09 -07:00
|
|
|
|
2023-05-09 18:54:38 -07:00
|
|
|
mod daemon;
|
2022-07-05 21:13:09 -07:00
|
|
|
mod logging;
|
2022-07-01 04:53:41 -07:00
|
|
|
|
|
|
|
#[cxx::bridge]
|
|
|
|
pub mod ffi {
|
|
|
|
extern "Rust" {
|
|
|
|
fn rust_test_entry();
|
2022-07-05 21:13:09 -07:00
|
|
|
fn android_logging();
|
|
|
|
fn magisk_logging();
|
|
|
|
fn zygisk_logging();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-09 18:54:38 -07:00
|
|
|
#[cxx::bridge(namespace = "rust")]
|
|
|
|
pub mod ffi2 {
|
|
|
|
extern "Rust" {
|
|
|
|
fn daemon_entry();
|
|
|
|
fn zygisk_entry();
|
|
|
|
|
|
|
|
type MagiskD;
|
|
|
|
fn get_magiskd() -> &'static MagiskD;
|
|
|
|
fn get_log_pipe(self: &MagiskD) -> i32;
|
|
|
|
fn close_log_pipe(self: &MagiskD);
|
|
|
|
fn setup_logfile(self: &MagiskD);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-01 04:53:41 -07:00
|
|
|
fn rust_test_entry() {}
|