diff options
| author | Peter LaFosse <peter@vector35.com> | 2024-01-12 16:55:19 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2024-01-15 08:50:51 -0500 |
| commit | ecfc518d025359e7d2cf7e5da30f856916bf48b4 (patch) | |
| tree | 1142480ecbd1ddabe3c2e1893441226619749e50 /typelibrary.cpp | |
| parent | 0747711195517010294963997446673189669493 (diff) | |
Add APIs for getting the the base Metadata object for BinaryViews and TypeLibraries
Diffstat (limited to 'typelibrary.cpp')
| -rw-r--r-- | typelibrary.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/typelibrary.cpp b/typelibrary.cpp index 2e7c15d1..b3c1293b 100644 --- a/typelibrary.cpp +++ b/typelibrary.cpp @@ -225,6 +225,12 @@ void TypeLibrary::RemoveMetadata(const std::string& key) } +Ref<Metadata> TypeLibrary::GetMetadata() +{ + return new Metadata(BNTypeLibraryGetMetadata(m_object)); +} + + void TypeLibrary::AddNamedObject(const QualifiedName& name, Ref<Type> type) { BNQualifiedName qname = name.GetAPIObject(); |
