miasm
Reverse engineering framework
miasm.jitter.jitload.CallbackHandler Class Reference
Inheritance diagram for miasm.jitter.jitload.CallbackHandler:
Collaboration diagram for miasm.jitter.jitload.CallbackHandler:

Public Member Functions

def __init__ (self)
 
def add_callback (self, key, callback)
 
def set_callback (self, key, *args)
 
def get_callbacks (self, key)
 
def remove_callback (self, callback)
 
def has_callbacks (self, key)
 
def remove_key (self, key)
 
def call_callbacks (self, key, *args)
 
def __call__ (self, key, *args)
 

Public Attributes

 callbacks
 

Constructor & Destructor Documentation

◆ __init__()

def miasm.jitter.jitload.CallbackHandler.__init__ (   self)

Member Function Documentation

◆ __call__()

def miasm.jitter.jitload.CallbackHandler.__call__ (   self,
  key,
args 
)
Here is the call graph for this function:

◆ add_callback()

def miasm.jitter.jitload.CallbackHandler.add_callback (   self,
  key,
  callback 
)
Add a callback to the key @key, iff the @callback isn't already
assigned to it

◆ call_callbacks()

def miasm.jitter.jitload.CallbackHandler.call_callbacks (   self,
  key,
args 
)
Call callbacks associated to key 'key' with arguments args. While
callbacks return True, continue with next callback.
Iterator on other results.

Reimplemented in miasm.jitter.jitload.CallbackHandlerBitflag.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_callbacks()

def miasm.jitter.jitload.CallbackHandler.get_callbacks (   self,
  key 
)
Here is the caller graph for this function:

◆ has_callbacks()

def miasm.jitter.jitload.CallbackHandler.has_callbacks (   self,
  key 
)

◆ remove_callback()

def miasm.jitter.jitload.CallbackHandler.remove_callback (   self,
  callback 
)
Remove the callback from the list.
Return the list of empty keys (removed)

◆ remove_key()

def miasm.jitter.jitload.CallbackHandler.remove_key (   self,
  key 
)
Remove and return all callbacks associated to @key

◆ set_callback()

def miasm.jitter.jitload.CallbackHandler.set_callback (   self,
  key,
args 
)

Member Data Documentation

◆ callbacks

miasm.jitter.jitload.CallbackHandler.callbacks

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