diff options
author | Markus Armbruster <armbru@redhat.com> | 2017-04-27 10:41:24 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-05-09 09:14:40 +0200 |
commit | 6c02258e143700314ebf268dae47eb23db17d1cf (patch) | |
tree | 4bcf39ccc07b267463fa56bad4a5e29bfeaefd48 | |
parent | 10e37839ed7c420c9190e20a51ed7ff39f1e1cff (diff) | |
download | qemu-6c02258e143700314ebf268dae47eb23db17d1cf.zip qemu-6c02258e143700314ebf268dae47eb23db17d1cf.tar.gz qemu-6c02258e143700314ebf268dae47eb23db17d1cf.tar.bz2 |
qobject-input-visitor: Document full_name_nth()
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1493282486-28338-3-git-send-email-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r-- | qapi/qobject-input-visitor.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qapi/qobject-input-visitor.c b/qapi/qobject-input-visitor.c index 865e948..2530959 100644 --- a/qapi/qobject-input-visitor.c +++ b/qapi/qobject-input-visitor.c @@ -55,6 +55,17 @@ static QObjectInputVisitor *to_qiv(Visitor *v) return container_of(v, QObjectInputVisitor, visitor); } +/* + * Find the full name of something @qiv is currently visiting. + * @qiv is visiting something named @name in the stack of containers + * @qiv->stack. + * If @n is zero, return its full name. + * If @n is positive, return the full name of the @n-th container + * counting from the top. The stack of containers must have at least + * @n elements. + * The returned string is valid until the next full_name_nth(@v) or + * destruction of @v. + */ static const char *full_name_nth(QObjectInputVisitor *qiv, const char *name, int n) { |