summaryrefslogtreecommitdiff
path: root/hw/qdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index cd58fa8cf4..6c2c4013d2 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -108,6 +108,7 @@ BusState *qdev_get_child_bus(DeviceState *dev, const char *name);
/*** Device API. ***/
typedef int (*qdev_initfn)(DeviceState *dev, DeviceInfo *info);
+typedef int (*qdev_exitfn)(DeviceState *dev);
struct DeviceInfo {
const char *name;
@@ -125,6 +126,7 @@ struct DeviceInfo {
/* Private to qdev / bus. */
qdev_initfn init;
+ qdev_exitfn exit;
BusInfo *bus_info;
struct DeviceInfo *next;
};