summaryrefslogtreecommitdiff
path: root/hw/char/ipack.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-08-01 18:45:02 +0200
committerAndreas Färber <afaerber@suse.de>2014-02-14 21:07:20 +0100
commit5c570902559fbc113154e545c4b0749cd4318b1d (patch)
tree809f66ab1037ab8fd7dc47d2390f1bf52c547493 /hw/char/ipack.h
parent371468297c8bc45d9f4b957372ed62c9314620c8 (diff)
downloadqemu-5c570902559fbc113154e545c4b0749cd4318b1d.tar.gz
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.h6
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);