void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down)

{

    InputEvent *evt;

    evt = qemu_input_event_new_key(key, down);

    if (QTAILQ_EMPTY(&kbd_queue)) {

        qemu_input_event_send(src, evt);

        qemu_input_event_sync();

        qapi_free_InputEvent(evt);

    } else {

        qemu_input_queue_event(&kbd_queue, src, evt);

        qemu_input_queue_sync(&kbd_queue);

    }

}

void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down)

{

    InputEvent *evt;

    evt = qemu_input_event_new_key(key, down);

    if (QTAILQ_EMPTY(&kbd_queue)) {

        qemu_input_event_send(src, evt);

        qemu_input_event_sync();

        qapi_free_InputEvent(evt);

    } else {

        qemu_input_queue_event(&kbd_queue, src, evt);

        qemu_input_queue_sync(&kbd_queue);

    }

}

    } else {
void FUNC_0(QemuConsole *VAR_0, KeyValue *VAR_1, bool VAR_2)

{

    InputEvent *evt;

    evt = qemu_input_event_new_key(VAR_1, VAR_2);

    if (QTAILQ_EMPTY(&kbd_queue)) {

        qemu_input_event_send(VAR_0, evt);

        qemu_input_event_sync();

        qapi_free_InputEvent(evt);

    } else {

        qemu_input_queue_event(&kbd_queue, VAR_0, evt);

        qemu_input_queue_sync(&kbd_queue);

    }

}

void FUNC_0(QemuConsole *VAR_0, KeyValue *VAR_1, bool VAR_2)
{ InputEvent *evt; evt = qemu_input_event_new_key(VAR_1, VAR_2); if (QTAILQ_EMPTY(&kbd_queue)) { qemu_input_event_send(VAR_0, evt); qemu_input_event_sync(); qapi_free_InputEvent(evt); } else { qemu_input_queue_event(&kbd_queue, VAR_0, evt); qemu_input_queue_sync(&kbd_queue); } }