From 7c0484defff7f1008f62e0181f81e19013531ff1 Mon Sep 17 00:00:00 2001 From: Max Stanchin <15954313+mostobriv@users.noreply.github.com> Date: Fri, 12 Dec 2025 01:32:47 +0700 Subject: Plugin api docs typos fix (#7751) --- python/plugin.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'python') diff --git a/python/plugin.py b/python/plugin.py index 9b7d1a3e..14732fd1 100644 --- a/python/plugin.py +++ b/python/plugin.py @@ -647,11 +647,11 @@ class PluginCommand(metaclass=_PluginCommandMetaClass): >>> def my_plugin(bv: BinaryView, func: MediumLevelILFunction): >>> log_info(f"My plugin was called on func {func} in bv `{bv}`") - >>> PluginCommand.register_for_low_level_il_function("My Plugin", "My plugin description (not used)", my_plugin) + >>> PluginCommand.register_for_medium_level_il_function("My Plugin", "My plugin description (not used)", my_plugin) True >>> def is_valid(bv: BinaryView, func: MediumLevelILFunction) -> bool: >>> return False - >>> PluginCommand.register_for_low_level_il_function("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid) + >>> PluginCommand.register_for_medium_level_il_function("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid) True .. warning:: Calling ``register_for_medium_level_il_function`` with the same function name will replace the existing function but will leak the memory of the original plugin. @@ -685,11 +685,11 @@ class PluginCommand(metaclass=_PluginCommandMetaClass): >>> def my_plugin(bv: BinaryView, inst: MediumLevelILInstruction): >>> log_info(f"My plugin was called on inst {inst} in bv `{bv}`") - >>> PluginCommand.register_for_low_level_il_instruction("My Plugin", "My plugin description (not used)", my_plugin) + >>> PluginCommand.register_for_medium_level_il_instruction("My Plugin", "My plugin description (not used)", my_plugin) True >>> def is_valid(bv: BinaryView, inst: MediumLevelILInstruction) -> bool: >>> return False - >>> PluginCommand.register_for_low_level_il_instruction("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid) + >>> PluginCommand.register_for_medium_level_il_instruction("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid) True .. warning:: Calling ``register_for_medium_level_il_instruction`` with the same function name will replace the existing function but will leak the memory of the original plugin. @@ -724,11 +724,11 @@ class PluginCommand(metaclass=_PluginCommandMetaClass): >>> def my_plugin(bv: BinaryView, func: HighLevelILFunction): >>> log_info(f"My plugin was called on func {func} in bv `{bv}`") - >>> PluginCommand.register_for_low_level_il_function("My Plugin", "My plugin description (not used)", my_plugin) + >>> PluginCommand.register_for_high_level_il_function("My Plugin", "My plugin description (not used)", my_plugin) True >>> def is_valid(bv: BinaryView, func: HighLevelILFunction) -> bool: >>> return False - >>> PluginCommand.register_for_low_level_il_function("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid) + >>> PluginCommand.register_for_high_level_il_function("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid) True .. warning:: Calling ``register_for_high_level_il_function`` with the same function name will replace the existing function but will leak the memory of the original plugin. @@ -762,11 +762,11 @@ class PluginCommand(metaclass=_PluginCommandMetaClass): >>> def my_plugin(bv: BinaryView, inst: HighLevelILInstruction): >>> log_info(f"My plugin was called on inst {inst} in bv `{bv}`") - >>> PluginCommand.register_for_low_level_il_instruction("My Plugin", "My plugin description (not used)", my_plugin) + >>> PluginCommand.register_for_high_level_il_instruction("My Plugin", "My plugin description (not used)", my_plugin) True >>> def is_valid(bv: BinaryView, inst: HighLevelILInstruction) -> bool: >>> return False - >>> PluginCommand.register_for_low_level_il_instruction("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid) + >>> PluginCommand.register_for_high_level_il_instruction("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid) True .. warning:: Calling ``register_for_high_level_il_instruction`` with the same function name will replace the existing function but will leak the memory of the original plugin. -- cgit v1.3.1