From: Philippe Mathieu-Daudé Date: Sun, 14 Jan 2018 02:04:10 +0000 (-0300) Subject: qdev: rename typedef qdev_resetfn() -> DeviceReset() X-Git-Tag: v2.11.2~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0db89523a6f43c2d1f7a5a6bef23e564bb59b0ec;p=thirdparty%2Fqemu.git qdev: rename typedef qdev_resetfn() -> DeviceReset() following the DeviceRealize and DeviceUnrealize typedefs, this unify a bit the new QOM API. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180114020412.26160-2-f4bug@amsat.org> Reviewed-by: Laurent Vivier Signed-off-by: Paolo Bonzini (cherry picked from commit b850f664a1dbbc1ea27bef12cd251ee5da0bfe05) *prereq for 0c53057adb Signed-off-by: Michael Roth --- diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index 0a71bf83f04..83db53b3f54 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -32,9 +32,9 @@ typedef enum DeviceCategory { typedef int (*qdev_initfn)(DeviceState *dev); typedef int (*qdev_event)(DeviceState *dev); -typedef void (*qdev_resetfn)(DeviceState *dev); typedef void (*DeviceRealize)(DeviceState *dev, Error **errp); typedef void (*DeviceUnrealize)(DeviceState *dev, Error **errp); +typedef void (*DeviceReset)(DeviceState *dev); typedef void (*BusRealize)(BusState *bus, Error **errp); typedef void (*BusUnrealize)(BusState *bus, Error **errp); @@ -117,7 +117,7 @@ typedef struct DeviceClass { bool hotpluggable; /* callbacks */ - void (*reset)(DeviceState *dev); + DeviceReset reset; DeviceRealize realize; DeviceUnrealize unrealize;