Revision 7c32c4fe qemu-char.c
b/qemu-char.c | ||
---|---|---|
480 | 480 |
chr->chr_write = mux_chr_write; |
481 | 481 |
chr->chr_update_read_handler = mux_chr_update_read_handler; |
482 | 482 |
chr->chr_accept_input = mux_chr_accept_input; |
483 |
/* Frontend guest-open / -close notification is not support with muxes */ |
|
484 |
chr->chr_guest_open = NULL; |
|
485 |
chr->chr_guest_close = NULL; |
|
483 | 486 |
|
484 | 487 |
/* Muxes are always open on creation */ |
485 | 488 |
qemu_chr_generic_open(chr); |
... | ... | |
2579 | 2582 |
} |
2580 | 2583 |
} |
2581 | 2584 |
|
2585 |
void qemu_chr_guest_open(struct CharDriverState *chr) |
|
2586 |
{ |
|
2587 |
if (chr->chr_guest_open) { |
|
2588 |
chr->chr_guest_open(chr); |
|
2589 |
} |
|
2590 |
} |
|
2591 |
|
|
2592 |
void qemu_chr_guest_close(struct CharDriverState *chr) |
|
2593 |
{ |
|
2594 |
if (chr->chr_guest_close) { |
|
2595 |
chr->chr_guest_close(chr); |
|
2596 |
} |
|
2597 |
} |
|
2598 |
|
|
2582 | 2599 |
void qemu_chr_close(CharDriverState *chr) |
2583 | 2600 |
{ |
2584 | 2601 |
QTAILQ_REMOVE(&chardevs, chr, next); |
Also available in: Unified diff