diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-09-26 02:07:15 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-09-26 02:07:15 -0400 |
commit | fbefe34c306b9d2d8587e774eb586c83224be50f (patch) | |
tree | a9632e4cf69107dc645527105426155346dcaf01 /xsig/include | |
parent | 109a9c0130a024030a651aec7979fed283ec5bb7 (diff) | |
download | deduper-fbefe34c306b9d2d8587e774eb586c83224be50f.tar.xz |
Add proper quit confirmation.
Diffstat (limited to 'xsig/include')
-rw-r--r-- | xsig/include/signature_db.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xsig/include/signature_db.hpp b/xsig/include/signature_db.hpp index 9b14fbb..23e3aae 100644 --- a/xsig/include/signature_db.hpp +++ b/xsig/include/signature_db.hpp @@ -45,7 +45,12 @@ public: signature_db(const fs::path &dbpath = fs::path()); ~signature_db(); + //true if db is valid, false if not. + //only useful when opening an existing db file bool valid(); + //true if db has changes that are not written to disk, false otherwise + //always true if db is not in RAM. + bool is_dirty(); //insert image signature into database //if id is omitted, it's assigned automatically and returned |