diff options
Diffstat (limited to 'include/hw/block/swim.h')
-rw-r--r-- | include/hw/block/swim.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/hw/block/swim.h b/include/hw/block/swim.h index 9d8b65c..f013d63 100644 --- a/include/hw/block/swim.h +++ b/include/hw/block/swim.h @@ -13,6 +13,7 @@ #include "qemu/osdep.h" #include "hw/sysbus.h" +#include "qom/object.h" #define SWIM_MAX_FD 2 @@ -67,10 +68,11 @@ struct SWIMCtrl { }; #define TYPE_SWIM "swim" +typedef struct Swim Swim; #define SWIM(obj) OBJECT_CHECK(Swim, (obj), TYPE_SWIM) -typedef struct Swim { +struct Swim { SysBusDevice parent_obj; SWIMCtrl ctrl; -} Swim; +}; #endif |