summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2024-01-12 16:55:19 -0500
committerPeter LaFosse <peter@vector35.com>2024-01-15 08:50:51 -0500
commitecfc518d025359e7d2cf7e5da30f856916bf48b4 (patch)
tree1142480ecbd1ddabe3c2e1893441226619749e50 /binaryninjaapi.h
parent0747711195517010294963997446673189669493 (diff)
Add APIs for getting the the base Metadata object for BinaryViews and TypeLibraries
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 5f7e8cc2..5b92a2e5 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -5852,6 +5852,8 @@ namespace BinaryNinja {
void StoreMetadata(const std::string& key, Ref<Metadata> value, bool isAuto = false);
Ref<Metadata> QueryMetadata(const std::string& key);
void RemoveMetadata(const std::string& key);
+ Ref<Metadata> GetMetadata();
+ Ref<Metadata> GetAutoMetadata();
std::string GetStringMetadata(const std::string& key);
std::vector<uint8_t> 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<Metadata> 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.