From ece59d9114f566a0f364cf8c56d555b70952f70b Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 3 Feb 2022 21:45:09 -0500 Subject: Move TypeView::getLinesForType into core as Type::GetLines --- binaryninjacore.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'binaryninjacore.h') diff --git a/binaryninjacore.h b/binaryninjacore.h index 1062a244..25500d0b 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -1481,6 +1481,32 @@ extern "C" size_t count; }; + enum BNTypeDefinitionLineType + { + TypedefLineType, + StructDefinitionLineType, + StructFieldLineType, + StructDefinitionEndLineType, + EnumDefinitionLineType, + EnumMemberLineType, + EnumDefinitionEndLineType, + PaddingLineType, + UndefinedXrefLineType + }; + + struct BNTypeDefinitionLine + { + BNTypeDefinitionLineType lineType; + BNInstructionTextToken* tokens; + size_t count; + BNType* type; + BNType* rootType; + char* rootTypeName; + uint64_t offset; + size_t fieldIndex; + }; + + struct BNFlagConditionForSemanticClass { uint32_t semanticClass; @@ -5003,6 +5029,8 @@ extern "C" BINARYNINJACOREAPI bool BNAddTypeMemberTokens(BNType* type, BNBinaryView* data, BNInstructionTextToken** tokens, size_t* tokenCount, int64_t offset, char*** nameList, size_t* nameCount, size_t size, bool indirect); + BINARYNINJACOREAPI BNTypeDefinitionLine* BNGetTypeLines(BNType* type, BNBinaryView* data, const char* name, int lineWidth, bool collapsed, size_t* count); + BINARYNINJACOREAPI void BNFreeTypeDefinitionLineList(BNTypeDefinitionLine* list, size_t count); BINARYNINJACOREAPI BNQualifiedName BNTypeBuilderGetTypeName(BNTypeBuilder* nt); BINARYNINJACOREAPI void BNTypeBuilderSetTypeName(BNTypeBuilder* type, BNQualifiedName* name); -- cgit v1.3.1