summaryrefslogtreecommitdiff
path: root/python/typelibrary.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-03-23 14:42:27 -0400
committerPeter LaFosse <peter@vector35.com>2022-03-23 14:52:09 -0400
commit790c79b1811d1a87e3a86e2ead892dddcc8b6b8f (patch)
tree88b10ae6bee14b166db2958060c7ab7c2011b0ff /python/typelibrary.py
parent5646f03f9a61feb24584a8a5da94027783b16e5a (diff)
Add BNAddTypeLibraryNamedTypeSource API
Diffstat (limited to 'python/typelibrary.py')
-rw-r--r--python/typelibrary.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/typelibrary.py b/python/typelibrary.py
index 2d2c8fb1..0a7bbccc 100644
--- a/python/typelibrary.py
+++ b/python/typelibrary.py
@@ -307,6 +307,15 @@ class TypeLibrary:
raise ValueError("parameter type must be a Type")
core.BNAddTypeLibraryNamedType(self.handle, name._to_core_struct(), type.handle)
+ def add_type_source(self, name: types.QualifiedName, source: str) -> None:
+ """
+ Manually flag NamedTypeReferences to the given QualifiedName as originating from another source
+ TypeLibrary with the given dependency name.
+
+ .. warning:: Use this api with extreme caution.
+ """
+ core.BNAddTypeLibraryNamedTypeSource(self.handle, QualifiedName(name)._to_core_struct(), source)
+
def get_named_object(self, name: str) -> Optional[types.Type]:
"""
`get_named_object` direct extracts a reference to a contained object -- when