From 309fc943fb48d9ce4f6f7c59f7d66bf0ca69eef1 Mon Sep 17 00:00:00 2001 From: Josh F Date: Thu, 6 Oct 2022 18:52:48 -0400 Subject: Add APIs for checking and writing snapshot data --- binaryninjaapi.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 15850e44..a8f761a0 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1320,6 +1320,7 @@ namespace BinaryNinja { std::string GetName(); bool IsAutoSave(); bool HasContents(); + bool HasData(); bool HasUndo(); Ref GetFirstParent(); std::vector> GetParents(); @@ -1340,12 +1341,14 @@ namespace BinaryNinja { public: Database(BNDatabase* database); + bool SnapshotHasData(int64_t id); Ref GetSnapshot(int64_t id); std::vector> GetSnapshots(); void SetCurrentSnapshot(int64_t id); Ref GetCurrentSnapshot(); int64_t WriteSnapshotData(std::vector parents, Ref file, const std::string& name, const Ref& data, bool autoSave, const std::function& progress); + bool StoreDataForSnapshot(int64_t id, const Ref& data, const std::function& progress); void TrimSnapshot(int64_t id); void RemoveSnapshot(int64_t id); -- cgit v1.3.1