Move hexpatch to Rust

This commit is contained in:
topjohnwu
2023-06-20 18:17:26 -07:00
parent 5805573625
commit 399b9e5eba
13 changed files with 78 additions and 39 deletions
+3
View File
@@ -3,9 +3,11 @@
pub use base;
use cpio::*;
use patch::*;
use payload::*;
mod cpio;
mod patch;
mod payload;
// Suppress warnings in generated code
#[allow(warnings)]
@@ -31,5 +33,6 @@ pub mod ffi {
) -> bool;
unsafe fn cpio_commands(argc: i32, argv: *const *const c_char) -> bool;
fn hexpatch(file: &[u8], from: &[u8], to: &[u8]) -> bool;
}
}