예제 #1
0
 def _update(self, ctxt):
     try:
         graph = self.update()
         if graph is None:
             return None
         return core.BNNewFlowGraphReference(graph.handle)
     except:
         log.log_error(traceback.format_exc())
         return None
예제 #2
0
	def _update(self, ctxt):
		try:
			graph = self.update()
			if graph is None:
				return None
			return ctypes.cast(core.BNNewFlowGraphReference(graph.handle), ctypes.c_void_p).value
		except:
			log.log_error(traceback.format_exc())
			return None
예제 #3
0
	def _show_graph_report(self, ctxt, view, title, graph):
		try:
			if view:
				view = binaryview.BinaryView(handle = core.BNNewViewReference(view))
			else:
				view = None
			self.show_graph_report(view, title, flowgraph.CoreFlowGraph(core.BNNewFlowGraphReference(graph)))
		except:
			log.log_error(traceback.format_exc())