From b13d50bac18c341b98e6a3002ac9f17f6c8a8df4 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 28 May 2025 08:16:45 -0400 Subject: Eliminate jsoncpp usage from the AnalysisContext C++ API object. --- workflow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'workflow.cpp') diff --git a/workflow.cpp b/workflow.cpp index 9c1c7d20..b2648d3a 100644 --- a/workflow.cpp +++ b/workflow.cpp @@ -1,5 +1,4 @@ #include "binaryninjaapi.h" -#include "json/json.h" #include "rapidjsonwrapper.h" #include #include @@ -8,12 +7,10 @@ using namespace BinaryNinja; using namespace std; -AnalysisContext::AnalysisContext(BNAnalysisContext* analysisContext) : - m_reader(Json::CharReaderBuilder().newCharReader()) +AnalysisContext::AnalysisContext(BNAnalysisContext* analysisContext) { // LogError("API-Side AnalysisContext Constructed!"); m_object = analysisContext; - m_builder["indentation"] = ""; } @@ -104,6 +101,12 @@ void AnalysisContext::SetHighLevelILFunction(Ref highLevelI } +bool AnalysisContext::Inform(const char* request) +{ + return BNAnalysisContextInform(m_object, request); +} + + bool AnalysisContext::Inform(const string& request) { return BNAnalysisContextInform(m_object, request.c_str()); -- cgit v1.3.1