From: Eric Blake <eblake@redhat.com>
To: Romain Naour <romain.naour@openwide.fr>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/1] genius: add genius serial mouse emulation
Date: Mon, 13 Jan 2014 15:45:01 -0700 [thread overview]
Message-ID: <52D46C6D.8070300@redhat.com> (raw)
In-Reply-To: <1389652389-22241-2-git-send-email-romain.naour@openwide.fr>
[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]
On 01/13/2014 03:33 PM, Romain Naour wrote:
> This patch adds the emulation for a serial Genius mouse using
> Mouse Systems protocol (5bytes).
> This protocol is compatible with most 3-button serial mouse.
>
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> ---
> backends/Makefile.objs | 2 +-
> backends/gnmouse.c | 339 +++++++++++++++++++++++++++++++++++++++++++++++++
> include/sysemu/char.h | 3 +
> qapi-schema.json | 1 +
> qemu-char.c | 4 +
> qemu-options.hx | 10 ++
> 6 files changed, 358 insertions(+), 1 deletion(-)
> create mode 100644 backends/gnmouse.c
> +++ b/backends/gnmouse.c
> @@ -0,0 +1,339 @@
> +/*
> + * QEMU Genius GM-6 serial mouse emulation
> + *
> + * Adapted from msmouse
> + *
> + * Copyright (c) 2012 Romain Naour
It is now 2014.
> +++ b/qapi-schema.json
> @@ -3617,6 +3617,7 @@
> 'null' : 'ChardevDummy',
> 'mux' : 'ChardevMux',
> 'msmouse': 'ChardevDummy',
> + 'gnmouse': 'ChardevDummy',
> 'braille': 'ChardevDummy',
> 'stdio' : 'ChardevStdio',
> 'console': 'ChardevDummy',
Ideally, you should also document that this branch was not always
available in the union (I was expecting to see a doc line with '(since
2.0)' somewhere in the patch); but looking at the existing schema,
you're just copying bad practice of adding to an already
under-documented union.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-01-13 22:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-13 22:33 [Qemu-devel] [PATCH 0/1] Genius serial mouse emulation Romain Naour
2014-01-13 22:33 ` [Qemu-devel] [PATCH 1/1] genius: add genius " Romain Naour
2014-01-13 22:45 ` Eric Blake [this message]
2014-01-13 23:47 ` Romain Naour
2014-01-14 16:37 ` Paolo Bonzini
2014-01-14 22:06 ` Romain Naour
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=52D46C6D.8070300@redhat.com \
--to=eblake@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=romain.naour@openwide.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).