diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-07-29 22:12:59 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-07-29 22:12:59 -0400 |
| commit | 038d192dfb3f73a268447d890cccf27926d35941 (patch) | |
| tree | 87065866c86fd7416e520124b8a688d3da16883e /binaryninjaapi.h | |
| parent | 508584830e65fc08ea3a756dfa651670c9e01217 (diff) | |
Add API to set display type of integers
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 9 |
1 files changed, 8 insertions, 1 deletions
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<IndirectBranchInfo> GetIndirectBranchesAt(Architecture* arch, uint64_t addr); std::vector<std::vector<InstructionTextToken>> 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 |
