BinaryNinja::CoreScriptingInstance Class Reference

Public Member Functions

 CoreScriptingInstance (BNScriptingInstance *instance)
 
virtual ~CoreScriptingInstance ()
 
virtual BNScriptingProviderExecuteResult ExecuteScriptInput (const std::string &input) override
 
virtual void CancelScriptInput () override
 
virtual void SetCurrentBinaryView (BinaryView *view) override
 
virtual void SetCurrentFunction (Function *func) override
 
virtual void SetCurrentBasicBlock (BasicBlock *block) override
 
virtual void SetCurrentAddress (uint64_t addr) override
 
virtual void SetCurrentSelection (uint64_t begin, uint64_t end) override
 
virtual std::string CompleteInput (const std::string &text, uint64_t state) override
 
virtual void Stop () override
 
- Public Member Functions inherited from BinaryNinja::ScriptingInstance
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 ()
 

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
 
- Protected Member Functions inherited from BinaryNinja::ScriptingInstance
 ScriptingInstance (ScriptingProvider *provider)
 
 ScriptingInstance (BNScriptingInstance *instance)
 
virtual void DestroyInstance ()
 
- Static Protected Member Functions inherited from BinaryNinja::ScriptingInstance
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)
 

Constructor & Destructor Documentation

◆ CoreScriptingInstance()

CoreScriptingInstance::CoreScriptingInstance ( BNScriptingInstance *  instance)

◆ ~CoreScriptingInstance()

virtual BinaryNinja::CoreScriptingInstance::~CoreScriptingInstance ( )
inlinevirtual

Member Function Documentation

◆ CancelScriptInput()

void CoreScriptingInstance::CancelScriptInput ( )
overridevirtual

Reimplemented from BinaryNinja::ScriptingInstance.

◆ CompleteInput()

std::string CoreScriptingInstance::CompleteInput ( const std::string &  text,
uint64_t  state 
)
overridevirtual

Reimplemented from BinaryNinja::ScriptingInstance.

◆ ExecuteScriptInput()

BNScriptingProviderExecuteResult CoreScriptingInstance::ExecuteScriptInput ( const std::string &  input)
overridevirtual

◆ SetCurrentAddress()

void CoreScriptingInstance::SetCurrentAddress ( uint64_t  addr)
overridevirtual

Reimplemented from BinaryNinja::ScriptingInstance.

◆ SetCurrentBasicBlock()

void CoreScriptingInstance::SetCurrentBasicBlock ( BasicBlock block)
overridevirtual

Reimplemented from BinaryNinja::ScriptingInstance.

◆ SetCurrentBinaryView()

void CoreScriptingInstance::SetCurrentBinaryView ( BinaryView view)
overridevirtual

Reimplemented from BinaryNinja::ScriptingInstance.

◆ SetCurrentFunction()

void CoreScriptingInstance::SetCurrentFunction ( Function func)
overridevirtual

Reimplemented from BinaryNinja::ScriptingInstance.

◆ SetCurrentSelection()

void CoreScriptingInstance::SetCurrentSelection ( uint64_t  begin,
uint64_t  end 
)
overridevirtual

Reimplemented from BinaryNinja::ScriptingInstance.

◆ Stop()

void CoreScriptingInstance::Stop ( )
overridevirtual

Reimplemented from BinaryNinja::ScriptingInstance.


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