diff options
| -rw-r--r-- | plugins/bntl_utils/src/tbd.rs | 0 | ||||
| -rw-r--r-- | python/typelibrary.py | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/plugins/bntl_utils/src/tbd.rs b/plugins/bntl_utils/src/tbd.rs new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/plugins/bntl_utils/src/tbd.rs diff --git a/python/typelibrary.py b/python/typelibrary.py index 65aabb12..14b882ea 100644 --- a/python/typelibrary.py +++ b/python/typelibrary.py @@ -139,6 +139,14 @@ class TypeLibrary: """Sets the name of a type library instance that has not been finalized""" core.BNSetTypeLibraryName(self.handle, value) + def duplicate(self) -> 'TypeLibrary': + """ + Creates a new type library instance with a random GUID and the same data as the current instance. + + :rtype: TypeLibrary + """ + return TypeLibrary(core.BNDuplicateTypeLibrary(self.handle)) + @property def dependency_name(self) -> Optional[str]: """ |
