summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2024-02-07 17:19:24 -0500
committerPeter LaFosse <peter@vector35.com>2024-02-07 17:19:34 -0500
commite1542ed05f3f8c273206bb9ead8d39fea87430bb (patch)
treec7927fe2b3a4cd0122ee8f95727d75fcefb0017a /binaryninjaapi.h
parentf5ceadd9baddaa55111d6112e487428363fe981f (diff)
Add ImportTypeLibraryTypeByGuid API and dialog
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h14
1 files changed, 14 insertions, 0 deletions
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<Type> ImportTypeLibraryObject(Ref<TypeLibrary>& 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<Type> 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