You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Consolidate for_each implementation into Rust
This commit is contained in:
@@ -47,6 +47,12 @@ pub mod ffi {
|
||||
|
||||
fn mut_u8_patch(buf: &mut [u8], from: &[u8], to: &[u8]) -> Vec<usize>;
|
||||
fn fork_dont_care() -> i32;
|
||||
|
||||
type FnBoolStrStr;
|
||||
fn call(self: &FnBoolStrStr, key: &str, value: &str) -> bool;
|
||||
|
||||
type FnBoolString;
|
||||
fn call(self: &FnBoolString, key: &mut String) -> bool;
|
||||
}
|
||||
|
||||
extern "Rust" {
|
||||
@@ -56,6 +62,8 @@ pub mod ffi {
|
||||
fn set_log_level_state_cxx(level: LogLevelCxx, enabled: bool);
|
||||
fn exit_on_error(b: bool);
|
||||
fn cmdline_logging();
|
||||
fn parse_prop_file_rs(name: Utf8CStrRef, f: &FnBoolStrStr);
|
||||
fn file_readline_rs(fd: i32, f: &FnBoolString);
|
||||
}
|
||||
|
||||
#[namespace = "rust"]
|
||||
|
||||
Reference in New Issue
Block a user