From 9a40763268a7859288875e1ab59a7cf7592529f6 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Wed, 27 Jul 2016 02:51:23 -0400 Subject: Add APIs to add user types --- binaryninjaapi.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'binaryninjaapi.h') 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> GetTypes(); + Ref 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 -- cgit v1.3.1