summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h3
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);