From 98c2b6f32e3181a3a3462c6bd41306ff674a515b Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 4 Aug 2021 11:09:16 -0400 Subject: Add query mode to flow graph reports. --- binaryninjaapi.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 9f7acf0f..0f49039f 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -3621,6 +3621,8 @@ __attribute__ ((format (printf, 1, 2))) static void FreeObjectCallback(void* ctxt); protected: + bool m_queryMode = false; + FlowGraph(BNFlowGraph* graph); void FinishPrepareForLayout(); @@ -3665,6 +3667,8 @@ __attribute__ ((format (printf, 1, 2))) void Show(const std::string& title); + virtual bool HasUpdates() const; + virtual Ref Update(); void SetOption(BNFlowGraphOption option, bool value = true); @@ -3675,6 +3679,7 @@ __attribute__ ((format (printf, 1, 2))) { public: CoreFlowGraph(BNFlowGraph* graph); + virtual bool HasUpdates() const override; virtual Ref Update() override; }; @@ -5355,6 +5360,8 @@ __attribute__ ((format (printf, 1, 2))) void AddHTMLReport(Ref view, const std::string& title, const std::string& contents, const std::string& plainText = ""); void AddGraphReport(Ref view, const std::string& title, Ref graph); + + void UpdateFlowGraph(size_t i, Ref graph); }; class InteractionHandler -- cgit v1.3.1