mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
char: introduce generic qemu_chr_get_kind()
This allows to remove the "is_mux" field from CharDriverState. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
acbfbe4a06
commit
ad5c679c7f
3 changed files with 24 additions and 14 deletions
|
@ -3196,7 +3196,7 @@ static void ringbuf_completion(ReadLineState *rs, const char *str)
|
|||
|
||||
if (!strncmp(chr_info->label, str, len)) {
|
||||
CharDriverState *chr = qemu_chr_find(chr_info->label);
|
||||
if (chr && chr_is_ringbuf(chr)) {
|
||||
if (chr && qemu_chr_is_ringbuf(chr)) {
|
||||
readline_add_completion(rs, chr_info->label);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue