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