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.
This commit is contained in:
Michal Privoznik 2011-03-08 17:29:31 +01:00 committed by Eric Blake
parent dc3d60ecd5
commit d03f199595

File diff suppressed because it is too large Load Diff