diff options
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 85dedca7..8d3fed9c 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -4554,6 +4554,13 @@ namespace BinaryNinja { BNRegisterValue ToAPIObject(); }; + struct AllTypeReferences + { + std::vector<ReferenceSource> codeRefs; + std::vector<uint64_t> dataRefs; + std::vector<TypeReferenceSource> typeRefs; + }; + struct AllTypeFieldReferences { std::vector<TypeFieldReference> codeRefs; @@ -5654,6 +5661,13 @@ namespace BinaryNinja { */ std::vector<TypeReferenceSource> GetTypeReferencesForTypeField(const QualifiedName& type, uint64_t offset); + /*! Returns a all references to a specific type. This includes code, data, and type references. + + \param type QualifiedName of the type + \return AllTypeReferences structure with all references + */ + AllTypeReferences GetAllReferencesForType(const QualifiedName& type); + /*! Returns a all references to a specific type field. This includes code, data, and type references. \param type QualifiedName of the type |
