diff options
author | Andreas Färber | 2013-08-01 18:45:02 +0200 |
---|---|---|
committer | Andreas Färber | 2014-02-14 21:07:20 +0100 |
commit | 5c570902559fbc113154e545c4b0749cd4318b1d (patch) | |
tree | 809f66ab1037ab8fd7dc47d2390f1bf52c547493 /hw/char/ipack.h | |
parent | tests: Add ipoctal232 qtest (diff) | |
download | qemu-5c570902559fbc113154e545c4b0749cd4318b1d.tar.gz qemu-5c570902559fbc113154e545c4b0749cd4318b1d.tar.xz qemu-5c570902559fbc113154e545c4b0749cd4318b1d.zip |
ipack: Convert to QOM realize
Acked-by: Alberto Garcia <agarcia@igalia.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/char/ipack.h')
-rw-r--r-- | hw/char/ipack.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/char/ipack.h b/hw/char/ipack.h index f8dc0f242a..b62066fca7 100644 --- a/hw/char/ipack.h +++ b/hw/char/ipack.h @@ -38,10 +38,12 @@ typedef struct IPackDeviceClass IPackDeviceClass; OBJECT_GET_CLASS(IPackDeviceClass, (obj), TYPE_IPACK_DEVICE) struct IPackDeviceClass { + /*< private >*/ DeviceClass parent_class; + /*< public >*/ - int (*init)(IPackDevice *dev); - int (*exit)(IPackDevice *dev); + DeviceRealize realize; + DeviceUnrealize unrealize; uint16_t (*io_read)(IPackDevice *dev, uint8_t addr); void (*io_write)(IPackDevice *dev, uint8_t addr, uint16_t val); |