void monitor_flush(Monitor *mon)

{

    int i;

    if (term_outbuf_index > 0) {

        for (i = 0; i < MAX_MON; i++)

            if (monitor_hd[i] && monitor_hd[i]->focus == 0)

                qemu_chr_write(monitor_hd[i], term_outbuf, term_outbuf_index);

        term_outbuf_index = 0;

    }

}

void monitor_flush(Monitor *mon)

{

    int i;

    if (term_outbuf_index > 0) {

        for (i = 0; i < MAX_MON; i++)

            if (monitor_hd[i] && monitor_hd[i]->focus == 0)

                qemu_chr_write(monitor_hd[i], term_outbuf, term_outbuf_index);

        term_outbuf_index = 0;

    }

}

void FUNC_0(Monitor *VAR_0)

{

    int VAR_1;

    if (term_outbuf_index > 0) {

        for (VAR_1 = 0; VAR_1 < MAX_MON; VAR_1++)

            if (monitor_hd[VAR_1] && monitor_hd[VAR_1]->focus == 0)

                qemu_chr_write(monitor_hd[VAR_1], term_outbuf, term_outbuf_index);

        term_outbuf_index = 0;

    }

}

void FUNC_0(Monitor *VAR_0)
{ int VAR_1; if (term_outbuf_index > 0) { for (VAR_1 = 0; VAR_1 < MAX_MON; VAR_1++) if (monitor_hd[VAR_1] && monitor_hd[VAR_1]->focus == 0)
qemu_chr_write(monitor_hd[VAR_1], term_outbuf, term_outbuf_index); term_outbuf_index = 0; } }