aboutsummaryrefslogtreecommitdiff
path: root/include/qapi
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-04-24 10:43:29 +0200
committerMarkus Armbruster <armbru@redhat.com>2020-04-30 06:51:15 +0200
commit8e08bf4ea24c3e6e07fab2c1b5bdcc7b104012c4 (patch)
treee3f489babc1f3891cf2c3d4523b46e7c7d32bf8e /include/qapi
parent554d6586ae96216771fe701c9d3a321e2adb057b (diff)
downloadqemu-8e08bf4ea24c3e6e07fab2c1b5bdcc7b104012c4.zip
qemu-8e08bf4ea24c3e6e07fab2c1b5bdcc7b104012c4.tar.gz
qemu-8e08bf4ea24c3e6e07fab2c1b5bdcc7b104012c4.tar.bz2
qapi: Assert incomplete object occurs only in dealloc visitor
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200424084338.26803-7-armbru@redhat.com>
Diffstat (limited to 'include/qapi')
-rw-r--r--include/qapi/visitor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qapi/visitor.h b/include/qapi/visitor.h
index a425ea5..2d40d2f 100644
--- a/include/qapi/visitor.h
+++ b/include/qapi/visitor.h
@@ -479,6 +479,11 @@ void visit_type_enum(Visitor *v, const char *name, int *obj,
*/
bool visit_is_input(Visitor *v);
+/*
+ * Check if visitor is a dealloc visitor.
+ */
+bool visit_is_dealloc(Visitor *v);
+
/*** Visiting built-in types ***/
/*