diff options
author | Markus Armbruster | 2017-03-03 13:32:45 +0100 |
---|---|---|
committer | Markus Armbruster | 2017-03-05 09:14:20 +0100 |
commit | a4a1c70dc759e5b81627e96564f344ab43ea86eb (patch) | |
tree | 56d44358c6e76c57a01aed7ee789b68965dcc2ff /qapi/trace-events | |
parent | test-qobject-input-visitor: Cover missing nested struct member (diff) | |
download | qemu-a4a1c70dc759e5b81627e96564f344ab43ea86eb.tar.gz qemu-a4a1c70dc759e5b81627e96564f344ab43ea86eb.tar.xz qemu-a4a1c70dc759e5b81627e96564f344ab43ea86eb.zip |
qapi: Make input visitors detect unvisited list tails
Fix the design flaw demonstrated in the previous commit: new method
check_list() lets input visitors report that unvisited input remains
for a list, exactly like check_struct() lets them report that
unvisited input remains for a struct or union.
Implement the method for the qobject input visitor (straightforward),
and the string input visitor (less so, due to the magic list syntax
there). The opts visitor's list magic is even more impenetrable, and
all I can do there today is a stub with a FIXME comment. No worse
than before.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1488544368-30622-26-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qapi/trace-events')
-rw-r--r-- | qapi/trace-events | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qapi/trace-events b/qapi/trace-events index 9cbb61b2bd..339cacf0ad 100644 --- a/qapi/trace-events +++ b/qapi/trace-events @@ -8,6 +8,7 @@ visit_end_struct(void *v, void *obj) "v=%p obj=%p" visit_start_list(void *v, const char *name, void *obj, size_t size) "v=%p name=%s obj=%p size=%zu" visit_next_list(void *v, void *tail, size_t size) "v=%p tail=%p size=%zu" +visit_check_list(void *v) "v=%p" visit_end_list(void *v, void *obj) "v=%p obj=%p" visit_start_alternate(void *v, const char *name, void *obj, size_t size, bool promote_int) "v=%p name=%s obj=%p size=%zu promote_int=%d" |