summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2015-09-01 00:18:59 -0400
committerRusty Wagner <rusty@vector35.com>2015-09-01 16:45:32 -0400
commit183385ae0c88ad5d8c070560bad4bd937129fb45 (patch)
tree6fc220ec082d39540fa87d4ee01446388acf4b8e /binaryninjaapi.h
parentc0e76778ad4149565de0f2729c6c36464fb522f0 (diff)
Add user plugins and Python plugin support
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h13
1 files changed, 13 insertions, 0 deletions
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<std::string, Ref<Type>>& functions, std::string& errors,
const std::vector<std::string>& includeDirs = std::vector<std::string>());
+ 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<std::string>& args, const DataBuffer& input,
+ std::string& output, std::string& errors);
+
class DataBuffer
{
BNDataBuffer* m_buffer;