qom: Use object_get_container()
Use object_get_container() whenever applicable across the tree. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20241121192202.4155849-13-peterx@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
180e8f16f0
commit
d3176a9f38
6 changed files with 8 additions and 8 deletions
|
|
@ -21,7 +21,7 @@
|
|||
#include "qemu/module.h"
|
||||
#include "qapi/qapi-commands-block.h"
|
||||
|
||||
#define PR_MANAGER_PATH "/objects"
|
||||
#define PR_MANAGER_PATH "objects"
|
||||
|
||||
typedef struct PRManagerData {
|
||||
PRManager *pr_mgr;
|
||||
|
|
@ -135,7 +135,7 @@ PRManagerInfoList *qmp_query_pr_managers(Error **errp)
|
|||
{
|
||||
PRManagerInfoList *head = NULL;
|
||||
PRManagerInfoList **prev = &head;
|
||||
Object *container = container_get(object_get_root(), PR_MANAGER_PATH);
|
||||
Object *container = object_get_container(PR_MANAGER_PATH);
|
||||
|
||||
object_child_foreach(container, query_one_pr_manager, &prev);
|
||||
return head;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue