summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2015-09-04 20:12:16 -0400
committerRusty Wagner <rusty@vector35.com>2015-09-04 20:12:16 -0400
commit78ffcbed6e9153efccb85564a911e4ed90ffb634 (patch)
treeed95d97e1016a59471aba0b6841e295d57501c9e /binaryninjaapi.h
parentfd5865d110b484e7841713a679024c78ca4105c9 (diff)
Add type classes to Python API
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index abf4cf2a..61622c5a 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -165,14 +165,6 @@ namespace BinaryNinja
bool PreprocessSource(const std::string& source, const std::string& fileName,
std::string& output, std::string& errors,
const std::vector<std::string>& includeDirs = std::vector<std::string>());
- bool ParseTypesFromSource(Architecture* arch, const std::string& source, const std::string& fileName,
- std::map<std::string, Ref<Type>>& types, std::map<std::string, Ref<Type>>& variables,
- std::map<std::string, Ref<Type>>& functions, std::string& errors,
- const std::vector<std::string>& includeDirs = std::vector<std::string>());
- bool ParseTypesFromSourceFile(Architecture* arch, const std::string& fileName,
- std::map<std::string, Ref<Type>>& types, std::map<std::string, Ref<Type>>& variables,
- std::map<std::string, Ref<Type>>& functions, std::string& errors,
- const std::vector<std::string>& includeDirs = std::vector<std::string>());
void InitCorePlugins();
void InitUserPlugins();
@@ -930,6 +922,15 @@ namespace BinaryNinja
uint64_t GetBinaryViewTypeConstant(const std::string& type, const std::string& name,
uint64_t defaultValue = 0);
void SetBinaryViewTypeConstant(const std::string& type, const std::string& name, uint64_t value);
+
+ bool ParseTypesFromSource(const std::string& source, const std::string& fileName,
+ std::map<std::string, Ref<Type>>& types, std::map<std::string, Ref<Type>>& variables,
+ std::map<std::string, Ref<Type>>& functions, std::string& errors,
+ const std::vector<std::string>& includeDirs = std::vector<std::string>());
+ bool ParseTypesFromSourceFile(const std::string& fileName, std::map<std::string, Ref<Type>>& types,
+ std::map<std::string, Ref<Type>>& variables,
+ std::map<std::string, Ref<Type>>& functions, std::string& errors,
+ const std::vector<std::string>& includeDirs = std::vector<std::string>());
};
class CoreArchitecture: public Architecture
@@ -993,6 +994,7 @@ namespace BinaryNinja
bool IsConst() const;
bool IsFloat() const;
Ref<Type> GetChildType() const;
+ BNCallingConvention GetCallingConvention() const;
std::vector<NameAndType> GetParameters() const;
bool HasVariableArguments() const;
bool CanReturn() const;