diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-12-24 12:14:12 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-12-24 10:35:27 +0200 |
commit | a2ee6b4fcb3e2f2f5d60211ce0f734c61f8e0e30 (patch) | |
tree | 34122d0f01cef00c44238ad4024aa5acae8d2e03 /hw/qdev.h | |
parent | b3a29fd5604841dac8bfee1bac35f150cab976fb (diff) | |
download | qemu-a2ee6b4fcb3e2f2f5d60211ce0f734c61f8e0e30.zip qemu-a2ee6b4fcb3e2f2f5d60211ce0f734c61f8e0e30.tar.gz qemu-a2ee6b4fcb3e2f2f5d60211ce0f734c61f8e0e30.tar.bz2 |
qdev: export qdev_find_recursive() for later use
This patch exports qdev_find_recursive() for later use.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r-- | hw/qdev.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -183,6 +183,8 @@ BusState *qdev_get_parent_bus(DeviceState *dev); /*** BUS API. ***/ +DeviceState *qdev_find_recursive(BusState *bus, const char *id); + /* Returns 0 to walk children, > 0 to skip walk, < 0 to terminate walk. */ typedef int (qbus_walkerfn)(BusState *bus, void *opaque); typedef int (qdev_walkerfn)(DeviceState *dev, void *opaque); |