#[repr(C)]pub struct BNPluginCommand {Show 24 fields
pub name: *mut c_char,
pub description: *mut c_char,
pub type_: BNPluginCommandType,
pub context: *mut c_void,
pub defaultCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView)>,
pub addressCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, addr: u64)>,
pub rangeCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, addr: u64, len: u64)>,
pub functionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNFunction)>,
pub lowLevelILFunctionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNLowLevelILFunction)>,
pub lowLevelILInstructionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNLowLevelILFunction, instr: usize)>,
pub mediumLevelILFunctionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNMediumLevelILFunction)>,
pub mediumLevelILInstructionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNMediumLevelILFunction, instr: usize)>,
pub highLevelILFunctionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNHighLevelILFunction)>,
pub highLevelILInstructionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNHighLevelILFunction, instr: usize)>,
pub defaultIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView) -> bool>,
pub addressIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, addr: u64) -> bool>,
pub rangeIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, addr: u64, len: u64) -> bool>,
pub functionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNFunction) -> bool>,
pub lowLevelILFunctionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNLowLevelILFunction) -> bool>,
pub lowLevelILInstructionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNLowLevelILFunction, instr: usize) -> bool>,
pub mediumLevelILFunctionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNMediumLevelILFunction) -> bool>,
pub mediumLevelILInstructionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNMediumLevelILFunction, instr: usize) -> bool>,
pub highLevelILFunctionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNHighLevelILFunction) -> bool>,
pub highLevelILInstructionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNHighLevelILFunction, instr: usize) -> bool>,
}
Fields§
§name: *mut c_char
§description: *mut c_char
§type_: BNPluginCommandType
§context: *mut c_void
§defaultCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView)>
§addressCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, addr: u64)>
§rangeCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, addr: u64, len: u64)>
§functionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNFunction)>
§lowLevelILFunctionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNLowLevelILFunction)>
§lowLevelILInstructionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNLowLevelILFunction, instr: usize)>
§mediumLevelILFunctionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNMediumLevelILFunction)>
§mediumLevelILInstructionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNMediumLevelILFunction, instr: usize)>
§highLevelILFunctionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNHighLevelILFunction)>
§highLevelILInstructionCommand: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNHighLevelILFunction, instr: usize)>
§defaultIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView) -> bool>
§addressIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, addr: u64) -> bool>
§rangeIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, addr: u64, len: u64) -> bool>
§functionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNFunction) -> bool>
§lowLevelILFunctionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNLowLevelILFunction) -> bool>
§lowLevelILInstructionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNLowLevelILFunction, instr: usize) -> bool>
§mediumLevelILFunctionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNMediumLevelILFunction) -> bool>
§mediumLevelILInstructionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNMediumLevelILFunction, instr: usize) -> bool>
§highLevelILFunctionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNHighLevelILFunction) -> bool>
§highLevelILInstructionIsValid: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, func: *mut BNHighLevelILFunction, instr: usize) -> bool>
Trait Implementations§
source§impl Clone for BNPluginCommand
impl Clone for BNPluginCommand
source§fn clone(&self) -> BNPluginCommand
fn clone(&self) -> BNPluginCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BNPluginCommand
impl Debug for BNPluginCommand
source§impl Default for BNPluginCommand
impl Default for BNPluginCommand
impl Copy for BNPluginCommand
Auto Trait Implementations§
impl Freeze for BNPluginCommand
impl RefUnwindSafe for BNPluginCommand
impl !Send for BNPluginCommand
impl !Sync for BNPluginCommand
impl Unpin for BNPluginCommand
impl UnwindSafe for BNPluginCommand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)