diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-04-14 17:25:29 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-06-21 14:51:14 -0400 |
| commit | 63e72efd13b31c1d2061b978e2a5f4688e7ba4fd (patch) | |
| tree | c74a04f126b76051792ab2be294d34e909d003b3 /binaryninjaapi.h | |
| parent | 34e5803d69fea165da55da518ffaddfb7344ed00 (diff) | |
Add Analysis::GetTypeByRef, which searches for types by id/name
Due to bugs, sometimes named types will not have a correct id, leading to bugs
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index a50fcc62..bfa94d6f 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1737,6 +1737,7 @@ namespace BinaryNinja { struct PossibleValueSet; class Metadata; class Structure; + class NamedTypeReference; struct TypeParserResult; class QueryMetadataException : public std::exception @@ -2121,6 +2122,7 @@ namespace BinaryNinja { std::map<QualifiedName, Ref<Type>> GetTypes(); std::vector<QualifiedName> GetTypeNames(const std::string& matching = ""); Ref<Type> GetTypeByName(const QualifiedName& name); + Ref<Type> GetTypeByRef(Ref<NamedTypeReference> name); Ref<Type> GetTypeById(const std::string& id); std::string GetTypeId(const QualifiedName& name); QualifiedName GetTypeNameById(const std::string& id); |
