summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 0348c52b..05924070 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -1198,6 +1198,13 @@ __attribute__ ((format (printf, 1, 2)))
class Tag;
+ struct DisassemblyTextLineTypeInfo
+ {
+ bool hasTypeInfo;
+ BinaryNinja::Ref<BinaryNinja::Type> parentType;
+ size_t fieldIndex;
+ };
+
struct DisassemblyTextLine
{
uint64_t addr;
@@ -1205,6 +1212,7 @@ __attribute__ ((format (printf, 1, 2)))
std::vector<InstructionTextToken> tokens;
BNHighlightColor highlight;
std::vector<Ref<Tag>> tags;
+ DisassemblyTextLineTypeInfo typeInfo;
DisassemblyTextLine();
};
@@ -2500,6 +2508,8 @@ __attribute__ ((format (printf, 1, 2)))
QualifiedName GetStructureName() const;
Ref<NamedTypeReference> GetRegisteredName() const;
+ BNIntegerDisplayType GetIntegerTypeDisplayType() const;
+
uint64_t GetElementCount() const;
uint64_t GetOffset() const;
@@ -2597,6 +2607,7 @@ __attribute__ ((format (printf, 1, 2)))
Confidence<bool> IsSigned() const;
Confidence<bool> IsConst() const;
Confidence<bool> IsVolatile() const;
+ void SetIntegerTypeDisplayType(BNIntegerDisplayType displayType);
Confidence<Ref<Type>> GetChildType() const;
Confidence<Ref<CallingConvention>> GetCallingConvention() const;
@@ -5289,7 +5300,8 @@ __attribute__ ((format (printf, 1, 2)))
bool hasAutoAnnotations,
const std::string& leadingSpaces=" ",
const std::string& indentSpaces="");
- static std::string GetDisplayStringForInteger(Ref<BinaryView> binaryView, BNIntegerDisplayType type, uint64_t value, size_t inputWidth);
+ static std::string GetDisplayStringForInteger(Ref<BinaryView> binaryView, BNIntegerDisplayType type,
+ uint64_t value, size_t inputWidth, bool isSigned = true);
};
struct LinearViewObjectIdentifier