qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC, PATCH 01/11] Add info_dev function pointer for BusInf


From: Nathan Baum
Subject: [Qemu-devel] [RFC, PATCH 01/11] Add info_dev function pointer for BusInfo.
Date: Sat, 26 Dec 2009 21:11:29 +0000

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

Signed-off-by: Nathan Baum <address@hidden>
---
 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

[Prev in Thread] Current Thread [Next in Thread]