mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-26 22:25:12 -07: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:
parent
d2f95f4d48
commit
4d2d5c41a9
8 changed files with 31 additions and 8 deletions
|
|
@ -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_;
|
||||
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ typedef struct QEMUSGList QEMUSGList;
|
|||
typedef struct QEMUTimer QEMUTimer;
|
||||
typedef struct QEMUTimerListGroup QEMUTimerListGroup;
|
||||
typedef struct QObject QObject;
|
||||
typedef struct QNull QNull;
|
||||
typedef struct RAMBlock RAMBlock;
|
||||
typedef struct Range Range;
|
||||
typedef struct SerialState SerialState;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue