]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Make virDomainDeviceInfoIterate usable without os type
authorPeter Krempa <pkrempa@redhat.com>
Wed, 20 Feb 2013 13:06:52 +0000 (14:06 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Mar 2013 07:34:49 +0000 (08:34 +0100)
commit5d9169e4dc4e946eadfbc0ffc197f4260e5f0456
tree222c2ea41e3f3ad7d8d10cdfcd0cf54625e5279b
parentbb98ba5d8f4ac233eac3db335674358ab4f19218
conf: Make virDomainDeviceInfoIterate usable without os type

Make the iterator function usable in the next patches. Also refactor
some parts to avoid strcmp if not necessary.

This commit tweaks and shadows the change that was done in commit
babe7dada0f90bfde74a716e8fc963b049d76f96 and was needed after the
support for multiple console devices was added. Historically the first
<console> element is alias for the <serial> device.
src/conf/domain_conf.c