ce49b734b4
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>
18 lines
495 B
C
18 lines
495 B
C
#ifndef MONITOR_QDEV_H
|
|
#define MONITOR_QDEV_H
|
|
|
|
#include "hw/qdev-core.h"
|
|
|
|
/*** monitor commands ***/
|
|
|
|
void hmp_info_qtree(Monitor *mon, const QDict *qdict);
|
|
void hmp_info_qdm(Monitor *mon, const QDict *qdict);
|
|
void hmp_info_qom_tree(Monitor *mon, const QDict *dict);
|
|
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
|