mirror of https://github.com/xemu-project/xemu.git
qapi: Belatedly update visitor.h's big comment for QAPI modules
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200424084338.26803-2-armbru@redhat.com>
This commit is contained in:
parent
2500f6f30b
commit
3777d36e67
|
@ -58,7 +58,7 @@
|
||||||
*
|
*
|
||||||
* where T is FOO for scalar types, and FOO * otherwise. The scalar
|
* where T is FOO for scalar types, and FOO * otherwise. The scalar
|
||||||
* visitors are declared here; the remaining visitors are generated in
|
* visitors are declared here; the remaining visitors are generated in
|
||||||
* qapi-visit.h.
|
* qapi-visit-MODULE.h.
|
||||||
*
|
*
|
||||||
* The @name parameter of visit_type_FOO() describes the relation
|
* The @name parameter of visit_type_FOO() describes the relation
|
||||||
* between this QAPI value and its parent container. When visiting
|
* between this QAPI value and its parent container. When visiting
|
||||||
|
@ -86,16 +86,16 @@
|
||||||
* by manual construction.
|
* by manual construction.
|
||||||
*
|
*
|
||||||
* For the QAPI object types (structs, unions, and alternates), there
|
* For the QAPI object types (structs, unions, and alternates), there
|
||||||
* is an additional generated function in qapi-visit.h compatible
|
* is an additional generated function in qapi-visit-MODULE.h
|
||||||
* with:
|
* compatible with:
|
||||||
*
|
*
|
||||||
* void visit_type_FOO_members(Visitor *v, FOO *obj, Error **errp);
|
* void visit_type_FOO_members(Visitor *v, FOO *obj, Error **errp);
|
||||||
*
|
*
|
||||||
* for visiting the members of a type without also allocating the QAPI
|
* for visiting the members of a type without also allocating the QAPI
|
||||||
* struct.
|
* struct.
|
||||||
*
|
*
|
||||||
* Additionally, in qapi-types.h, all QAPI pointer types (structs,
|
* Additionally, QAPI pointer types (structs, unions, alternates, and
|
||||||
* unions, alternates, and lists) have a generated function compatible
|
* lists) have a generated function in qapi-types-MODULE.h compatible
|
||||||
* with:
|
* with:
|
||||||
*
|
*
|
||||||
* void qapi_free_FOO(FOO *obj);
|
* void qapi_free_FOO(FOO *obj);
|
||||||
|
|
Loading…
Reference in New Issue