[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 07/22] qapi: qapi_visit.py, support for visit
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v3 07/22] qapi: qapi_visit.py, support for visiting non-pointer/embedded structs |
Date: |
Fri, 05 Oct 2012 10:09:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 |
Il 04/10/2012 19:33, Michael Roth ha scritto:
> + elif argentry.has_key('<embedded struct>'):
Just <embedded> perhaps?
Paolo
> + tmp_ptr_name = "%s_%s_ptr" %
> (c_var(field_prefix).replace(".", ""), c_var(argname))
> + ret += mcgen('''
> +%(type)s *%(tmp_ptr)s = &(*obj)->%(c_prefix)s%(c_name)s;
> +visit_type_%(type)s(m, (obj && *obj) ? &%(tmp_ptr)s : NULL, "%(name)s",
> errp);
> +''',
> + c_prefix=c_var(field_prefix),
> prefix=field_prefix,
> + type=type_name(argentry['type']),
> c_name=c_var(argname),
> + name=argname, tmp_ptr=tmp_ptr_name)
- [Qemu-devel] [PATCH v3 05/22] qapi: qapi_visit.py, support arrays and complex qapi definitions, (continued)
- [Qemu-devel] [PATCH v3 05/22] qapi: qapi_visit.py, support arrays and complex qapi definitions, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 06/22] qapi: qapi_visit.py, support generating static functions, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 04/22] qapi: qapi_visit.py, make code useable as module, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 10/22] qapi: QmpInputVisitor, implement array handling, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 08/22] qapi: add visitor interfaces for C arrays, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 09/22] qapi: QmpOutputVisitor, implement array handling, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 12/22] qapi: add open-coded visitor for struct tm types, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 07/22] qapi: qapi_visit.py, support for visiting non-pointer/embedded structs, Michael Roth, 2012/10/04
- Re: [Qemu-devel] [PATCH v3 07/22] qapi: qapi_visit.py, support for visiting non-pointer/embedded structs,
Paolo Bonzini <=
- [Qemu-devel] [PATCH v3 11/22] qapi: qapi.py, make json parser more robust, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 15/22] module additions for schema registration, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 18/22] qidl: add lexer library (based on QC parser), Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 17/22] qidl: add documentation, Michael Roth, 2012/10/04
- [Qemu-devel] [PATCH v3 21/22] qidl: qidl.h, definitions for qidl annotations, Michael Roth, 2012/10/04