From 038d192dfb3f73a268447d890cccf27926d35941 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 29 Jul 2016 22:12:59 -0400 Subject: Add API to set display type of integers --- binaryninjaapi.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 81bf571a..d5d12dce 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -629,9 +629,11 @@ namespace BinaryNinja BNInstructionTextTokenType type; std::string text; uint64_t value; + size_t size, operand; InstructionTextToken(); - InstructionTextToken(BNInstructionTextTokenType type, const std::string& text, uint64_t value = 0); + InstructionTextToken(BNInstructionTextTokenType type, const std::string& text, uint64_t value = 0, + size_t size = 0, size_t operand = BN_INVALID_OPERAND); }; struct DisassemblyTextLine @@ -1646,6 +1648,11 @@ namespace BinaryNinja std::vector GetIndirectBranchesAt(Architecture* arch, uint64_t addr); std::vector> GetBlockAnnotations(Architecture* arch, uint64_t addr); + + BNIntegerDisplayType GetIntegerConstantDisplayType(Architecture* arch, uint64_t instrAddr, uint64_t value, + size_t operand); + void SetIntegerConstantDisplayType(Architecture* arch, uint64_t instrAddr, uint64_t value, size_t operand, + BNIntegerDisplayType type); }; struct FunctionGraphEdge -- cgit v1.3.1