[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'n
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type |
Date: |
Tue, 18 Jul 2017 09:53:25 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 07/18/2017 08:41 AM, Markus Armbruster wrote:
> I expect the 'null' type to be useful mostly for members of alternate
> types.
>
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
> +++ b/include/qapi/qmp/qobject.h
> @@ -93,9 +93,9 @@ static inline QType qobject_type(const QObject *obj)
> return obj->type;
> }
>
> -typedef struct QNull {
> +struct QNull {
This line was just added...
> QObject base;
> -} QNull;
> +};
>
> extern QNull qnull_;
>
> diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
> index 2706aab..ba69bd8 100644
> --- a/include/qemu/typedefs.h
> +++ b/include/qemu/typedefs.h
> @@ -87,6 +87,7 @@ typedef struct QEMUSGList QEMUSGList;
> typedef struct QEMUTimer QEMUTimer;
> typedef struct QEMUTimerListGroup QEMUTimerListGroup;
> typedef struct QObject QObject;
> +typedef struct QNull QNull;
...is it worth hoisting this typedef into 2/10 for less churn?
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH for-2.10 07/10] migration: Clean up around tls_creds, tls_hostname, (continued)
- [Qemu-devel] [PATCH for-2.10 02/10] qapi: Use QNull for a more regular visit_type_null(), Markus Armbruster, 2017/07/18
- [Qemu-devel] [PATCH for-2.10 05/10] block: Use JSON null instead of "" to disable backing file, Markus Armbruster, 2017/07/18
- [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Markus Armbruster, 2017/07/18
- Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type,
Eric Blake <=
- Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Eric Blake, 2017/07/18
- Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Markus Armbruster, 2017/07/18
- Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Markus Armbruster, 2017/07/18
- Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Eric Blake, 2017/07/18
- Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Markus Armbruster, 2017/07/18
- Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Eric Blake, 2017/07/18
- Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Markus Armbruster, 2017/07/18
- Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Markus Armbruster, 2017/07/18
Re: [Qemu-devel] [PATCH for-2.10 03/10] qapi: Introduce a first class 'null' type, Daniel P. Berrange, 2017/07/18
[Qemu-devel] [PATCH for-2.10 06/10] hmp: Clean up and simplify hmp_migrate_set_parameter(), Markus Armbruster, 2017/07/18