From a49c29b7aea694e41fb92b100325ce34affb413f Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Thu, 4 Sep 2025 14:40:53 -0700 Subject: [Swift] Initial skeleton of a plug-in for Swift support --- plugins/workflow_swift/src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugins/workflow_swift/src/lib.rs (limited to 'plugins/workflow_swift/src') diff --git a/plugins/workflow_swift/src/lib.rs b/plugins/workflow_swift/src/lib.rs new file mode 100644 index 00000000..b8ddb7a4 --- /dev/null +++ b/plugins/workflow_swift/src/lib.rs @@ -0,0 +1,16 @@ +use binaryninja::add_optional_plugin_dependency; + +#[no_mangle] +#[allow(non_snake_case)] +pub extern "C" fn CorePluginDependencies() { + add_optional_plugin_dependency("arch_x86"); + add_optional_plugin_dependency("arch_arm64"); +} + +#[no_mangle] +#[allow(non_snake_case)] +pub extern "C" fn CorePluginInit() -> bool { + binaryninja::tracing_init!("Plugin.Swift"); + + true +} -- cgit v1.3.1