diff options
| author | Brian Potchik <brian@vector35.com> | 2025-05-28 08:16:45 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-05-28 08:16:45 -0400 |
| commit | b13d50bac18c341b98e6a3002ac9f17f6c8a8df4 (patch) | |
| tree | b097fb768e97a9c9bd049605a162eec5631969d7 /workflow.cpp | |
| parent | d5080db92c4081f15629aade5ac0ae7ce23c32bc (diff) | |
Eliminate jsoncpp usage from the AnalysisContext C++ API object.
Diffstat (limited to 'workflow.cpp')
| -rw-r--r-- | workflow.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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 <string> #include <variant> @@ -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<HighLevelILFunction> 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()); |
