summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2024-02-11 11:30:41 -0500
committerPeter LaFosse <peter@vector35.com>2024-02-11 11:30:41 -0500
commit44d8b535bd12b81110d3a0826b895bd0d5657f2b (patch)
tree59f1f182c11ba172c29aebaf35771b9016ac8a36 /binaryninjaapi.h
parentddce31c8d62c7ce0a385e5af65b0134c56e3b6c8 (diff)
Add BinaryView::GetTypeNameByGuid API
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 39a0be59..d412464d 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -5943,6 +5943,14 @@ namespace BinaryNinja {
*/
Ref<Type> ImportTypeLibraryTypeByGuid(const std::string& guid);
+
+ /* Looks up the name of a type by its guid in the current BinaryView's set of type libraries
+
+ \param guid
+ \return The QualifedName of the type or std::nullopt if it was not found
+ */
+ std::optional<QualifiedName> GetTypeNameByGuid(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