mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00

DeviceState.id is a pointer to a string that is stored in the QemuOpts object DeviceState.opts and freed together with it. We want to create devices without going through QemuOpts in the future, so make this a separately allocated string. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20211008133442.141332-9-kwolf@redhat.com> Reviewed-by: Damien Hedde <damien.hedde@greensocs.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
14 lines
405 B
C
14 lines
405 B
C
#ifndef MONITOR_QDEV_H
|
|
#define MONITOR_QDEV_H
|
|
|
|
/*** monitor commands ***/
|
|
|
|
void hmp_info_qtree(Monitor *mon, const QDict *qdict);
|
|
void hmp_info_qdm(Monitor *mon, const QDict *qdict);
|
|
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, char *id);
|
|
|
|
#endif
|