diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-07-27 02:51:23 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-07-27 03:31:06 -0400 |
| commit | 9a40763268a7859288875e1ab59a7cf7592529f6 (patch) | |
| tree | c49016ef209ea9f33097e37631e7d9501b71edd2 /binaryninjaapi.h | |
| parent | db64a9d125fee897a461fc2dcc26c5f680afa390 (diff) | |
Add APIs to add user types
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 1bdaab13..7a6b3280 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -891,6 +891,14 @@ namespace BinaryNinja DisassemblySettings* settings); bool ParseTypeString(const std::string& text, NameAndType& result, std::string& errors); + + std::map<std::string, Ref<Type>> GetTypes(); + Ref<Type> GetTypeByName(const std::string& name); + bool IsTypeAutoDefined(const std::string& name); + void DefineType(const std::string& name, Type* type); + void DefineUserType(const std::string& name, Type* type); + void UndefineType(const std::string& name); + void UndefineUserType(const std::string& name); }; class BinaryData: public BinaryView |
