diff options
| author | Peter Xu <peterx@redhat.com> | 2024-11-21 14:22:01 -0500 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-09 18:16:24 +0100 |
| commit | d3176a9f387f8b6b56882045d36f5b3f82565d90 (patch) | |
| tree | f2ba15defa86b05ddd4b1d8bb2753ed498a1193c /ui/console.c | |
| parent | 180e8f16f0ad6835ce0c437c7ffc9f25801a399e (diff) | |
| download | focaccia-qemu-d3176a9f387f8b6b56882045d36f5b3f82565d90.tar.gz focaccia-qemu-d3176a9f387f8b6b56882045d36f5b3f82565d90.zip | |
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>
Diffstat (limited to 'ui/console.c')
| -rw-r--r-- | ui/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c index 5165f17125..914ed2cc76 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1160,7 +1160,7 @@ DisplayState *init_displaystate(void) * all QemuConsoles are created and the order / numbering * doesn't change any more */ name = g_strdup_printf("console[%d]", con->index); - object_property_add_child(container_get(object_get_root(), "/backend"), + object_property_add_child(object_get_container("backend"), name, OBJECT(con)); g_free(name); } |