Received: from eggs.gnu.org ([2001:4830:134:3::10]:58048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btaYp-00050j-DH for qemu-devel@nongnu.org; Mon, 10 Oct 2016 09:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btaYm-0007EZ-Dm for qemu-devel@nongnu.org; Mon, 10 Oct 2016 09:24:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btaYm-0007E7-7f for qemu-devel@nongnu.org; Mon, 10 Oct 2016 09:24:04 -0400 From: Eric Blake Date: Mon, 10 Oct 2016 08:23:43 -0500 Message-Id: <1476105837-9861-2-git-send-email-eblake@redhat.com> In-Reply-To: <1476105837-9861-1-git-send-email-eblake@redhat.com> References: <1476105837-9861-1-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH v6 01/15] qapi: Visitor documentation tweak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com, Michael Roth Make it clear that the name parameter to visit_start_struct() has the same semantics as for visit_start_int(). Signed-off-by: Eric Blake --- v6: split into separate patch --- include/qapi/visitor.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/qapi/visitor.h b/include/qapi/visitor.h index 6c77a91..4dd7532 100644 --- a/include/qapi/visitor.h +++ b/include/qapi/visitor.h @@ -60,11 +60,12 @@ * visitors are declared here; the remaining visitors are generated in * qapi-visit.h. * - * 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. + * The @name parameter of visit_type_FOO() and visit_start_OBJECT() + * 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. * * FIXME: Clients must pass NULL for @name when visiting a member of a * list, but this leads to poor error messages; it might be nicer to -- 2.7.4