summaryrefslogtreecommitdiff
path: root/database.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'database.cpp')
-rw-r--r--database.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/database.cpp b/database.cpp
index 887cdea7..dd258967 100644
--- a/database.cpp
+++ b/database.cpp
@@ -276,6 +276,17 @@ DataBuffer Snapshot::GetFileContentsHash()
}
+DataBuffer Snapshot::GetUndoData()
+{
+ BNDataBuffer* buffer = BNGetSnapshotUndoData(m_object);
+ if (buffer == nullptr)
+ {
+ throw DatabaseException("BNGetSnapshotUndoData");
+ }
+ return DataBuffer(buffer);
+}
+
+
vector<UndoEntry> Snapshot::GetUndoEntries()
{
return GetUndoEntries([](size_t, size_t) { return true; });