summaryrefslogtreecommitdiff
path: root/rust/src/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/function.rs')
-rw-r--r--rust/src/function.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs
index 0a01f337..7af9ee02 100644
--- a/rust/src/function.rs
+++ b/rust/src/function.rs
@@ -287,6 +287,20 @@ impl Function {
Array::new(variables, count, ())
}
}
+
+ pub fn apply_imported_types(&self, sym: &Symbol, t: Option<&Type>) {
+ unsafe {
+ BNApplyImportedTypes(
+ self.handle,
+ sym.handle,
+ if let Some(t) = t {
+ t.handle
+ } else {
+ core::ptr::null_mut()
+ },
+ );
+ }
+ }
}
impl fmt::Debug for Function {