From 13491e5eb8d50c242cf6858b111e404ea9f79239 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 22 Jul 2016 03:00:52 -0400 Subject: Add API to set type of function --- binaryninjaapi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index b4606596..85a0fc41 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -679,6 +679,8 @@ namespace BinaryNinja bool autoDiscovered; }; + struct NameAndType; + /*! BinaryView is the base class for creating views on binary data (e.g. ELF, PE, Mach-O). BinaryView should be subclassed to create a new BinaryView */ @@ -887,6 +889,8 @@ namespace BinaryNinja DisassemblySettings* settings); std::vector GetNextLinearDisassemblyLines(LinearDisassemblyPosition& pos, DisassemblySettings* settings); + + bool ParseTypeString(const std::string& text, NameAndType& result, std::string& errors); }; class BinaryData: public BinaryView @@ -1612,6 +1616,8 @@ namespace BinaryNinja std::set GetFlagsWrittenByLiftedILInstruction(size_t i); Ref GetType() const; + void SetAutoType(Type* type); + void SetUserType(Type* type); void ApplyImportedTypes(Symbol* sym); void ApplyAutoDiscoveredType(Type* type); -- cgit v1.3.1