]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- added setRollback and getRollback
authorArvin Schnell <aschnell@suse.de>
Mon, 17 Jan 2011 18:09:39 +0000 (19:09 +0100)
committerArvin Schnell <aschnell@suse.de>
Mon, 17 Jan 2011 18:09:39 +0000 (19:09 +0100)
snapper/Snapper.cc

index be5d357e8781e2e2779cde8efff04cfc8b4aeb38..a7c9648e3914cfc07671ee41eb6d419e3182512d 100644 (file)
@@ -533,4 +533,23 @@ namespace snapper
        return -1;
     }
 
+
+    void
+    setRollback(const string& name, bool rollback)
+    {
+       vector<File>::iterator it = filelist.find(name);
+       if (it != filelist.end())
+           it->rollback = rollback;
+    }
+
+
+    bool
+    getRollback(const string& name, bool rollback)
+    {
+       vector<File>::const_iterator it = filelist.find(name);
+       if (it != filelist.end())
+           return it->rollback;
+       return false;
+    }
+
 }