From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfuAT-0000zM-3L for qemu-devel@nongnu.org; Tue, 25 Aug 2009 07:26:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfuAN-0000z0-0O for qemu-devel@nongnu.org; Tue, 25 Aug 2009 07:26:23 -0400 Received: from [199.232.76.173] (port=39249 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfuAM-0000yx-T5 for qemu-devel@nongnu.org; Tue, 25 Aug 2009 07:26:18 -0400 Received: from mail-pz0-f192.google.com ([209.85.222.192]:58704) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MfuAM-0005iG-Ip for qemu-devel@nongnu.org; Tue, 25 Aug 2009 07:26:18 -0400 Received: by pzk30 with SMTP id 30so1338372pzk.4 for ; Tue, 25 Aug 2009 04:26:17 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 25 Aug 2009 16:56:17 +0530 Message-ID: <1600c7720908250426y35aa8b9dv36716af7e7d50c76@mail.gmail.com> From: Amey Moghe Content-Type: multipart/alternative; boundary=00504502bb555712130471f59a96 Subject: [Qemu-devel] Regarding do_key_event function in vnc.c file. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --00504502bb555712130471f59a96 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --00504502bb555712130471f59a96 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all,

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 I was reading about how qe= mu uses vnc server to access the screen of guest OS.While reading I came ac= ross function "key_event" called for key processing in client-ser= ver interaction phase in file vnc.c. In "key_event" function &quo= t;do_key_event" function calls the function "kbd_put_keycode"= ; whose definition is as follows :

void kbd_put_keycode(int keycode)
{
=A0=A0=A0 if (qemu_put_kbd_ev= ent) {
=A0=A0=A0=A0=A0=A0=A0 qemu_put_kbd_event(qemu_put_kbd_event_opaqu= e, keycode);
=A0=A0=A0 }
}

In above fuction I didnt get the fu= nction definition for call=A0 "qemu_put_kbd_event(qemu_put_kbd_event_o= paque, keycode); " which is called by function pointer and I also didn= t get the significance of generic pointer "qemu_put_kbd_event_opaque&q= uot; . So please help in this regard.

Thanks,
Amey
--00504502bb555712130471f59a96--