This function will be called to produce bus-specific data for QMP's
query-qtree command.

Signed-off-by: Nathan Baum <nat...@parenthephobia.org.uk>
---
 hw/qdev.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/hw/qdev.h b/hw/qdev.h
index bbcdba1..93467a5 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -43,10 +43,12 @@ struct DeviceState {
 };
 
 typedef void (*bus_dev_printfn)(Monitor *mon, DeviceState *dev, int indent);
+typedef QObject *(*bus_dev_infofn)(Monitor *mon, DeviceState *dev);
 struct BusInfo {
     const char *name;
     size_t size;
     bus_dev_printfn print_dev;
+    bus_dev_infofn info_dev;
     Property *props;
 };
 
-- 
1.6.3.3



Reply via email to