All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Capitulino <lcapitulino@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qapi: Show qapi-commands.py invocation in qapi-code-gen.txt
Date: Thu, 15 May 2014 15:16:37 -0400	[thread overview]
Message-ID: <20140515151637.0b4d8e61@redhat.com> (raw)
In-Reply-To: <1400081243-21175-1-git-send-email-armbru@redhat.com>

On Wed, 14 May 2014 17:27:23 +0200
Markus Armbruster <armbru@redhat.com> wrote:

> While there, pare down the shell prompts.
> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> Note: to be applied on top of "[PATCH v2 00/12] qapi: Purge
> error_is_set()".

Applied to the qmp branch, thanks.

> 
>  docs/qapi-code-gen.txt | 27 +++++++++++++--------------
>  1 file changed, 13 insertions(+), 14 deletions(-)
> 
> diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt
> index 1948946..867d124 100644
> --- a/docs/qapi-code-gen.txt
> +++ b/docs/qapi-code-gen.txt
> @@ -230,14 +230,13 @@ node structure that can be used to chain together a list of such types in
>  case we want to accept/return a list of this type with a command), and a
>  command which takes that type as a parameter and returns the same type:
>  
> -    mdroth@illuin:~/w/qemu2.git$ cat example-schema.json
> +    $ cat example-schema.json
>      { 'type': 'UserDefOne',
>        'data': { 'integer': 'int', 'string': 'str' } }
>  
>      { 'command': 'my-command',
>        'data':    {'arg1': 'UserDefOne'},
>        'returns': 'UserDefOne' }
> -    mdroth@illuin:~/w/qemu2.git$
>  
>  === scripts/qapi-types.py ===
>  
> @@ -255,9 +254,9 @@ created code.
>  
>  Example:
>  
> -    mdroth@illuin:~/w/qemu2.git$ python scripts/qapi-types.py \
> -      --output-dir="qapi-generated" --prefix="example-" --input-file=example-schema.json
> -    mdroth@illuin:~/w/qemu2.git$ cat qapi-generated/example-qapi-types.c
> +    $ python scripts/qapi-types.py --output-dir="qapi-generated" \
> +    --prefix="example-" --input-file=example-schema.json
> +    $ cat qapi-generated/example-qapi-types.c
>  [Uninteresting stuff omitted...]
>  
>      void qapi_free_UserDefOneList(UserDefOneList * obj)
> @@ -290,7 +289,7 @@ Example:
>          qapi_dealloc_visitor_cleanup(md);
>      }
>  
> -    mdroth@illuin:~/w/qemu2.git$ cat qapi-generated/example-qapi-types.h
> +    $ cat qapi-generated/example-qapi-types.h
>  [Uninteresting stuff omitted...]
>  
>      #ifndef EXAMPLE_QAPI_TYPES_H
> @@ -342,9 +341,9 @@ $(prefix)qapi-visit.h: declarations for previously mentioned visitor
>  
>  Example:
>  
> -    mdroth@illuin:~/w/qemu2.git$ python scripts/qapi-visit.py \
> -        --output-dir="qapi-generated" --prefix="example-" --input-file=example-schema.json
> -    mdroth@illuin:~/w/qemu2.git$ cat qapi-generated/example-qapi-visit.c
> +    $ python scripts/qapi-visit.py --output-dir="qapi-generated"
> +    --prefix="example-" --input-file=example-schema.json
> +    $ cat qapi-generated/example-qapi-visit.c
>  [Uninteresting stuff omitted...]
>  
>      static void visit_type_UserDefOne_fields(Visitor *m, UserDefOne ** obj, Error **errp)
> @@ -400,7 +399,9 @@ Example:
>      out:
>          error_propagate(errp, err);
>      }
> -    mdroth@illuin:~/w/qemu2.git$ cat qapi-generated/example-qapi-visit.h
> +    $ python scripts/qapi-commands.py --output-dir="qapi-generated" \
> +    --prefix="example-" --input-file=example-schema.json
> +    $ cat qapi-generated/example-qapi-visit.h
>  [Uninteresting stuff omitted...]
>  
>      #ifndef EXAMPLE_QAPI_VISIT_H
> @@ -412,7 +413,6 @@ Example:
>      void visit_type_UserDefOneList(Visitor *m, UserDefOneList ** obj, const char *name, Error **errp);
>  
>      #endif
> -    mdroth@illuin:~/w/qemu2.git$
>  
>  === scripts/qapi-commands.py ===
>  
> @@ -433,7 +433,7 @@ $(prefix)qmp-commands.h: Function prototypes for the QMP commands
>  
>  Example:
>  
> -    mdroth@illuin:~/w/qemu2.git$ cat qapi-generated/example-qmp-marshal.c
> +    $ cat qapi-generated/example-qmp-marshal.c
>  [Uninteresting stuff omitted...]
>  
>      static void qmp_marshal_output_my_command(UserDefOne * ret_in, QObject **ret_out, Error **errp)
> @@ -497,7 +497,7 @@ Example:
>      }
>  
>      qapi_init(qmp_init_marshal);
> -    mdroth@illuin:~/w/qemu2.git$ cat qapi-generated/example-qmp-commands.h
> +    $ cat qapi-generated/example-qmp-commands.h
>  [Uninteresting stuff omitted...]
>  
>      #ifndef EXAMPLE_QMP_COMMANDS_H
> @@ -510,4 +510,3 @@ Example:
>      UserDefOne * qmp_my_command(UserDefOne * arg1, Error **errp);
>  
>      #endif
> -    mdroth@illuin:~/w/qemu2.git$

      parent reply	other threads:[~2014-05-15 19:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14 15:27 [Qemu-devel] [PATCH] qapi: Show qapi-commands.py invocation in qapi-code-gen.txt Markus Armbruster
2014-05-14 16:35 ` Eric Blake
2014-05-15 19:16 ` Luiz Capitulino [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=20140515151637.0b4d8e61@redhat.com \
    --to=lcapitulino@redhat.com \
    --cc=armbru@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.