From 183385ae0c88ad5d8c070560bad4bd937129fb45 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 1 Sep 2015 00:18:59 -0400 Subject: Add user plugins and Python plugin support --- binaryninjaapi.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 94857d52..5ede4758 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -145,6 +145,7 @@ namespace BinaryNinja class Architecture; class Type; + class DataBuffer; void Log(BNLogLevel level, const char* fmt, ...); void LogDebug(const char* fmt, ...); @@ -173,6 +174,18 @@ namespace BinaryNinja std::map>& functions, std::string& errors, const std::vector& includeDirs = std::vector()); + void InitCorePlugins(); + void InitUserPlugins(); + std::string GetBundledPluginDirectory(); + void SetBundledPluginDirectory(const std::string& path); + std::string GetUserPluginDirectory(); + + std::string GetPathRelativeToBundledPluginDirectory(const std::string& path); + std::string GetPathRelativeToUserPluginDirectory(const std::string& path); + + bool ExecuteWorkerProcess(const std::string& path, const std::vector& args, const DataBuffer& input, + std::string& output, std::string& errors); + class DataBuffer { BNDataBuffer* m_buffer; -- cgit v1.3.1