diff options
| author | Josh F <josh@vector35.com> | 2022-10-06 18:52:48 -0400 |
|---|---|---|
| committer | Josh F <josh@vector35.com> | 2022-10-06 18:52:48 -0400 |
| commit | 309fc943fb48d9ce4f6f7c59f7d66bf0ca69eef1 (patch) | |
| tree | b8740bc3c99e137976490c25c2b1bf0040c9bfd3 /binaryninjaapi.h | |
| parent | 847c305528b2af050ccf8ef93a087d40b07bcd3a (diff) | |
Add APIs for checking and writing snapshot data
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<Snapshot> GetFirstParent(); std::vector<Ref<Snapshot>> GetParents(); @@ -1340,12 +1341,14 @@ namespace BinaryNinja { public: Database(BNDatabase* database); + bool SnapshotHasData(int64_t id); Ref<Snapshot> GetSnapshot(int64_t id); std::vector<Ref<Snapshot>> GetSnapshots(); void SetCurrentSnapshot(int64_t id); Ref<Snapshot> GetCurrentSnapshot(); int64_t WriteSnapshotData(std::vector<int64_t> parents, Ref<BinaryView> file, const std::string& name, const Ref<KeyValueStore>& data, bool autoSave, const std::function<bool(size_t, size_t)>& progress); + bool StoreDataForSnapshot(int64_t id, const Ref<KeyValueStore>& data, const std::function<bool(size_t, size_t)>& progress); void TrimSnapshot(int64_t id); void RemoveSnapshot(int64_t id); |
