summaryrefslogtreecommitdiff
path: root/plugins/warp/src/plugin.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-23 13:26:05 -0400
committerPeter LaFosse <peter@vector35.com>2025-07-23 13:31:47 -0400
commit3169983a558d5cbc3632cbc549e2f379c3b0b7cb (patch)
tree4f116f3e5edc8307a06f0070e0919b346a691f68 /plugins/warp/src/plugin.rs
parent130f2c4d8bd16f6e218c1127e10c4d2c57bb2071 (diff)
[WARP] Generate function guids for mach-o objective-c binaries
Previously we only added the warp function activities to the meta workflow, however objective-c plugin currently registers its own workflow that we must add the activities to as well. Fixes https://github.com/Vector35/binaryninja-api/issues/7172
Diffstat (limited to 'plugins/warp/src/plugin.rs')
-rw-r--r--plugins/warp/src/plugin.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/warp/src/plugin.rs b/plugins/warp/src/plugin.rs
index 7f0481b8..3306801d 100644
--- a/plugins/warp/src/plugin.rs
+++ b/plugins/warp/src/plugin.rs
@@ -12,9 +12,9 @@ use binaryninja::background_task::BackgroundTask;
use binaryninja::command::{
register_command, register_command_for_function, register_command_for_project,
};
-use binaryninja::is_ui_enabled;
use binaryninja::logger::Logger;
use binaryninja::settings::Settings;
+use binaryninja::{add_optional_plugin_dependency, is_ui_enabled};
use log::LevelFilter;
use reqwest::StatusCode;
@@ -197,3 +197,9 @@ pub extern "C" fn CorePluginInit() -> bool {
true
}
+
+#[unsafe(no_mangle)]
+pub extern "C" fn CorePluginDependencies() {
+ // TODO: Remove this once the objectivec workflow is registered on the meta workflow.
+ add_optional_plugin_dependency("workflow_objc");
+}