]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Create macro for common "current" option
authorJohn Ferlan <jferlan@redhat.com>
Sat, 9 Jan 2016 13:36:28 +0000 (08:36 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 11 Jan 2016 23:14:00 +0000 (18:14 -0500)
commit5b42dbed98ee821714d9bfae4db524329ad9863c
treecdfd4f2cecafc4230c0b7f82ee7eec7d5d5b5ca0
parent8e4108f03968459de058b0ac6ee987816b28d8c3
virsh: Create macro for common "current" option

Rather than continually cut-n-paste the strings into each command,
create a common macro to be used generically. The macro will take a
single argument _helpstr which for many options in virsh-domain.c
is simply "affect current domain". So, create a second macro within that
file in order to define the more common use as a revector to the
common macro with the common _helpstr.

Signed-off-by: John Ferlan <jferlan@redhat.com>
tools/virsh-domain-monitor.c
tools/virsh-domain.c
tools/virsh-network.c
tools/virsh-snapshot.c
tools/virsh.h