diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-03-15 20:51:48 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2023-03-29 20:34:14 -0400 |
| commit | 7977801957364139464406602038722124434273 (patch) | |
| tree | 6ddcaba6992061f10932688a0dddafb8020953d4 /binaryninjaapi.h | |
| parent | 3911076326059945990138870942693848884934 (diff) | |
BinaryView::LookupImportedType*
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 98790d37..92898ae4 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -4560,6 +4560,14 @@ namespace BinaryNinja { void RegisterPlatformTypes(Platform* platform); + /*! Gives you details of which platform and name was imported to result in the given type name. + + \param name Name of type in the binary view + \return A pair with the platform and the name of the type in the platform, + or std::nullopt if it was not imported + */ + std::optional<std::pair<Ref<Platform>, QualifiedName>> LookupImportedTypePlatform(const QualifiedName& name); + /*! Make the contents of a type library available for type/import resolution \param lib library to register with the view @@ -4645,6 +4653,14 @@ namespace BinaryNinja { */ std::optional<std::pair<Ref<TypeLibrary>, QualifiedName>> LookupImportedObjectLibrary(Platform* tgtPlatform, uint64_t tgtAddr); + /*! Gives you details of which type library and name was imported to result in the given type name. + + \param name Name of type in the binary view + \return A pair with the library and the name of the type in the library, + or std::nullopt if it was not imported + */ + std::optional<std::pair<Ref<TypeLibrary>, QualifiedName>> LookupImportedTypeLibrary(const QualifiedName& name); + bool FindNextData( uint64_t start, const DataBuffer& data, uint64_t& result, BNFindFlag flags = FindCaseSensitive); bool FindNextText(uint64_t start, const std::string& data, uint64_t& result, Ref<DisassemblySettings> settings, |
