| Submitter | Alex Williamson |
|---|---|
| Date | June 24, 2010, 4:41 a.m. |
| Message ID | <20100624044105.16168.95440.stgit@localhost.localdomain> |
| Download | mbox | patch |
| Permalink | /patch/56743/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/qdev.h b/hw/qdev.h index be5ad67..d64619f 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; };
This function is meant to provide a stable device path for buses which are able to implement it. If a bus has a globally unique addresses scheme, one address level may be sufficient to provide a path. Other buses may need to recursively traverse up the qdev tree. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> --- hw/qdev.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)