]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virsh: Introduce macros to reject mutually exclusive arguments
authorPeter Krempa <pkrempa@redhat.com>
Thu, 7 Mar 2013 09:16:20 +0000 (10:16 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 21 Mar 2013 11:32:03 +0000 (12:32 +0100)
commit7e437ee78fe976d9371533f40f9cb68dd068af76
tree79b62d26a2986635564b6370ed4925974cfe6fd4
parentd395c81121cd997d1971149361905e4e8c917004
virsh: Introduce macros to reject mutually exclusive arguments

This patch adds three macros to the virsh source tree that help to
easily check for mutually exclusive parameters.

VSH_EXCLUSIVE_OPTIONS_EXPR has four arguments, two expressions to check
and two names of the parameters to print in the message.

VSH_EXCLUSIVE_OPTIONS is more specific and check the command structure
for the parameters using vshCommandOptBool.

VSH_EXCLUSIVE_OPTIONS_VAR is meant to check boolean variables with the
same name as the parameters.
po/POTFILES.in
tools/virsh.h