qom: Refine container_get() to allow using a custom root
commitdfe47e7029e117f65a14c0948021654f7f7d5d05
authorAndreas Färber <afaerber@suse.de>
Thu, 5 Apr 2012 11:21:46 +0000 (5 13:21 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 24 Apr 2012 14:50:31 +0000 (24 09:50 -0500)
tree9831f047090bf7bb7c58959741aad546221cb862
parent7f3bf92fad79dff1edcb796a875b5c0d57666162
qom: Refine container_get() to allow using a custom root

Specify the root to search from as argument. This avoids hardcoding
"/machine" in some places and makes it more flexible.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Anthony Liguori <anthony@codemonkey.ws>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-monitor.c
hw/qdev.c
include/qemu/object.h
qom/container.c