]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Add arg verbose to command_delete_xsnapshots.
authorChrister Ekholm <che@chrekh.se>
Sun, 19 Jul 2015 18:16:11 +0000 (20:16 +0200)
committerChrister Ekholm <che@chrekh.se>
Wed, 26 Aug 2015 20:35:15 +0000 (22:35 +0200)
client/cleanup.cc
client/commands.cc
client/commands.h
client/snapper.cc

index 8d2d77c7b86802a53162e56d8f3fe4fae327897f..d80f1b8ec019237594805ff0dfa1bcfd1b073dca 100644 (file)
@@ -153,7 +153,7 @@ do_cleanup_number(DBus::Connection& conn, const string& config_name)
     {
        list<unsigned int> nums;
        nums.push_back((*it)->getNum());
-       command_delete_xsnapshots(conn, config_name, nums);
+       command_delete_xsnapshots(conn, config_name, nums, false);
     }
 
     return true;
@@ -318,7 +318,7 @@ do_cleanup_timeline(DBus::Connection& conn, const string& config_name)
     {
        list<unsigned int> nums;
        nums.push_back((*it)->getNum());
-       command_delete_xsnapshots(conn, config_name, nums);
+       command_delete_xsnapshots(conn, config_name, nums, false);
     }
 
     return true;
@@ -369,7 +369,7 @@ do_cleanup_empty_pre_post(DBus::Connection& conn, const string& config_name)
     {
        list<unsigned int> nums;
        nums.push_back((*it)->getNum());
-       command_delete_xsnapshots(conn, config_name, nums);
+       command_delete_xsnapshots(conn, config_name, nums, false);
     }
 
     return true;
index b45eb45a1c1b4219c22dffad9cbafab84d66f9b1..9c760ef3d82b22e9f522ccf63a31a885ee2e7ffa 100644 (file)
@@ -261,7 +261,7 @@ command_create_post_xsnapshot(DBus::Connection& conn, const string& config_name,
 
 void
 command_delete_xsnapshots(DBus::Connection& conn, const string& config_name,
-                         list<unsigned int> nums)
+                         list<unsigned int> nums, bool verbose)
 {
     DBus::MessageMethodCall call(SERVICE, OBJECT, INTERFACE, "DeleteSnapshots");
 
index f7d799cd6da3a4fac80f293f124e3b719fb6d589..2e46c53ab9449d76c4a7091bed2352154b4f7dc6 100644 (file)
@@ -89,7 +89,7 @@ command_create_post_xsnapshot(DBus::Connection& conn, const string& config_name,
 
 void
 command_delete_xsnapshots(DBus::Connection& conn, const string& config_name,
-                         list<unsigned int> nums);
+                         list<unsigned int> nums, bool verbose);
 
 string
 command_mount_xsnapshots(DBus::Connection& conn, const string& config_name,
index cb1c8fff5ab8163bcc8521867ce07d365259c271..0ee04311e28abc2612b8c2db3612b885eca0f91d 100644 (file)
@@ -938,7 +938,7 @@ command_delete(DBus::Connection* conn, Snapper* snapper)
        }
     }
 
-    command_delete_xsnapshots(*conn, config_name, nums);
+    command_delete_xsnapshots(*conn, config_name, nums, verbose);
 
     if (sync)
        command_xsync(*conn, config_name);