diff options
| author | Glenn Smith <glenn@vector35.com> | 2021-12-09 17:58:16 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-01-20 15:13:42 -0500 |
| commit | 5e98f8607c6d8ccd17601d00a479c8ce3dc35890 (patch) | |
| tree | b1ef938c7451449832a96b74e47ed5303779e70b /database.cpp | |
| parent | 82dd03bf69c53650c99461a02163df53be41e951 (diff) | |
[Enterprise] Support for sparse/trimmed snapshots
Diffstat (limited to 'database.cpp')
| -rw-r--r-- | database.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/database.cpp b/database.cpp index 90adb8c7..3d1a5cb6 100644 --- a/database.cpp +++ b/database.cpp @@ -213,6 +213,18 @@ bool Snapshot::IsAutoSave() } +bool Snapshot::HasContents() +{ + return BNSnapshotHasContents(m_object); +} + + +bool Snapshot::HasUndo() +{ + return BNSnapshotHasUndo(m_object); +} + + Ref<Snapshot> Snapshot::GetFirstParent() { BNSnapshot* snap = BNGetSnapshotFirstParent(m_object); |
