mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qapi: Convert query-chardev
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
efab767eaa
commit
c5a415a0af
6 changed files with 58 additions and 34 deletions
13
hmp.c
13
hmp.c
|
@ -80,3 +80,16 @@ void hmp_info_uuid(Monitor *mon)
|
|||
monitor_printf(mon, "%s\n", info->UUID);
|
||||
qapi_free_UuidInfo(info);
|
||||
}
|
||||
|
||||
void hmp_info_chardev(Monitor *mon)
|
||||
{
|
||||
ChardevInfoList *char_info, *info;
|
||||
|
||||
char_info = qmp_query_chardev(NULL);
|
||||
for (info = char_info; info; info = info->next) {
|
||||
monitor_printf(mon, "%s: filename=%s\n", info->value->label,
|
||||
info->value->filename);
|
||||
}
|
||||
|
||||
qapi_free_ChardevInfoList(char_info);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue