mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
char: add a /chardevs container
Add a /chardevs container object to hold the list of chardevs. (Note: QTAILQ chardevs is going away in the following commits) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
f8df5f9221
commit
2f5d45a150
8 changed files with 42 additions and 36 deletions
|
@ -53,7 +53,7 @@ static void char_stdio_test_subprocess(void)
|
|||
g_assert_cmpint(ret, ==, 4);
|
||||
|
||||
qemu_chr_fe_deinit(&be);
|
||||
qemu_chr_delete(chr);
|
||||
object_unparent(OBJECT(chr));
|
||||
}
|
||||
|
||||
static void char_stdio_test(void)
|
||||
|
@ -103,7 +103,7 @@ static void char_ringbuf_test(void)
|
|||
g_free(data);
|
||||
|
||||
qemu_chr_fe_deinit(&be);
|
||||
qemu_chr_delete(chr);
|
||||
object_unparent(OBJECT(chr));
|
||||
}
|
||||
|
||||
static void char_mux_test(void)
|
||||
|
@ -179,7 +179,7 @@ static void char_mux_test(void)
|
|||
|
||||
qemu_chr_fe_deinit(&chr_be1);
|
||||
qemu_chr_fe_deinit(&chr_be2);
|
||||
qemu_chr_delete(chr);
|
||||
object_unparent(OBJECT(chr));
|
||||
}
|
||||
|
||||
static void char_null_test(void)
|
||||
|
@ -222,7 +222,7 @@ static void char_null_test(void)
|
|||
g_assert_cmpint(ret, ==, 4);
|
||||
|
||||
qemu_chr_fe_deinit(&be);
|
||||
qemu_chr_delete(chr);
|
||||
object_unparent(OBJECT(chr));
|
||||
}
|
||||
|
||||
static void char_invalid_test(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue