From patchwork Sat Dec 26 21:11:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,01/11] Add info_dev function pointer for BusInfo. Date: Sat, 26 Dec 2009 11:11:29 -0000 From: Nathan Baum X-Patchwork-Id: 41837 Message-Id: <1261861899-1984-2-git-send-email-nathan@parenthephobia.org.uk> To: qemu-devel@nongnu.org This function will be called to produce bus-specific data for QMP's query-qtree command. Signed-off-by: Nathan Baum --- 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; };