From 7977801957364139464406602038722124434273 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 15 Mar 2023 20:51:48 -0400 Subject: BinaryView::LookupImportedType* --- binaryninjaapi.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'binaryninjaapi.h') 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, 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, 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, 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 settings, -- cgit v1.3.1