mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qapi: Separate type QNull from QObject
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
df95f1a298
commit
006ca09f30
7 changed files with 28 additions and 22 deletions
|
@ -1012,7 +1012,7 @@ static void keyword_literal(void)
|
|||
{
|
||||
QObject *obj;
|
||||
QBool *qbool;
|
||||
QObject *null;
|
||||
QNull *null;
|
||||
QString *str;
|
||||
|
||||
obj = qobject_from_json("true", &error_abort);
|
||||
|
@ -1053,10 +1053,10 @@ static void keyword_literal(void)
|
|||
g_assert(qobject_type(obj) == QTYPE_QNULL);
|
||||
|
||||
null = qnull();
|
||||
g_assert(null == obj);
|
||||
g_assert(QOBJECT(null) == obj);
|
||||
|
||||
qobject_decref(obj);
|
||||
qobject_decref(null);
|
||||
QDECREF(null);
|
||||
}
|
||||
|
||||
typedef struct LiteralQDictEntry LiteralQDictEntry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue