diff --git a/hw/qdev.h b/hw/qdev.h index cbc89f2c1e..3e22eecc06 100644 --- a/hw/qdev.h +++ b/hw/qdev.h @@ -49,10 +49,13 @@ struct DeviceState { }; typedef void (*bus_dev_printfn)(Monitor *mon, DeviceState *dev, int indent); +typedef char *(*bus_get_dev_path)(DeviceState *dev); + struct BusInfo { const char *name; size_t size; bus_dev_printfn print_dev; + bus_get_dev_path get_dev_path; Property *props; };