]> git.ipfire.org Git - thirdparty/libvirt.git/commit
dominfo: make example more useful
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 2 Apr 2019 09:58:33 +0000 (10:58 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 5 Apr 2019 14:33:33 +0000 (15:33 +0100)
commitb69e14fed6c5e55d76a3006150fbde960abb694d
tree47dde599e889199ce86401681fc143fe5f966984
parent54fd8d5e52dc6fd77620c04ade398b79ad4bd84d
dominfo: make example more useful

The example currently assumes that a NULL URI will open Xen and thus
also assumes that a domain with ID 0 exists. Change it to require the
URI and a domain name as command line arguments.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
examples/dominfo/info1.c