Re: [Qemu-devel] [PATCH v6 09/23] hmp: Improve use of qapi visitor

2015-12-04 Thread Eric Blake
On 11/25/2015 05:23 PM, Eric Blake wrote: > Cache the visitor in a local variable instead of repeatedly > calling the accessor. Pass NULL for the visit_start_struct() > object (which matches the fact that we were already passing 0 > for the size argument, because we aren't using the visit to > all

[Qemu-devel] [PATCH v6 09/23] hmp: Improve use of qapi visitor

2015-11-25 Thread Eric Blake
Cache the visitor in a local variable instead of repeatedly calling the accessor. Pass NULL for the visit_start_struct() object (which matches the fact that we were already passing 0 for the size argument, because we aren't using the visit to allocate a qapi struct). Pass "object" for the struct