]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Change option parsing functions to return tri-state information
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Mar 2011 16:29:31 +0000 (17:29 +0100)
committerEric Blake <eblake@redhat.com>
Tue, 8 Mar 2011 20:25:52 +0000 (13:25 -0700)
commitd03f199595dc0b0a8f3726e13cc284d62e789202
tree4792d8ce0763c4c779fe856a28e7fb3b5adbe6b5
parentdc3d60ecd594b33ffc6956cf2ff37f87825e7849
virsh: Change option parsing functions to return tri-state information

This is needed to detect situations when optional argument was
specified with non-integer value: '--int-opt foo'. To keep functions
uniform vshCommandOptString function was also changed, because it
returns tri-state value as well. Given result pointer is updated only
in case of success. If parsing fails, result is not updated at all.
tools/virsh.c