mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-04 15:35:27 +00:00
22 lines
420 B
Rust
22 lines
420 B
Rust
#![feature(format_args_nl)]
|
|
|
|
pub use base;
|
|
pub use payload::*;
|
|
|
|
mod payload;
|
|
mod update_metadata;
|
|
|
|
#[cxx::bridge(namespace = "rust")]
|
|
pub mod ffi {
|
|
extern "C++" {
|
|
pub unsafe fn decompress(in_: *const u8, in_size: u64, fd: i32) -> bool;
|
|
}
|
|
|
|
extern "Rust" {
|
|
unsafe fn extract_boot_from_payload(
|
|
in_path: *const c_char,
|
|
out_path: *const c_char,
|
|
) -> bool;
|
|
}
|
|
}
|