[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v10 10/25] qapi: Improve generated event use of
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v10 10/25] qapi: Improve generated event use of qapi visitor |
Date: |
Tue, 02 Feb 2016 08:52:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Eric Blake <address@hidden> writes:
> On 02/01/2016 05:31 AM, Markus Armbruster wrote:
>
>>> |+ visit_start_struct(v, NULL, NULL, "ACPI_DEVICE_OST", 0, &err);
>>> | if (err) {
>>> | goto out;
>>> | }
>>> | visit_type_ACPIOSTInfo(v, &info, "info", &err);
>>> | if (err) {
>>> |- goto out;
>>> |+ goto out_obj;
>>> | }
>>> |- visit_end_struct(v, &err);
>>> |+out_obj:
>>> |+ visit_end_struct(v, err ? NULL : &err);
>>
>> Slightly awkward example, because out_obj is pointless in this
>> degenerated case. You could pick one with multiple members (thus
>> multiple goto out_obj), or do pseudo-code hinting at multiple members.
>
> DEVICE_DELETED, DEVICE_TRAY_MOVED, MEM_UNPLUG_ERROR,
> NET_RX_FILTER_CHANGED, and SPICE_CONNECTED are nice candidates (two
> members instead of one). Do you want to take care of redoing any
> portion of the commit message?
Can do. Unless something comes along that requires a respin.