All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH PULL v2 01/11] qapi: allow override of default enum prefix naming
Date: Tue, 15 Sep 2015 08:00:28 -0600	[thread overview]
Message-ID: <55F8247C.4020903@redhat.com> (raw)
In-Reply-To: <1442312227-19153-2-git-send-email-berrange@redhat.com>

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

On 09/15/2015 04:16 AM, Daniel P. Berrange wrote:
> The camel_to_upper() method applies some heuristics to turn
> a mixed case type name into an all-uppercase name. This is
> used for example, to generate enum constant name prefixes.
> 
> The heuristics don't also generate a satisfactory name
> though. eg
> 
>   { 'enum': 'QCryptoTLSCredsEndpoint',
>     'data': ['client', 'server']}
> 
> Results in Q_CRYPTOTLS_CREDS_ENDPOINT_CLIENT. This has
> an undesirable _ after the initial Q and is missing an
> _ between the CRYPTO & TLS strings.
> 
> Rather than try to add more and more heuristics to try
> to cope with this, simply allow the QAPI schema to
> specify the desired enum constant prefix explicitly.
> 
> eg
> 
>   { 'enum': 'QCryptoTLSCredsEndpoint',
>     'prefix': 'QCRYPTO_TLS_CREDS_ENDPOINT',
>     'data': ['client', 'server']}
> 
> Now gives the QCRYPTO_TLS_CREDS_ENDPOINT_CLIENT name.
> 
> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
> ---

Since you are doing a v3; if you want, you can add:
Reviewed-by: Eric Blake <eblake@redhat.com>

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

  reply	other threads:[~2015-09-15 14:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-15 10:16 [Qemu-devel] [PATCH PULL v2 00/11] Extract TLS handling code from VNC server Daniel P. Berrange
2015-09-15 10:16 ` [Qemu-devel] [PATCH PULL v2 01/11] qapi: allow override of default enum prefix naming Daniel P. Berrange
2015-09-15 14:00   ` Eric Blake [this message]
2015-09-15 10:16 ` [Qemu-devel] [PATCH PULL v2 02/11] tests: remove repetition in unit test object deps Daniel P. Berrange
2015-09-15 10:16 ` [Qemu-devel] [PATCH PULL v2 03/11] crypto: move crypto objects out of libqemuutil.la Daniel P. Berrange
2015-09-15 10:17 ` [Qemu-devel] [PATCH PULL v2 04/11] qom: allow QOM to be linked into tools binaries Daniel P. Berrange
2015-09-15 10:17 ` [Qemu-devel] [PATCH PULL v2 05/11] crypto: introduce new base module for TLS credentials Daniel P. Berrange
2015-09-15 10:17 ` [Qemu-devel] [PATCH PULL v2 06/11] crypto: introduce new module for TLS anonymous credentials Daniel P. Berrange
2015-09-15 10:17 ` [Qemu-devel] [PATCH PULL v2 07/11] crypto: introduce new module for TLS x509 credentials Daniel P. Berrange
2015-09-15 10:17 ` [Qemu-devel] [PATCH PULL v2 08/11] crypto: add sanity checking of " Daniel P. Berrange
2015-09-15 10:17 ` [Qemu-devel] [PATCH PULL v2 09/11] crypto: introduce new module for handling TLS sessions Daniel P. Berrange
2015-09-15 10:17 ` [Qemu-devel] [PATCH PULL v2 10/11] ui: fix return type for VNC I/O functions to be ssize_t Daniel P. Berrange
2015-09-15 10:17 ` [Qemu-devel] [PATCH PULL v2 11/11] ui: convert VNC server to use QCryptoTLSSession Daniel P. Berrange
2015-09-15 11:23 ` [Qemu-devel] [PATCH PULL v2 00/11] Extract TLS handling code from VNC server Peter Maydell
2015-09-15 11:41   ` Daniel P. Berrange
2015-09-15 14:36     ` Daniel P. Berrange

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=55F8247C.4020903@redhat.com \
    --to=eblake@redhat.com \
    --cc=berrange@redhat.com \
    --cc=peter.maydell@linaro.org \
    --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.