From ad27532d344d3bf2995f623002753d2845c6ce20 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Mon, 18 Jul 2022 19:53:47 -0400 Subject: [Rust API] Add support for Metadata --- rust/src/lib.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'rust/src/lib.rs') diff --git a/rust/src/lib.rs b/rust/src/lib.rs index d1181bb4..c91c9792 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -146,6 +146,7 @@ pub mod headless; pub mod interaction; pub mod linearview; pub mod llil; +pub mod metadata; pub mod platform; pub mod rc; pub mod section; @@ -362,11 +363,7 @@ pub fn open_view>(filename: F) -> Result>(filename: F) -> Result>( if is_bndb { let view = view - .metadata() + .file() .open_database(filename.to_str().unwrap()) .expect("Couldn't open database"); let view_type_name = view_type.name(); - let bv = match view.metadata().get_view_of_type(view_type_name) { + let bv = match view.file().get_view_of_type(view_type_name) { Ok(bv) => bv, _ => view, }; -- cgit v1.3.1