All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Benoît Canet" <benoit.canet@irqsave.net>, qemu-devel@nongnu.org
Cc: anthony@codemonkey.ws, Benoit Canet <benoit@irqsave.net>,
	armbru@redhat.com, wenchaoqemu@gmail.com, lcapitulino@redhat.com
Subject: Re: [Qemu-devel] [PATCH 2/2] qapi: Create an include directive for use in the JSON description files.
Date: Wed, 26 Mar 2014 20:58:09 -0600	[thread overview]
Message-ID: <533393C1.90509@redhat.com> (raw)
In-Reply-To: <1395417673-17710-3-git-send-email-benoit.canet@irqsave.net>

[-- Attachment #1: Type: text/plain, Size: 1401 bytes --]

On 03/21/2014 10:01 AM, Benoît Canet wrote:
> The new directive in the form { 'include': 'path/to/file.json' } will trigger the
> parsing of path/to/file.json.
> The directive will be replaced by the result of the parsing.
> 
> This will allow for easy modularisation of qapi JSON descriptions files.
> 
> The qapi commands now takes the input file path as first argument to make it
> easier to detect include loops: stdin would not allow to do this.

It would be better to split this into two patches - one that alters the
framework to pass filenames and updates the testsuite to reflect the
improved error messages in existing tests, and the second to add the new
'include' directive with the new tests.

> 
> Signed-off-by: Benoit Canet <benoit@irqsave.net>
> ---
>  Makefile                                           | 24 +++++------
>  scripts/qapi-commands.py                           |  8 +++-
>  scripts/qapi-types.py                              |  8 +++-
>  scripts/qapi-visit.py                              |  8 +++-
>  scripts/qapi.py                                    | 46 +++++++++++++++++-----
>  tests/Makefile                                     | 16 ++++----

Missing a change to docs/qapi-code-gen.txt.  New features require
documentation.

-- 
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 --]

      parent reply	other threads:[~2014-03-27  2:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21 16:01 [Qemu-devel] [PATCH 0/2] Create and include directive for QAPI JSON files Benoît Canet
2014-03-21 16:01 ` [Qemu-devel] [PATCH 1/2] test-qapi: Make test-qapi.py spit useful error messages Benoît Canet
2014-03-27  2:47   ` Eric Blake
2014-03-21 16:01 ` [Qemu-devel] [PATCH 2/2] qapi: Create an include directive for use in the JSON description files Benoît Canet
2014-03-27  1:49   ` Wenchao Xia
2014-03-27  2:58     ` Eric Blake
2014-03-27  2:58   ` Eric Blake [this message]

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=533393C1.90509@redhat.com \
    --to=eblake@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=armbru@redhat.com \
    --cc=benoit.canet@irqsave.net \
    --cc=benoit@irqsave.net \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wenchaoqemu@gmail.com \
    /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.