summaryrefslogtreecommitdiff
path: root/include/monitor
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2016-11-22 07:10:57 +0100
committerStefano Stabellini <sstabellini@kernel.org>2016-11-22 10:29:37 -0800
commitce49b734b4e2a3cc13dc4e11742c0813f1479145 (patch)
treea5e078e116fae014eabb63dbda84949ec2ae0350 /include/monitor
parent873d57abbaa2225b66d0c54b5040242e749ddf28 (diff)
downloadqemu-ce49b734b4e2a3cc13dc4e11742c0813f1479145.tar.gz
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 <jgross@suse.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'include/monitor')
-rw-r--r--include/monitor/qdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/monitor/qdev.h b/include/monitor/qdev.h
index 8e504bc66b..0ff3331284 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