From ecfc518d025359e7d2cf7e5da30f856916bf48b4 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 12 Jan 2024 16:55:19 -0500 Subject: Add APIs for getting the the base Metadata object for BinaryViews and TypeLibraries --- binaryninjaapi.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 5f7e8cc2..5b92a2e5 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -5852,6 +5852,8 @@ namespace BinaryNinja { void StoreMetadata(const std::string& key, Ref value, bool isAuto = false); Ref QueryMetadata(const std::string& key); void RemoveMetadata(const std::string& key); + Ref GetMetadata(); + Ref GetAutoMetadata(); std::string GetStringMetadata(const std::string& key); std::vector GetRawMetadata(const std::string& key); uint64_t GetUIntMetadata(const std::string& key); @@ -16086,6 +16088,12 @@ namespace BinaryNinja { */ void RemoveMetadata(const std::string& key); + /*! Returns a base Metadata object associated with the current type library. + + \return Metadata object associated with the type library + */ + Ref GetMetadata(); + /*! Directly inserts a named object into the type library's object store. This is not done recursively, so care should be taken that types referring to other types through NamedTypeReferences are already appropriately prepared. -- cgit v1.3.1