]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Add helper to request string arguments with error reporting
authorPeter Krempa <pkrempa@redhat.com>
Mon, 14 Jan 2013 13:38:38 +0000 (14:38 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 4 Feb 2013 13:17:39 +0000 (14:17 +0100)
commit41b5e8451bd0a88a3953aa2ecba87d7133268e5e
tree59b59a8dd93cfc471d9d1f8485503a15b87b9fd6
parentd1de0c3d1a22877ce852725ccc8c2d0e4f41db77
virsh: Add helper to request string arguments with error reporting

This patch adds a helper function with similar semantics to
vshCommandOptString that requests a string argument, but does some error
reporting without the need to do it in the functions themselves.

The error reporting also provides information about the parameter whose
retrieval failed.
tools/virsh.c
tools/virsh.h