From: "Andreas Färber" <afaerber@suse.de>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: aliguori@us.ibm.com, Amos Kong <akong@redhat.com>,
eblake@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v6 5/7] add the QKeyCode enum and the key_defs table
Date: Fri, 03 Aug 2012 20:00:47 +0200 [thread overview]
Message-ID: <501C11CF.3050907@suse.de> (raw)
In-Reply-To: <20120803103233.2f48d5d1@doriath.home>
Am 03.08.2012 15:32, schrieb Luiz Capitulino:
> On Fri, 3 Aug 2012 10:48:40 +0800
> Amos Kong <akong@redhat.com> wrote:
>
>> key_defs[] in monitor.c is a mapping table of keys and keycodes,
>> this patch added a QKeyCode enum and a new key_defs table,
>> Key's index in the enmu is same as keycode's index in new key_defs[].
>>
>> Signed-off-by: Amos Kong <akong@redhat.com>
>> ---
>> input.c | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>> qapi-schema.json | 26 ++++++++++
>> 2 files changed, 172 insertions(+), 0 deletions(-)
>>
>> diff --git a/input.c b/input.c
>> index 6968b31..680d756 100644
>> --- a/input.c
>> +++ b/input.c
>> @@ -37,6 +37,152 @@ static QTAILQ_HEAD(, QEMUPutMouseEntry) mouse_handlers =
>> static NotifierList mouse_mode_notifiers =
>> NOTIFIER_LIST_INITIALIZER(mouse_mode_notifiers);
>>
>> +static const int key_defs[] = {
>
> Weird, I expected this would brake the build, as the new table is unused.
That's a side effect of 'const'.
/-F
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2012-08-03 18:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 2:48 [Qemu-devel] [PATCH v6 0/7] convert sendkey to qapi Amos Kong
2012-08-03 2:48 ` [Qemu-devel] [PATCH v6 1/7] fix doc of using raw values with sendkey Amos Kong
2012-08-03 2:48 ` [Qemu-devel] [PATCH v6 2/7] monitor: rename keyname '<' to 'less' Amos Kong
2012-08-03 2:48 ` [Qemu-devel] [PATCH v6 3/7] hmp: rename arguments Amos Kong
2012-08-03 2:48 ` [Qemu-devel] [PATCH v6 4/7] qapi: generate list struct and visit_list for enum Amos Kong
2012-08-03 2:48 ` [Qemu-devel] [PATCH v6 5/7] add the QKeyCode enum and the key_defs table Amos Kong
2012-08-03 13:32 ` Luiz Capitulino
2012-08-03 18:00 ` Andreas Färber [this message]
2012-08-03 20:32 ` Luiz Capitulino
2012-08-13 8:50 ` Amos Kong
2012-08-03 2:48 ` [Qemu-devel] [PATCH v6 6/7] add functions to convert key/code to index of mapping table Amos Kong
2012-08-03 2:48 ` [Qemu-devel] [PATCH v6 7/7] qapi: convert sendkey Amos Kong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=501C11CF.3050907@suse.de \
--to=afaerber@suse.de \
--cc=akong@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=eblake@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.