static void ide_drive_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); IDEDeviceClass *k = IDE_DEVICE_CLASS(klass); k->init = ide_drive_initfn; dc->fw_name = "drive"; dc->desc = "virtual IDE disk or CD-ROM (legacy)"; dc->props = ide_drive_properties; }
static void ide_local_device_class_init (IdeLocalDeviceClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); IdeDeviceClass *device_class = IDE_DEVICE_CLASS (klass); object_class->finalize = ide_local_device_finalize; device_class->get_config = ide_local_device_get_config; device_class->get_system_type = ide_local_device_get_system_type; }