BinaryNinja::ScriptingInstance Class Referenceabstract

Public Member Functions

virtual BNScriptingProviderExecuteResult ExecuteScriptInput (const std::string &input)=0
 
virtual void CancelScriptInput ()
 
virtual void SetCurrentBinaryView (BinaryView *view)
 
virtual void SetCurrentFunction (Function *func)
 
virtual void SetCurrentBasicBlock (BasicBlock *block)
 
virtual void SetCurrentAddress (uint64_t addr)
 
virtual void SetCurrentSelection (uint64_t begin, uint64_t end)
 
virtual std::string CompleteInput (const std::string &text, uint64_t state)
 
virtual void Stop ()
 
void Output (const std::string &text)
 
void Error (const std::string &text)
 
void InputReadyStateChanged (BNScriptingProviderInputReadyState state)
 
BNScriptingProviderInputReadyState GetInputReadyState ()
 
void RegisterOutputListener (ScriptingOutputListener *listener)
 
void UnregisterOutputListener (ScriptingOutputListener *listener)
 
std::string GetDelimiters ()
 
void SetDelimiters (const std::string &delimiters)
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNScriptingInstance, BNNewScriptingInstanceReference, BNFreeScriptingInstance >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNScriptingInstance * GetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 

Protected Member Functions

 ScriptingInstance (ScriptingProvider *provider)
 
 ScriptingInstance (BNScriptingInstance *instance)
 
virtual void DestroyInstance ()
 

Static Protected Member Functions

static void DestroyInstanceCallback (void *ctxt)
 
static BNScriptingProviderExecuteResult ExecuteScriptInputCallback (void *ctxt, const char *input)
 
static void CancelScriptInputCallback (void *ctxt)
 
static void SetCurrentBinaryViewCallback (void *ctxt, BNBinaryView *view)
 
static void SetCurrentFunctionCallback (void *ctxt, BNFunction *func)
 
static void SetCurrentBasicBlockCallback (void *ctxt, BNBasicBlock *block)
 
static void SetCurrentAddressCallback (void *ctxt, uint64_t addr)
 
static void SetCurrentSelectionCallback (void *ctxt, uint64_t begin, uint64_t end)
 
static char * CompleteInputCallback (void *ctxt, const char *text, uint64_t state)
 
static void StopCallback (void *ctxt)
 

Additional Inherited Members

- Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNScriptingInstance, BNNewScriptingInstanceReference, BNFreeScriptingInstance >
static BNScriptingInstance * GetObject (CoreRefCountObject *obj)
 
- Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNScriptingInstance, BNNewScriptingInstanceReference, BNFreeScriptingInstance >
std::atomic< int > m_refs
 
bool m_registeredRef
 
BNScriptingInstance * m_object
 

Constructor & Destructor Documentation

◆ ScriptingInstance() [1/2]

ScriptingInstance::ScriptingInstance ( ScriptingProvider provider)
protected

◆ ScriptingInstance() [2/2]

ScriptingInstance::ScriptingInstance ( BNScriptingInstance *  instance)
protected

Member Function Documentation

◆ CancelScriptInput()

void ScriptingInstance::CancelScriptInput ( )
virtual

◆ CancelScriptInputCallback()

void ScriptingInstance::CancelScriptInputCallback ( void *  ctxt)
staticprotected

◆ CompleteInput()

std::string ScriptingInstance::CompleteInput ( const std::string &  text,
uint64_t  state 
)
virtual

◆ CompleteInputCallback()

char * ScriptingInstance::CompleteInputCallback ( void *  ctxt,
const char *  text,
uint64_t  state 
)
staticprotected

◆ DestroyInstance()

void ScriptingInstance::DestroyInstance ( )
protectedvirtual

◆ DestroyInstanceCallback()

void ScriptingInstance::DestroyInstanceCallback ( void *  ctxt)
staticprotected

◆ Error()

void ScriptingInstance::Error ( const std::string &  text)

◆ ExecuteScriptInput()

virtual BNScriptingProviderExecuteResult BinaryNinja::ScriptingInstance::ExecuteScriptInput ( const std::string &  input)
pure virtual

◆ ExecuteScriptInputCallback()

BNScriptingProviderExecuteResult ScriptingInstance::ExecuteScriptInputCallback ( void *  ctxt,
const char *  input 
)
staticprotected

◆ GetDelimiters()

std::string ScriptingInstance::GetDelimiters ( )

◆ GetInputReadyState()

BNScriptingProviderInputReadyState ScriptingInstance::GetInputReadyState ( )

◆ InputReadyStateChanged()

void ScriptingInstance::InputReadyStateChanged ( BNScriptingProviderInputReadyState  state)

◆ Output()

void ScriptingInstance::Output ( const std::string &  text)

◆ RegisterOutputListener()

void ScriptingInstance::RegisterOutputListener ( ScriptingOutputListener listener)

◆ SetCurrentAddress()

void ScriptingInstance::SetCurrentAddress ( uint64_t  addr)
virtual

◆ SetCurrentAddressCallback()

void ScriptingInstance::SetCurrentAddressCallback ( void *  ctxt,
uint64_t  addr 
)
staticprotected

◆ SetCurrentBasicBlock()

void ScriptingInstance::SetCurrentBasicBlock ( BasicBlock block)
virtual

◆ SetCurrentBasicBlockCallback()

void ScriptingInstance::SetCurrentBasicBlockCallback ( void *  ctxt,
BNBasicBlock *  block 
)
staticprotected

◆ SetCurrentBinaryView()

void ScriptingInstance::SetCurrentBinaryView ( BinaryView view)
virtual

◆ SetCurrentBinaryViewCallback()

void ScriptingInstance::SetCurrentBinaryViewCallback ( void *  ctxt,
BNBinaryView *  view 
)
staticprotected

◆ SetCurrentFunction()

void ScriptingInstance::SetCurrentFunction ( Function func)
virtual

◆ SetCurrentFunctionCallback()

void ScriptingInstance::SetCurrentFunctionCallback ( void *  ctxt,
BNFunction *  func 
)
staticprotected

◆ SetCurrentSelection()

void ScriptingInstance::SetCurrentSelection ( uint64_t  begin,
uint64_t  end 
)
virtual

◆ SetCurrentSelectionCallback()

void ScriptingInstance::SetCurrentSelectionCallback ( void *  ctxt,
uint64_t  begin,
uint64_t  end 
)
staticprotected

◆ SetDelimiters()

void ScriptingInstance::SetDelimiters ( const std::string &  delimiters)

◆ Stop()

void ScriptingInstance::Stop ( )
virtual

◆ StopCallback()

void ScriptingInstance::StopCallback ( void *  ctxt)
staticprotected

◆ UnregisterOutputListener()

void ScriptingInstance::UnregisterOutputListener ( ScriptingOutputListener listener)

The documentation for this class was generated from the following files: