On 03/07/13 13:52, Peter Krempa wrote:
This patchset introduces a new macro that allows simple checking for
mutually
exclusive arguments in virsh and uses it in many occasions in virs.
Peter Krempa (8):
virsh: Introduce macros to reject mutually exclusive arguments
virsh-snapshot: Refactor virsh snapshot-list
virsh-host: Refactor cmdFreecell
virsh-domain: Fix flag name in error message to match the check
virsh-snapshot: Refactor cmdSnapshotCurrent
virsh-snapshot: Use the mutually exclusive params macro in
cmdSnapshotEdit
virsh-snapshot: Simplify cleanup path in cmdSnapshotEdit
virsh-domain: Simplify usage of --current, --live and --config flags
po/POTFILES.in | 1 +
tools/virsh-domain.c | 262 +++++++++++++++++++++----------------------------
tools/virsh-host.c | 55 +++++------
tools/virsh-snapshot.c | 181 +++++++++++++---------------------
tools/virsh.h | 42 ++++++++
5 files changed, 248 insertions(+), 293 deletions(-)
Ping?