diff mbox

[RFC,01/11] Add info_dev function pointer for BusInfo.

Message ID 1261861899-1984-2-git-send-email-nathan@parenthephobia.org.uk
State New
Headers show

Commit Message

Nathan Baum Dec. 26, 2009, 9:11 p.m. UTC
This function will be called to produce bus-specific data for QMP's
query-qtree command.

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

Patch

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;
 };