From ce49b734b4e2a3cc13dc4e11742c0813f1479145 Mon Sep 17 00:00:00 2001 From: Juergen Gross Date: Tue, 22 Nov 2016 07:10:57 +0100 Subject: qdev: add function qdev_set_id() In order to have an easy way to add a new qdev with a specific id carve out the needed functionality from qdev_device_add() into a new function qdev_set_id(). Signed-off-by: Juergen Gross Reviewed-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- include/monitor/qdev.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/monitor/qdev.h b/include/monitor/qdev.h index 8e504bc..0ff3331 100644 --- a/include/monitor/qdev.h +++ b/include/monitor/qdev.h @@ -12,5 +12,6 @@ void qmp_device_add(QDict *qdict, QObject **ret_data, Error **errp); int qdev_device_help(QemuOpts *opts); DeviceState *qdev_device_add(QemuOpts *opts, Error **errp); +void qdev_set_id(DeviceState *dev, const char *id); #endif -- cgit v1.1