mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
move useful type definitons to osdep.h
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a35e1c177d
commit
f0d99ad711
@ -163,9 +163,6 @@ extern PropertyInfo qdev_prop_macaddr;
|
||||
extern PropertyInfo qdev_prop_drive;
|
||||
extern PropertyInfo qdev_prop_pci_devfn;
|
||||
|
||||
#define typeof_field(type, field) typeof(((type *)0)->field)
|
||||
#define type_check(t1,t2) ((t1*)0 - (t2*)0)
|
||||
|
||||
#define DEFINE_PROP(_name, _state, _field, _prop, _type) { \
|
||||
.name = (_name), \
|
||||
.info = &(_prop), \
|
||||
|
Loading…
Reference in New Issue
Block a user