From: Christer Ekholm Date: Sun, 19 Jul 2015 18:16:11 +0000 (+0200) Subject: Add arg verbose to command_delete_xsnapshots. X-Git-Tag: v0.2.8~1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15ae59e8005768199bc468da37da1fc9a51a80cc;p=thirdparty%2Fsnapper.git Add arg verbose to command_delete_xsnapshots. --- diff --git a/client/cleanup.cc b/client/cleanup.cc index 8d2d77c7..d80f1b8e 100644 --- a/client/cleanup.cc +++ b/client/cleanup.cc @@ -153,7 +153,7 @@ do_cleanup_number(DBus::Connection& conn, const string& config_name) { list 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 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 nums; nums.push_back((*it)->getNum()); - command_delete_xsnapshots(conn, config_name, nums); + command_delete_xsnapshots(conn, config_name, nums, false); } return true; diff --git a/client/commands.cc b/client/commands.cc index b45eb45a..9c760ef3 100644 --- a/client/commands.cc +++ b/client/commands.cc @@ -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 nums) + list nums, bool verbose) { DBus::MessageMethodCall call(SERVICE, OBJECT, INTERFACE, "DeleteSnapshots"); diff --git a/client/commands.h b/client/commands.h index f7d799cd..2e46c53a 100644 --- a/client/commands.h +++ b/client/commands.h @@ -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 nums); + list nums, bool verbose); string command_mount_xsnapshots(DBus::Connection& conn, const string& config_name, diff --git a/client/snapper.cc b/client/snapper.cc index cb1c8fff..0ee04311 100644 --- a/client/snapper.cc +++ b/client/snapper.cc @@ -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);