mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
qapi: Use QNull for a more regular visit_type_null()
Make visit_type_null() take an @obj argument like its buddies. This helps keep the next commit simple. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@@ -103,8 +103,12 @@ static void qapi_dealloc_type_anything(Visitor *v, const char *name,
|
||||
}
|
||||
}
|
||||
|
||||
static void qapi_dealloc_type_null(Visitor *v, const char *name, Error **errp)
|
||||
static void qapi_dealloc_type_null(Visitor *v, const char *name,
|
||||
QNull **obj, Error **errp)
|
||||
{
|
||||
if (obj) {
|
||||
QDECREF(*obj);
|
||||
}
|
||||
}
|
||||
|
||||
static void qapi_dealloc_free(Visitor *v)
|
||||
|
||||
Reference in New Issue
Block a user