Skip to contentSkip to conversation

Regarding do_key_event function in vnc.c file.

Qemu-devel Amey Moghe 1 participant 1 message Aug 25, 2009

lore
Share & tools
lore

Amey Moghe

author
#0 lore raw

Hello all,

I was reading about how qemu uses vnc server to access the screen
of guest OS.While reading I came across function "key_event" called for key processing in client-server interaction phase in file vnc.c. In "key_event" function "do_key_event" function calls the function "kbd_put_keycode" whose definition is as follows :

void kbd_put_keycode(int keycode)

{
    if (qemu_put_kbd_event) {
        qemu_put_kbd_event(qemu_put_kbd_event_opaque, keycode);
    }
}

In above fuction I didnt get the function definition for call "qemu_put_kbd_event(qemu_put_kbd_event_opaque, keycode); " which is called by function pointer and I also didnt get the significance of generic pointer "qemu_put_kbd_event_opaque" . So please help in this regard.

Thanks,
Amey