qom: Add helper function for getting user objects root
commitbc2256c4ae86308a1521c89456b599d441119418
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 13 May 2015 16:14:05 +0000 (13 17:14 +0100)
committerAndreas Färber <afaerber@suse.de>
Fri, 19 Jun 2015 16:40:00 +0000 (19 18:40 +0200)
tree8a9a2cb0a8d570459730143e3326ea0572054f93
parentf08f9271bfe3f19a5eb3d7a2f48532065304d5c8
qom: Add helper function for getting user objects root

Add object_get_objects_root() function which is a convenience for
obtaining the Object * located at /objects in the object
composition tree. Convert existing code over to use the new
API where appropriate.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
include/qom/object.h
iothread.c
numa.c
qmp.c
qom/object.c