static void set_guest_connected(VirtIOSerialPort *port, int guest_connected)

{

    VirtConsole *vcon = VIRTIO_CONSOLE(port);

    DeviceState *dev = DEVICE(port);



    if (vcon->chr) {

        qemu_chr_fe_set_open(vcon->chr, guest_connected);

    }



    if (dev->id) {

        qapi_event_send_vserport_change(dev->id, guest_connected,

                                        &error_abort);

    }

}

static void set_guest_connected(VirtIOSerialPort *port, int guest_connected)

{

    VirtConsole *vcon = VIRTIO_CONSOLE(port);

    DeviceState *dev = DEVICE(port);



    if (vcon->chr) {

        qemu_chr_fe_set_open(vcon->chr, guest_connected);

    }



    if (dev->id) {

        qapi_event_send_vserport_change(dev->id, guest_connected,

                                        &error_abort);

    }

}

    if (vcon->chr) {
static void FUNC_0(VirtIOSerialPort *VAR_0, int VAR_1)

{

    VirtConsole *vcon = VIRTIO_CONSOLE(VAR_0);

    DeviceState *dev = DEVICE(VAR_0);



    if (vcon->chr) {

        qemu_chr_fe_set_open(vcon->chr, VAR_1);

    }



    if (dev->id) {

        qapi_event_send_vserport_change(dev->id, VAR_1,

                                        &error_abort);

    }

}

static void FUNC_0(VirtIOSerialPort *VAR_0, int VAR_1)
{ VirtConsole *vcon = VIRTIO_CONSOLE(VAR_0); DeviceState *dev = DEVICE(VAR_0); if (vcon->chr) { qemu_chr_fe_set_open(vcon->chr, VAR_1); } if (dev->id) { qapi_event_send_vserport_change(dev->id, VAR_1,
&error_abort); } }