]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/qdev-core.h
qdev: allow both pre- and post-order vists in qdev walking functions
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Dec 2013 16:54:26 +0000 (17:54 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Dec 2013 11:12:35 +0000 (13:12 +0200)
commit0293214b8c5bf56a095d0a39c5821c9da66dd566
tree3c56eaae6e5e925488bb86e6430939a88b26eaf0
parent9bdbbfc3a04c28dc43af5afffb32066623cb0022
qdev: allow both pre- and post-order vists in qdev walking functions

Resetting should be done in post-order, not pre-order.  However,
qdev_walk_children and qbus_walk_children do not allow this.  Fix
it by adding two extra arguments to the functions.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/qdev.c
include/hw/qdev-core.h