Skip to content

Commit 31ec051

Browse files
committed
[Rust] Refactor download provider module to allow for custom implementations
1 parent 058800a commit 31ec051

File tree

9 files changed

+756
-341
lines changed

9 files changed

+756
-341
lines changed

plugins/dwarf/dwarf_import/src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use binaryninja::file_metadata::FileMetadata;
2222
use binaryninja::Endianness;
2323
use binaryninja::{
2424
binary_view::{BinaryView, BinaryViewExt},
25-
download_provider::{DownloadInstanceInputOutputCallbacks, DownloadProvider},
25+
download::{DownloadInstanceInputOutputCallbacks, DownloadProvider},
2626
rc::Ref,
2727
settings::Settings,
2828
};

plugins/pdb-ng/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use pdb::PDB;
2626

2727
use binaryninja::binary_view::{BinaryView, BinaryViewBase, BinaryViewExt};
2828
use binaryninja::debuginfo::{CustomDebugInfoParser, DebugInfo, DebugInfoParser};
29-
use binaryninja::download_provider::{DownloadInstanceInputOutputCallbacks, DownloadProvider};
29+
use binaryninja::download::{DownloadInstanceInputOutputCallbacks, DownloadProvider};
3030
use binaryninja::interaction::{MessageBoxButtonResult, MessageBoxButtonSet};
3131
use binaryninja::logger::Logger;
3232
use binaryninja::settings::{QueryOptions, Settings};

rust/src/download.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//! Interface for registering new download providers
2+
//!
3+
//! WARNING: Do _not_ use this for anything other than provider registration. If you need to perform
4+
//! http requests, use a real requests library.
5+
6+
mod instance;
7+
mod provider;
8+
9+
pub use instance::*;
10+
pub use provider::*;

0 commit comments

Comments
 (0)