From 5c570902559fbc113154e545c4b0749cd4318b1d Mon Sep 17 00:00:00 2001 From: Andreas Färber Date: Thu, 1 Aug 2013 18:45:02 +0200 Subject: ipack: Convert to QOM realize Acked-by: Alberto Garcia Signed-off-by: Andreas Färber --- hw/char/ipack.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hw/char/ipack.h') 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); -- cgit v1.2.3-55-g7522