summary refs log tree commit diff stats
path: root/rust/qemu-api/src/chardev.rs
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>2025-04-10 19:22:50 +0300
committerFabiano Rosas <farosas@suse.de>2025-05-09 16:14:30 -0300
commit246069e850327b3d5c7f460461fc0bbf0f817654 (patch)
treefa32f82a5da3a16d338cd2d570d7eeea740af79e /rust/qemu-api/src/chardev.rs
parent4b1f5b73e060971c434e70694d571adfee553027 (diff)
downloadfocaccia-qemu-246069e850327b3d5c7f460461fc0bbf0f817654.tar.gz
focaccia-qemu-246069e850327b3d5c7f460461fc0bbf0f817654.zip
qtest: introduce qtest_init_ext
Merge qtest_init_with_env_and_capabilities() and qtest_init_with_env()
into one qtest_init_ext().

Reasons:

1. qtest_init_with_env() is just wrong: it gets do_connect parameter
   but always pass true to qtest_init_with_env_and_capabilities().
   Happily, all qtest_init_with_env() callers pass true as well.

2. qtest_init_with_env() is not used outside of libqtest.c, so no
   reason to keep it as public function

3. and in libqtest.c it's used not often, so no problem to use
   more generic function instead.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20250410162250.329941-1-vsementsov@yandex-team.ru>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'rust/qemu-api/src/chardev.rs')
0 files changed, 0 insertions, 0 deletions