]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Create macro for common "live" option
authorJohn Ferlan <jferlan@redhat.com>
Sat, 9 Jan 2016 13:36:27 +0000 (08:36 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 11 Jan 2016 23:14:00 +0000 (18:14 -0500)
commit8e4108f03968459de058b0ac6ee987816b28d8c3
treef8e6cef542a29bab59516d8f2c2e917ea9f73f92
parent0dbac60b9ea6fc11339e61ab1cb8bffa1e3ac3a6
virsh: Create macro for common "live" 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 running 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