]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
qapi: Document intended use of @name within alternate visits
authorMarkus Armbruster <armbru@redhat.com>
Thu, 27 Apr 2017 08:41:25 +0000 (10:41 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 9 May 2017 07:14:40 +0000 (09:14 +0200)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1493282486-28338-4-git-send-email-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
include/qapi/visitor.h

index 1a1b62012b8e493cda237a021896fa097f4596fa..b0e233df761383e7ea383f11381554ac890dffd6 100644 (file)
  * The @name parameter of visit_type_FOO() describes the relation
  * between this QAPI value and its parent container.  When visiting
  * the root of a tree, @name is ignored; when visiting a member of an
- * object, @name is the key associated with the value; and when
- * visiting a member of a list, @name is NULL.
+ * object, @name is the key associated with the value; when visiting a
+ * member of a list, @name is NULL; and when visiting the member of an
+ * alternate, @name should equal the name used for visiting the
+ * alternate.
  *
  * The visit_type_FOO() functions expect a non-null @obj argument;
  * they allocate *@obj during input visits, leave it unchanged on