mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06: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:
parent
006ca09f30
commit
d2f95f4d48
15 changed files with 60 additions and 25 deletions
|
@ -445,11 +445,12 @@ static void test_visitor_out_alternate(TestOutputVisitorData *data,
|
|||
static void test_visitor_out_null(TestOutputVisitorData *data,
|
||||
const void *unused)
|
||||
{
|
||||
QNull *null = NULL;
|
||||
QDict *qdict;
|
||||
QObject *nil;
|
||||
|
||||
visit_start_struct(data->ov, NULL, NULL, 0, &error_abort);
|
||||
visit_type_null(data->ov, "a", &error_abort);
|
||||
visit_type_null(data->ov, "a", &null, &error_abort);
|
||||
visit_check_struct(data->ov, &error_abort);
|
||||
visit_end_struct(data->ov, NULL);
|
||||
qdict = qobject_to_qdict(visitor_get(data));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue