From d9455e8b6319ccb766a3a9f274244a54d159e7f4 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 3 Jan 2017 18:04:31 -0500 Subject: Tokenize types --- binaryninjaapi.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 1d46bdc5..58f901ab 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -683,10 +683,15 @@ namespace BinaryNinja std::string text; uint64_t value; size_t size, operand; + BNInstructionTextTokenContext context; + uint64_t address; InstructionTextToken(); InstructionTextToken(BNInstructionTextTokenType type, const std::string& text, uint64_t value = 0, size_t size = 0, size_t operand = BN_INVALID_OPERAND); + InstructionTextToken(BNInstructionTextTokenType type, BNInstructionTextTokenContext context, + const std::string& text, uint64_t address, uint64_t value = 0, size_t size = 0, + size_t operand = BN_INVALID_OPERAND); }; struct DisassemblyTextLine @@ -1538,6 +1543,10 @@ namespace BinaryNinja std::string GetStringBeforeName() const; std::string GetStringAfterName() const; + std::vector GetTokens() const; + std::vector GetTokensBeforeName() const; + std::vector GetTokensAfterName() const; + Ref Duplicate() const; static Ref VoidType(); -- cgit v1.3.1