summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2017-01-03 18:04:31 -0500
committerRusty Wagner <rusty@vector35.com>2017-01-03 18:04:31 -0500
commitd9455e8b6319ccb766a3a9f274244a54d159e7f4 (patch)
tree1dfe0f26200f41e72ea1bbe6333678ccf6b27a20 /binaryninjaapi.h
parent990cface5a0b9b814f423e45449a7d5f3cb6c19d (diff)
Tokenize types
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h9
1 files changed, 9 insertions, 0 deletions
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<InstructionTextToken> GetTokens() const;
+ std::vector<InstructionTextToken> GetTokensBeforeName() const;
+ std::vector<InstructionTextToken> GetTokensAfterName() const;
+
Ref<Type> Duplicate() const;
static Ref<Type> VoidType();