From e1542ed05f3f8c273206bb9ead8d39fea87430bb Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 7 Feb 2024 17:19:24 -0500 Subject: Add ImportTypeLibraryTypeByGuid API and dialog --- binaryninjaapi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index e3a5ec4d..66bf0c21 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -5892,6 +5892,20 @@ namespace BinaryNinja { */ Ref ImportTypeLibraryObject(Ref& lib, const QualifiedName& name); + + /*! Recursively imports a type by guid from the current BinaryView's set of type libraries + + This API is dependent on the set of TypeLibraries for the current BinaryView's Platform, + having appropriate metadata to resolve the type by guid. The key "type_guids" must contain + a map(string(guid), string(type_name)) or + map(string(guid), tuple(sting(type_name), string(library_name))). + + \param guid + \return The type, or nullptr if it was not found + + */ + Ref ImportTypeLibraryTypeByGuid(const std::string& guid); + /*! Recursively exports ``type`` into ``lib`` as a type with name ``name`` As other referenced types are encountered, they are either copied into the destination type library or -- cgit v1.3.1