mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 11:29:26 +00:00
qapi: Introduce a first class 'null' type
I expect the 'null' type to be useful mostly for members of alternate types. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
@ -93,9 +93,9 @@ static inline QType qobject_type(const QObject *obj)
|
||||
return obj->type;
|
||||
}
|
||||
|
||||
typedef struct QNull {
|
||||
struct QNull {
|
||||
QObject base;
|
||||
} QNull;
|
||||
};
|
||||
|
||||
extern QNull qnull_;
|
||||
|
||||
|
Reference in New Issue
Block a user