Revision 574b711a qemu-char.c
b/qemu-char.c | ||
---|---|---|
514 | 514 |
chr->chr_update_read_handler = mux_chr_update_read_handler; |
515 | 515 |
chr->chr_accept_input = mux_chr_accept_input; |
516 | 516 |
/* Frontend guest-open / -close notification is not support with muxes */ |
517 |
chr->chr_guest_open = NULL; |
|
518 |
chr->chr_guest_close = NULL; |
|
517 |
chr->chr_set_fe_open = NULL; |
|
519 | 518 |
|
520 | 519 |
/* Muxes are always open on creation */ |
521 | 520 |
qemu_chr_be_generic_open(chr); |
... | ... | |
3425 | 3424 |
return; |
3426 | 3425 |
} |
3427 | 3426 |
chr->fe_open = fe_open; |
3428 |
if (fe_open && chr->chr_guest_open) { |
|
3429 |
chr->chr_guest_open(chr); |
|
3430 |
} |
|
3431 |
if (!fe_open && chr->chr_guest_close) { |
|
3432 |
chr->chr_guest_close(chr); |
|
3427 |
if (chr->chr_set_fe_open) { |
|
3428 |
chr->chr_set_fe_open(chr, fe_open); |
|
3433 | 3429 |
} |
3434 | 3430 |
} |
3435 | 3431 |
|
Also available in: Unified diff