]> git.proxmox.com Git - mirror_qemu.git/blame - hmp.c
qapi: convert query-name
[mirror_qemu.git] / hmp.c
CommitLineData
48a32bed
AL
1/*
2 * Human Monitor Interface
3 *
4 * Copyright IBM, Corp. 2011
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
11 *
12 */
13
14#include "hmp.h"
15#include "qmp-commands.h"
16
17void hmp_info_name(Monitor *mon)
18{
19 NameInfo *info;
20
21 info = qmp_query_name(NULL);
22 if (info->has_name) {
23 monitor_printf(mon, "%s\n", info->name);
24 }
25 qapi_free_NameInfo(info);
26}