]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add device pointer to args of virDomainDeviceInfoIterate callback
authorLaine Stump <laine@laine.org>
Wed, 22 Feb 2012 21:06:10 +0000 (16:06 -0500)
committerLaine Stump <laine@laine.org>
Tue, 6 Mar 2012 04:23:38 +0000 (23:23 -0500)
commit2f925c650c60c4cf6ea32cd4025f5d1c3438f2a9
treec18f05fd2e5a127771b45ace5409f8170e96ea69
parent37038d5c0b94c0c0c7c504e42eb16ab1d603ccf6
conf: add device pointer to args of virDomainDeviceInfoIterate callback

There will be cases where the iterator callback will need to know the
type of the device whose info is being operated on, and possibly even
need to use some of the device's config. This patch adds a
virDomainDeviceDefPtr to the args of every callback, and fills it in
appropriately as the devices are iterated through.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/qemu/qemu_hotplug.c